This repository was archived by the owner on Nov 23, 2025. It is now read-only.
Feature/payhere integration#10
Merged
Merged
Conversation
- 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
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.