Skip to content

A self-hosted UPI & COD payment gateway with zero per-transaction platform fees, universal JavaScript checkout integration, dynamic QR payments, WhatsApp OTP authentication, and automated payment verification.

JavaScript

fix(payment-api): sync with upstream/main and resolve observer poller conflicts

ArunGupta1526421677077796
diff --cc apps/payment-api/src/index.js
index 4e8c57d,867ff00..a1b56b9
--- a/apps/payment-api/src/index.js
+++ b/apps/payment-api/src/index.js
@@@ -335,7 -433,7 +335,8 @@@ export function createPaymentApp(custom
checkoutBaseUrl,
whatsappBerryService,
webhookEngine,
- observerPollerService
++ observerPollerService,
+ otpCooldownMs: options.otpCooldownMs
};
registerPaymentRoutes(server, context);
diff --cc scripts/test-all.js
index c18f436,e5d6a08..1727b6d
--- a/scripts/test-all.js
+++ b/scripts/test-all.js
@@@ -31,7 -31,7 +31,8 @@@ const testFiles =
'apps/payment-api/src/__tests__/whatsapp-berry-auth.test.js',
'apps/payment-api/src/__tests__/whitelabel-branding.test.js',
'apps/payment-api/src/__tests__/cod-parallel-timer-decoupling.test.js',
+ 'apps/payment-api/src/__tests__/gateway-hardening-invariants.test.js',
+ 'apps/payment-api/src/__tests__/observer-poller.test.js',
'scripts/chaos-concurrency.test.js',
'scripts/production-infrastructure.test.js'
];