Sample Codes
Sample codes to help you integrate the payment methods of your choice on Razorpay Checkout.
Watch Out!
You can use the payment methods enabled for your account on the Dashboard. Also, you can raise a request with for additional payment methods or providers.
UPI Collect Flow Deprecated
According to NPCI guidelines, the UPI Collect flow is being deprecated effective 28 February 2026. Customers can no longer make payments or register UPI mandates by manually entering VPA/UPI id/mobile numbers.
Exemptions: UPI Collect will continue to be supported for:
- MCC 6012 & 6211 (IPO and secondary market transactions).
- iOS mobile app and mobile web transactions.
- UPI Mandates (execute/modify/revoke operations only)
- eRupi vouchers.
- PACB businesses (cross-border/international payments).
Action Required:
- If you are a new Razorpay user, use .
- If you are an existing Razorpay user not covered by exemptions, you must migrate to UPI Intent or UPI QR code to continue accepting UPI payments. For detailed migration steps, refer to the .
Is this integration guide useful?
web standard integration
sample codes
configure payment methods
checkout options
customise
ON THIS PAGE