Skip to main content
R
Payment provider

Razorpay Test Card Numbers

Razorpay test cards only work in test mode. Test mode shows a mock bank page with Success and Failure buttons, and no money moves because you are using test API keys.

Sandbox and test mode only. Never use real card numbers.
Source: Razorpay docs, checked November 2026

Before you test

  • CVV: any random value. Expiry: any future date.
  • OTP: 4 to 10 digits succeeds; fewer than 4 digits fails.
  • Error cards: start the payment, then choose Failure on the success or failure screen to get the listed error.
  • In live mode these cards fail with card issuer is invalid or invalid card input.

Successful test cards

Card numberBrand
4100 2800 0000 1007
Visa debit (India)
5555 5100 0008 1006
Mastercard business credit (India)
5180 2872 0009 1001
Mastercard prepaid (India)
6527 6589 0000 1005
RuPay credit (India)
3608 2800 0910 07
Diners credit (India)
3402 5600 0401 007
American Express credit (India)
5555 5555 5555 4444
Mastercard (international)
5104 0600 0000 0008
Mastercard (international)
4012 8888 8888 1881
Visa (international)

Error scenario cards

Card numberScenarioExpected resultDecline code
4100 2800 0008 0001
Insufficient funds (Visa)insufficient_fundRazorpay insufficient_funds
5305 6200 0005 0001
Insufficient funds (Mastercard)insufficient_fundRazorpay insufficient_funds
4100 2800 0006 0003
Declined by bank (Visa)card_declinedRazorpay card_declined
5305 6200 0003 0003
Declined by bank (Mastercard)card_declinedRazorpay card_declined
4100 2800 0003 0006
Card disabled for online paymentscard_disabled_for_online_paymentsRazorpay card_disabled_for_online_payments
4100 2800 0001 0008
Incorrect card numbercard_number_invalid
4100 2800 0009 0000
Payment timed outpayment_timed_outRazorpay payment_timed_out
4100 2800 0007 0002
Payment cancelledpayment_cancelled
4100 2800 0002 0007
Gateway technical errorgateway_technical_error (GATEWAY_ERROR)Razorpay gateway_technical_error

Authentication (OTP) failures

Card numberScenarioExpected resultDecline code
4100 2800 0000 0009
Visaauthentication_failedRazorpay authentication_failed
5305 6200 0007 0009
Mastercardauthentication_failedRazorpay authentication_failed

Subscription test cards

Card numberBrand
4718 6091 0820 4366
Visa credit (domestic)
5104 0155 5555 5558
Mastercard credit (international)
5104 0600 0000 0008
Mastercard debit (international)

Testing failed subscription renewals on Razorpay

Razorpay lists dedicated cards for Subscriptions. The documented constraint to plan around is token lifetime in test mode.

  1. 1Create the subscription with a subscription test card, for example 4718 6091 0820 4366.
  2. 2Run subsequent (renewal) debits within 3 days of token creation. Card tokens in test mode are valid for 3 days only.
  3. 3To see how your app handles a failed charge, use an error scenario card such as 4100 2800 0008 0001 (insufficient_fund) and choose Failure on the mock bank page.

In production, many failed renewals are soft declines that can succeed on a later attempt if the retry is timed right. See how Slicker smart retries pick the timing, gateway and amount for each failed payment.

Payment recovery

Your sandbox passes. What about the renewals failing in production?

Test cards prove your integration handles a decline. They do not show how much of your real failed Razorpay volume is recoverable. We will look at your decline mix and tell you.

Talk to Sales

Razorpay test card FAQ

What is the Razorpay test card number?

For Indian payments, Razorpay lists Visa debit 4100 2800 0000 1007 and Mastercard 5555 5100 0008 1006, among others. Use any CVV, any future expiry and an OTP of 4 to 10 digits.

How do I test a failed payment on Razorpay?

Use an error scenario card such as 4100 2800 0008 0001 (insufficient_fund) and choose Failure on the mock bank page. Or enter an OTP shorter than 4 digits.

Which Razorpay test cards work for Subscriptions?

Visa credit 4718 6091 0820 4366 (domestic), Mastercard credit 5104 0155 5555 5558 and Mastercard debit 5104 0600 0000 0008 (international).

Why does my Razorpay subscription renewal fail in test mode?

Card tokens in test mode are only valid for 3 days, so subsequent debits must happen within 3 days of token creation.

Sources

Values copied from the provider's documentation and checked November 2026. Providers change test values; if a number stops working, the source page is the reference.

Test cards for other providers

Cookie preferences

Your privacy matters

We use analytics to understand how you use our site and improve your experience. Privacy Policy