Refgrow
Free Developer Tool

Razorpay Test Card Numbers

Every test card Razorpay documents for test mode, grouped by what it does: success, each error reason, international, subscriptions and EMI. Click any card to copy it.

CVV

Any value

Expiry

Any future date

e.g. 12/34

OTP

4 to 10 digits

fewer than 4 digits fails

Razorpay test cards for Indian payments

Domestic cards for success scenarios. Use any CVV and any future expiry date.

Visa

4100 2800 0000 1007

Debit, consumer.

Mastercard

5555 5100 0008 1006

Credit, business.

Mastercard

5180 2872 0009 1001

Prepaid, consumer.

RuPay

6527 6589 0000 1005

Credit, consumer.

Diners

3608 280009 1007

Credit, consumer.

American Express

3402 560004 01007

Credit, consumer.

Razorpay test cards for each error reason

Domestic cards that fail with a specific error. On the mock bank's success/failure screen, choose failure to get the error.

Visa: payment_timed_out

4100 2800 0009 0000

BAD_REQUEST_ERROR. Mastercard: 5305 6200 0006 0000.

Visa: insufficient_fund

4100 2800 0008 0001

BAD_REQUEST_ERROR. Mastercard: 5305 6200 0005 0001.

Visa: payment_cancelled

4100 2800 0007 0002

BAD_REQUEST_ERROR. Mastercard: 5305 6200 0004 0002.

Visa: card_declined

4100 2800 0006 0003

BAD_REQUEST_ERROR. Mastercard: 5305 6200 0003 0003.

Visa: card_disabled_for_online_payments

4100 2800 0003 0006

BAD_REQUEST_ERROR. Mastercard: 5305 6200 0000 0006.

Visa: card_number_invalid

4100 2800 0001 0008

BAD_REQUEST_ERROR. Mastercard: 5305 6200 0008 0008.

Visa: gateway_technical_error

4100 2800 0002 0007

GATEWAY_ERROR. Mastercard: 5305 6200 0009 0007.

Visa: authentication_failed

4100 2800 0000 0009

GATEWAY_ERROR. Mastercard: 5305 6200 0007 0009.

Mastercard: card_declined

5305 6200 0003 0003

BAD_REQUEST_ERROR. Also 5305 6200 0002 0004 and 5305 6200 0001 0005.

Razorpay test cards for international payments

Cards for testing payments made with cards issued outside India.

Mastercard

5555 5555 5555 4444

International test card.

Mastercard

5105 1051 0510 5100

May open an address form. Use 21 Applegate Apartment, Rockledge Street, New York, NY 11561, US.

Mastercard

5104 0600 0000 0008

International test card.

Visa

4012 8888 8888 1881

International test card.

Razorpay test cards for subscriptions and EMI

Cards for recurring payments and EMI. In test mode a subsequent debit works only within 3 days of token creation.

Visa (domestic)

4718 6091 0820 4366

Credit. Subscription test card.

Mastercard (international)

5104 0155 5555 5558

Credit. Subscription test card.

Mastercard (international)

5104 0600 0000 0008

Debit. Subscription test card.

Mastercard

5241 8100 0000 0000

EMI test card.

Source: Razorpay docs, Test card details. Test values change occasionally; the provider’s page is authoritative.

How to use Razorpay test cards

Razorpay test mode runs with your test API keys and never moves money. Open checkout with a test key, enter one of the cards above with any CVV and a future expiry, and Razorpay shows a mock bank page. Any OTP of 4 to 10 digits completes the payment; an OTP shorter than 4 digits fails it.

The error cards only return their error when you choose failure on that mock success/failure screen, which makes it easy to check each message your checkout shows: insufficient funds, timeouts, cancelled payments and authentication failures each have their own card.

For subscriptions, use the subscription cards: in test mode a later debit only works within three days of the token being created, so run a renewal test soon after the first payment.

Tracking affiliate sales on Razorpay

Refgrow has no direct Razorpay connection, but each captured payment can be sent to it with one API call that carries the referral code, and Refgrow attributes the sale, calculates the commission and handles payouts. See the conversions API.

Test cards for other providers

Selling with Razorpay? Add an affiliate program through the API.

Send each captured payment with its referral code to Refgrow. It attributes the sale, calculates the commission and pays affiliates.

Works with any billing stack

Testing Razorpay? Your affiliate program is one API call away.

Record each captured Razorpay payment with POST /api/v1/conversions and the visitor's referral code. Refgrow credits the affiliate, applies your commission rules, and handles holds, refunds and payouts.

  • Referral links and cookies handled by the tracking script
  • One API call per sale, with the payment ID as reference
  • Commission rules, hold periods and refund reversals
  • Payouts via PayPal and Wise
Start free trialSee pricing

7-day trial · Cancel anytime

Start Free Trial
Razorpay Test Cards: Card Numbers & Error Cards | Refgrow