2. Test Integration
Steps to test if the integration was successful and what features are supported in Razorpay's sandbox environment.
This guide helps you understand how to test the integration using Razorpay. It outlines what features are supported in Test (sandbox) vs Live environments and how to simulate various scenarios effectively.
You can make test payments using one of the payment methods configured at the Checkout.
- No money is deducted from the customer's account as this is a simulated transaction.
- Ensure you have entered the API Keys generated in the Test Mode in the Checkout code.
You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment success
or a failure
. Since this is Test Mode, we will not redirect you to the bank login portals.
You can enter one of the following UPI IDs:
success@razorpay
: To make the payment successful.failure@razorpay
: To fail the payment.
Handy Tips
You can use Test Mode to test UPI payments, and Live Mode for UPI Intent and QR payments.
You can use one of the test cards to make transactions in the Test Mode. Use any valid expiration date in the future and any random CVV to create a successful payment.
Currently, we do not have dummy card details for all card networks. However, you can refer to the BIN (Bank Identification Number) information below to simulate different card types:
The following features are supported in Test Mode using test cards, UPI ids, and mock data:
You can also test webhook events using failure VPAs like failure@razorpa
to simulate failure scenarios.
Some features require real payment instruments, user authentication, or live customer flows, and thus cannot be tested in Test Mode:
In Test Mode:
- You can simulate token creation and charge requests.
- Mandate registration and authentication are mocked.
- No real customer authentication (3DS, OTP) is involved.
In Live Mode:
- Real tokenization with 3DS/OTP.
- Mandate is registered with customer’s issuing bank.
- Charges below ₹15,000 may work without AFA.
- Charges above ₹15,000 will require AFA as per RBI guidelines.
Is this integration guide useful?