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.
Any value
Any future date
e.g. 12/34
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.
4100 2800 0000 1007
Debit, consumer.
5555 5100 0008 1006
Credit, business.
5180 2872 0009 1001
Prepaid, consumer.
6527 6589 0000 1005
Credit, consumer.
3608 280009 1007
Credit, consumer.
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.
4100 2800 0009 0000
BAD_REQUEST_ERROR. Mastercard: 5305 6200 0006 0000.
4100 2800 0008 0001
BAD_REQUEST_ERROR. Mastercard: 5305 6200 0005 0001.
4100 2800 0007 0002
BAD_REQUEST_ERROR. Mastercard: 5305 6200 0004 0002.
4100 2800 0006 0003
BAD_REQUEST_ERROR. Mastercard: 5305 6200 0003 0003.
4100 2800 0003 0006
BAD_REQUEST_ERROR. Mastercard: 5305 6200 0000 0006.
4100 2800 0001 0008
BAD_REQUEST_ERROR. Mastercard: 5305 6200 0008 0008.
4100 2800 0002 0007
GATEWAY_ERROR. Mastercard: 5305 6200 0009 0007.
4100 2800 0000 0009
GATEWAY_ERROR. Mastercard: 5305 6200 0007 0009.
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.
5555 5555 5555 4444
International test card.
5105 1051 0510 5100
May open an address form. Use 21 Applegate Apartment, Rockledge Street, New York, NY 11561, US.
5104 0600 0000 0008
International test card.
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.
4718 6091 0820 4366
Credit. Subscription test card.
5104 0155 5555 5558
Credit. Subscription test card.
5104 0600 0000 0008
Debit. Subscription test card.
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.