Razorpay Test Card Numbers
Razorpay test card numbers for domestic and international payments, subscriptions and EMI, with the OTP rule that controls success or failure.
In Razorpay test mode, use 4100 2800 0000 1007 (Visa, domestic) or 5555 5555 5555 4444 (Mastercard, international) with any future expiry and any CVV. The OTP decides the result: any OTP of 4 or more digits succeeds, and anything shorter fails.
Last verified against Razorpay's official documentation on .
Domestic (India)
| Card number | Brand | Result | Copy |
|---|---|---|---|
4100 2800 0000 1007 | Visa | Payment succeeds Debit / consumer | |
5555 5100 0008 1006 | Mastercard | Payment succeeds Credit / business | |
5180 2872 0009 1001 | Mastercard | Payment succeeds Prepaid / consumer | |
6527 6589 0000 1005 | RuPay | Payment succeeds Credit / consumer | |
3608 280009 1007 | Diners Club | Payment succeeds Credit / consumer | |
3402 560004 01007 | American Express | Payment succeeds Credit / consumer |
International
| Card number | Brand | Result | Copy |
|---|---|---|---|
5555 5555 5555 4444 | Mastercard | Payment succeeds | |
5105 1051 0510 5100 | Mastercard | Payment succeeds | |
5104 0600 0000 0008 | Mastercard | Payment succeeds | |
4012 8888 8888 1881 | Visa | Payment succeeds |
Subscriptions and EMI
| Card number | Brand | Result | Copy |
|---|---|---|---|
4718 6091 0820 4366 | Visa | Subscription payment Domestic credit | |
5104 0155 5555 5558 | Mastercard | Subscription payment International credit | |
5104 0600 0000 0008 | Mastercard | Subscription payment International debit | |
5241 8100 0000 0000 | Mastercard | EMI payment |
Controlling the outcome
Razorpay decides success or failure from the OTP you enter on the test checkout.
| Scenario | Value | Effect |
|---|---|---|
| Successful payment | Any OTP of 4 or more digits | Payment completes |
| Failed payment | An OTP of fewer than 4 digits | Payment fails |
Before you use these
- Test mode only. In live mode these are rejected with a "card issuer is invalid" error.
- These numbers are published by Razorpay for sandbox testing. They are not real cards and cannot be used for a real purchase.
How to use Razorpay test cards
- Switch your Razorpay integration to its test or sandbox environment and use test credentials. Live credentials reject these numbers.
- Enter a card number from the tables above. Expiry: Any future date. Security code: Any random CVV.
- Start with a successful card to confirm the happy path, then work through the decline and error cards so every failure message in your checkout gets exercised.
- Use the trigger values (controlling the outcome) to simulate outcomes that are not tied to a card number.
Razorpay test card FAQ
What are the Razorpay test card numbers?
In Razorpay test mode, use 4100 2800 0000 1007 (Visa, domestic) or 5555 5555 5555 4444 (Mastercard, international) with any future expiry and any CVV. The OTP decides the result: any OTP of 4 or more digits succeeds, and anything shorter fails.
Do Razorpay test cards work in production?
No. These numbers are only recognised by the Razorpay test environment and are rejected by the live platform. They are not real cards and cannot be used for a purchase.
How do I test a declined payment with Razorpay?
Razorpay triggers failures through controlling the outcome as well as dedicated card numbers. Both are listed on this page.