Skip to content
This repository was archived by the owner on Nov 23, 2025. It is now read-only.

Feature/payhere integration#10

Merged
RandithaK merged 4 commits into
devfrom
feature/payhere-integration
Nov 5, 2025
Merged

Feature/payhere integration#10
RandithaK merged 4 commits into
devfrom
feature/payhere-integration

Conversation

@RandithaK

Copy link
Copy Markdown
Member

No description provided.

- Add PaymentInitiationRequest and PaymentInitiationResponse interfaces
- Implement initiatePayment API call
- Add payment history and details methods
- Include sandbox flag in response interface
- Create PayHereService class for SDK management
- Implement dynamic PayHere script loading
- Add TypeScript definitions for PayHere SDK
- Support sandbox and live modes
- Handle payment callbacks (success, error, cancel)
- Add proper type definitions for payment data and results
- Create reusable PaymentGateway component with payment summary
- Display item description, amount, and customer details
- Add payment button with loading and success states
- Show error and success messages
- Integrate with payhereService and paymentService
- Include proper TypeScript types and props
- Create payment gateway page at /payment-gateway route
- Handle payment status from URL query params (success/cancel)
- Display status-specific UI feedback
- Integrate PaymentGateway component with hardcoded test data
- Show success and cancellation messages
@RandithaK
RandithaK merged commit 4e96ce1 into dev Nov 5, 2025
1 of 3 checks passed
@coderabbitai

coderabbitai Bot commented Nov 5, 2025

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/payhere-integration

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants