API ReferenceIntegrationsKnowledge Base

Test Cards and UPI ID Details

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

Watch Out:
You can use these test cards and UPI details to make payments only in test mode only.

If you use these test cards and UPI details for live mode payments, you will be shown errors such as card issuer is invalid or invalid card input.

Test Cards🔗

Follow these steps to use the test card details:

  • On the Checkout, select Card as the payment method.
  • Enter the card details. This depends on the flow you are testing.
  • Enter any random CVV.
  • Enter any future date as the expiry date.
  • Click Pay. A sample payment page is displayed.
    • Click Success to make the payment successful.
    • Click Failure to fail the payment.

Test Card for Domestic Payments🔗

Card Network

Card Number

CVV

Expiry Date

Mastercard

5104 0600 0000 0008

Random CVV

Any future date

Visa

4111 1111 1111 1111

Random CVV

Any future date

Test Card for International Payments🔗

Card Network

Card Number

CVV

Expiry Date

Mastercard

5555 5555 5555 4444
5105 1051 0510 5100

Random CVV

Any future date

Visa

4012 8888 8888 1881
4000 1841 8621 8826

Random CVV

Any future date

Test Card for EMI Payments🔗

Card Network

Card Number

CVV

Expiry Date

Mastercard

5241 8100 0000 0000

Random CVV

Any future date

Test UPI ID🔗

Follow these steps to use the test card details:

  • On the Checkout, select UPI as the payment method.
  • Enter the UPI ID.
    • Test payment success flow using success@razorpay.
    • Test payment failure flow using failure@razorpay.
×