Repository navigation
Feat/959 instamojo gateway integration - #1320
Merged
github-actions[bot] merged 2 commits intoOct 21, 2026
Merged
github-actions[bot] merged 2 commits into
github-actions[bot] merged 2 commits 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
InstamojoClientto communicate with the Instamojo API v1.1, supporting:InstamojoGatewayAdapter, extendingBaseGatewayAdapterwith:InstamojoPaymentProviderimplementingPaymentProviderfor seamless integration with the payment provider registry.INRcurrency transactions and theinstamojopayment network./api/v1/instamojofor payment requests, payment retrieval, refunds, and webhook processing.Changes
New Files
backend/src/integrations/instamojo/types.tsbackend/src/integrations/instamojo/instamojo-client.tsbackend/src/integrations/instamojo/gateway-adapter.tsInstamojoGatewayAdapterimplementation extendingBaseGatewayAdapter.backend/src/integrations/instamojo/index.tsbackend/src/integrations/instamojo/__tests__/instamojo.test.tsbackend/src/services/payments/providers/instamojo.tsPaymentProviderinterface.backend/src/services/payments/__tests__/instamojo-provider.test.tsbackend/src/routes/instamojo.tsUpdated Components
backend/src/integrations/gateway-adapter.ts'instamojo'to theGatewayTypeunion.backend/src/services/payments/payment-router.tsselectProviderIdto supportINRtransactions and theinstamojonetwork.backend/src/services/payments/bootstrap.tsInstamojoPaymentProviderduring application startup.backend/src/index.tsinstamojoRouterunder/api/v1/instamojo.backend/src/config/env.tsbackend/src/config/database.tsreadReplicaRouterinitialization to avoid module initialization race conditions during testing.Why
This PR implements the Instamojo payment gateway integration requested in Issue #959, enabling AgenticPay to process payments in Indian Rupees (INR) through the Instamojo payment platform.
The implementation integrates with the existing payment provider registry and gateway abstraction layer, supports secure webhook verification, includes circuit-breaker and health monitoring capabilities, and provides sandbox simulation when live API credentials are unavailable, ensuring reliable local development and CI execution.
How to test
INSTAMOJO_API_KEYINSTAMOJO_AUTH_TOKENINSTAMOJO_PRIVATE_SALTINSTAMOJO_SANDBOX(truefor sandbox,falsefor production)POST /api/v1/instamojo/payment-requestsGET /api/v1/instamojo/payment-requests/:idGET /api/v1/instamojo/payments/:idPOST /api/v1/instamojo/refundsPOST /api/v1/instamojo/webhookNotes