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 .

Expiry: Any future date
CVV: Any random CVV
Official documentation

Domestic (India)

Card numberBrandResultCopy
4100 2800 0000 1007Visa
Payment succeeds Debit / consumer
5555 5100 0008 1006Mastercard
Payment succeeds Credit / business
5180 2872 0009 1001Mastercard
Payment succeeds Prepaid / consumer
6527 6589 0000 1005RuPay
Payment succeeds Credit / consumer
3608 280009 1007Diners Club
Payment succeeds Credit / consumer
3402 560004 01007American Express
Payment succeeds Credit / consumer

International

Card numberBrandResultCopy
5555 5555 5555 4444Mastercard
Payment succeeds
5105 1051 0510 5100Mastercard
Payment succeeds
5104 0600 0000 0008Mastercard
Payment succeeds
4012 8888 8888 1881Visa
Payment succeeds

Subscriptions and EMI

Card numberBrandResultCopy
4718 6091 0820 4366Visa
Subscription payment Domestic credit
5104 0155 5555 5558Mastercard
Subscription payment International credit
5104 0600 0000 0008Mastercard
Subscription payment International debit
5241 8100 0000 0000Mastercard
EMI payment

Controlling the outcome

Razorpay decides success or failure from the OTP you enter on the test checkout.

ScenarioValueEffect
Successful paymentAny OTP of 4 or more digitsPayment completes
Failed paymentAn OTP of fewer than 4 digitsPayment 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

  1. Switch your Razorpay integration to its test or sandbox environment and use test credentials. Live credentials reject these numbers.
  2. Enter a card number from the tables above. Expiry: Any future date. Security code: Any random CVV.
  3. 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.
  4. 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.