reactjsrazorpay

How do I debug Razorpay Standard Checkout for Subscription in production?


I have integrated Razorpay Standard Checkout for Subscription in my application. The integration works perfectly in test environment but in production it fails mysteriously. The payment options are shown but if I try to pay by upi id or mobile number or even try to display qr code for scanning, it fails with a very generic error

{
    "error": {
        "code": "SERVER_ERROR",
        "description": "We are facing some trouble completing your request at the moment. Please try again shortly.",
        "source": "NA",
        "step": "NA",
        "reason": "NA",
        "metadata": {}
    }
}

It works perfectly in test environment so I expected it to work in production as well. Support ticket is raised on 13th Feb and still not a single response.

From network tab I can see the razorpay api responded with a 500 but no further details.

Am at wits end and contemplating a switch to some other payment gateway because of this blocker issue and absolute lack of support from Razorpay.


Solution

  • They have resolved the ticket after I contacted them over instagram and facebook.

    It was some setting at razorpay end. They fixed in via support ticket. even if the dashboard shows that you are ready to accept live payments, there seems to be some hidden setting they need to update before live payments for subscriptions start working

    Important Note: UPI intent flow WILL NOT work with Razorpay standard checkout for mobile web if you are using it for Razorpay subscription. Only collect and QR flows are available for UPI payment of subscription. This limitation was not documented anywhere and cost me several days of troubleshooting. Hope this helps other people save time!