Skip to main content

Razorpay Sandbox Test Cards

Official test card details for Razorpay Standard Checkout, custom checkout integrations, OTP authentication, and bank decline simulation.

Official Razorpay Docs
Developer Notice: Razorpay test cards are intended only for Razorpay's designated test environment. They do not represent real financial accounts and are not intended for live payment authorization.
Source: Official Razorpay testing documentation · Last verified against Razorpay documentation: 16 September 2026
Verification methodology →
Need synthetic test numbers for frontend form validation? See our Test Credit Card Numbers guide to understand the difference between synthetic QA fixtures and Razorpay's official sandbox values.
Read Guide
Scenario / Test Goal Test Card Number Expiry CVV Expected Result Verification
Payment success (Visa Debit Consumer)
4100 2800 0000 1007 Any future date Any 3 digits Enter a 4-10 digit OTP, or select Success on the mock bank page, to complete the simulated payment. Capture behavior depends on account settings. Verified against official source Recorded: 2026-09-16 Verified against the linked official provider documentation on 2026-09-16.
Payment success (Mastercard Credit Business)
5555 5100 0008 1006 Any future date Any 3 digits Enter a 4-10 digit OTP, or select Success on the mock bank page, to complete the simulated Mastercard payment. Verified against official source Recorded: 2026-09-16 Verified against the linked official provider documentation on 2026-09-16.
Payment success (RuPay Credit Consumer)
6527 6589 0000 1005 Any future date Any 3 digits Enter a 4-10 digit OTP, or select Success on the mock bank page, to complete the simulated RuPay payment. Verified against official source Recorded: 2026-09-16 Verified against the linked official provider documentation on 2026-09-16.
Card declined by bank (card_declined)
4100 2800 0006 0003 Any future date Any 3 digits Select Failure on the mock bank page to return card_declined: 'Your payment did not go through as it was declined by the bank. Try another payment method or contact your bank.' Verified against official source Recorded: 2026-09-16 Verified against the linked official provider documentation on 2026-09-16.
Insufficient account balance (insufficient_funds)
4100 2800 0008 0001 Any future date Any 3 digits Select Failure on the mock bank page to return insufficient_funds: 'Your payment could not be completed due to insufficient account balance. Try another card or payment method.' Verified against official source Recorded: 2026-09-16 Verified against the linked official provider documentation on 2026-09-16.
OTP Authentication failed (authentication_failed)
4100 2800 0000 0009 Any future date Any 3 digits Select Failure on the mock bank page to return authentication_failed: 'Your payment could not be completed due to incorrect OTP or verification details. Try another payment method or contact your bank for details.' Verified against official source Recorded: 2026-09-16 Verified against the linked official provider documentation on 2026-09-16.

Using Razorpay Test Cards in Development

Razorpay test mode provides official sandbox cards for simulating domestic card payments, OTP authentication flows, and bank decline errors in Razorpay Standard Checkout.

1. Use Test Mode API Keys

Generate test API keys in your Razorpay Dashboard (starting with rzp_test_) and ensure checkout options use test credentials.

2. Enter Test Card Credentials

Use official test numbers from the table above for Visa, Mastercard, or RuPay. Any future expiration date and any 3-digit CVV are accepted in test mode.

3. Complete Mock Bank Page & OTP

When prompted on the simulated bank redirect page, enter any 4–10 digit OTP or click Success to authorize the payment. Click Failure to simulate bank rejection.

4. Verify Bank Decline & Failure Codes

Use specific test cards to verify failure states: the bank decline card returns card_declined, the balance test card returns insufficient_funds, and OTP failure simulation returns authentication_failed.

Other Gateway Sandboxes: Stripe PayPal Adyen Braintree Square

Related Payment Testing Tools & Resources