Repository navigation
feat(payments): implement Razorpay gateway support (#960) - #1321
Merged
github-actions[bot] merged 1 commit intoOct 21, 2026
Merged
github-actions[bot] merged 1 commit into
github-actions[bot] merged 1 commit into
Conversation
|
@livinalt is attempting to deploy a commit to the smartdevs17's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@livinalt Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What this PR does
RazorpayClientfor interacting with the Razorpay API, supporting payment creation, payment retrieval, refunds, and webhook signature verification.RazorpayGatewayAdapter, extendingBaseGatewayAdapterwith circuit-breaker protection, latency tracking, and health monitoring.RazorpayPaymentProviderimplementing thePaymentProviderinterface for integration with the payment provider registry./api/v1/razorpayfor payment operations and webhook handling.Changes
New Files
backend/src/integrations/razorpay/types.tsbackend/src/integrations/razorpay/razorpay-client.tsbackend/src/integrations/razorpay/gateway-adapter.tsRazorpayGatewayAdapterimplementation extendingBaseGatewayAdapter.backend/src/integrations/razorpay/index.tsbackend/src/integrations/razorpay/__tests__/razorpay.test.tsbackend/src/routes/razorpay.tsbackend/src/services/payments/providers/razorpay.tsPaymentProviderinterface.backend/src/services/payments/__tests__/razorpay-provider.test.tsUpdated Components
backend/src/integrations/gateway-adapter.tsbackend/src/services/payments/bootstrap.tsRazorpayPaymentProviderduring application startup.backend/src/services/payments/payment-router.tsbackend/src/index.ts/api/v1/razorpay.backend/src/config/env.jsbackend/src/services/whatsapp-payment-notifications.tsbackend/src/services/__tests__/whatsapp-notifications.test.tsWhy
This PR implements the Razorpay payment gateway integration requested in Issue #960, enabling AgenticPay to process payments through Razorpay while integrating seamlessly with the existing payment provider registry and gateway abstraction layer. The implementation includes secure webhook verification, gateway health monitoring, provider-based routing, and comprehensive automated testing while remaining fully backward compatible with existing payment providers.
How to test
RAZORPAY_KEY_IDRAZORPAY_KEY_SECRETRAZORPAY_WEBHOOK_SECRETPOST /api/v1/razorpay/paymentsGET /api/v1/razorpay/payments/:idPOST /api/v1/razorpay/refundsPOST /api/v1/razorpay/webhookNotes