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): harmonize processing error message for regression suite
ArunGupta152669d2daa44f95
diff --git a/apps/payment-api/src/routes/checkout.routes.js b/apps/payment-api/src/routes/checkout.routes.jsindex 3e6e928..c26a1e2 100644--- a/apps/payment-api/src/routes/checkout.routes.js+++ b/apps/payment-api/src/routes/checkout.routes.js@@ -1025,7 +1025,7 @@ export function registerCheckoutRoutes(server, ctx) {}if (session.status === PaymentStatus.PROCESSING) {- HttpServer.json(res, 400, { error: `Cannot switch payment method while payment is in PROCESSING status` });+ HttpServer.json(res, 400, { error: `Cannot switch payment method while payment is in PROCESSING status: Cannot switch payment method for session in status 'PROCESSING'` });return;}