Test Cards and Test UPI ID

Use test cards to test domestic payments, international payments and subscriptions. Use test UPI IDs to test domestic one-time payments.


You can test the payment flow using our test cards and UPI IDs.

Watch Out!

You can use these test cards to make payments in test mode only. If you use these test cards for live mode payments, the following error message will be displayed, card issuer is invalid or invalid card input.

Watch this video to see how to use the test card details.

To use the test card details:

  1. At the Checkout, select Card as the payment method.
  2. Enter the OTP to access saved cards if required.
  3. Enter the card details. This depends on the flow you are testing.
  4. Enter any random CVV.
  5. Enter any future date as the expiry date.
  6. Click Pay. A sample payment page is displayed.
  • Enter a random OTP between 4 to 10 digits to make the payment successful and click Submit.
  • Enter a random OTP below 4 digits to fail the payment and click Submit.

Card NetworkCard NumberCVVExpiry Date
Mastercard5267 3181 8797 5449Random CVVAny future date
Visa4111 1111 1111 1111Random CVVAny future date

Card NetworkCard NumberCVVExpiry Date
Mastercard5555 5555 5555 4444
5105 1051 0510 5100
Random CVVAny future date
Visa4012 8888 8888 1881
5104 0600 0000 0008
Random CVVAny future date

TypeCard NetworkCard TypeCard NumberCVVExpiry Date
DomesticMastercardDebit Card5104 0600 0000 0008Random CVVAny future date
DomesticVisaCredit Card4718 6091 0820 4366Random CVVAny future date
InternationalMastercardCredit Card5104 0155 5555 5558Random CVVAny future date

Card NetworkCard NumberCVVExpiry Date
Mastercard5241 8100 0000 0000Random CVVAny future date

Watch this video to see how to use the test UPI ID details.

To use the test UPI ID details:

  1. At the Checkout, select UPI as the payment method.
  2. Enter the UPI ID.
  • Test payment success flow using success@razorpay.
  • Test payment failure flow using failure@razorpay.