A Razorpay test card is a sample card number published by Razorpay that approves or declines simulated payments inside test mode, and it never touches a real bank account. This guide covers what those sample numbers are for, how to pair them with your test API keys, and what to check when a simulation refuses to go through. It is written for developers and store owners who want to verify a checkout flow before switching to live payments.

What is a Razorpay test card?

It is a placeholder card number listed in Razorpay's developer documentation for sandbox testing. Used together with a test-mode key ID and key secret, it lets you walk through the whole payment lifecycle, from authorisation and capture to refunds and webhooks, without any money moving.

Key Features

  • Sample Visa, Mastercard and RuPay numbers that only function in test mode
  • Preset success and failure variants so you can simulate declined payments on demand
  • Matching test UPI IDs, netbanking credentials and wallet details for other methods
  • No real funds involved, so no live account or settlement is affected
  • Works with Checkout, Orders API, payment links, subscriptions and invoices
  • Compatible with the standard test key pair generated inside your dashboard
  • Free to use, with no activation, approval or verification step

Materials and specifications

This is a digital reference guide delivered as a document you can keep beside your codebase. It explains how test card numbers are formatted, why any future expiry date and any three-digit code are accepted in sandbox, and where the simulated one-time password step fits in a 3-D Secure flow. It also maps each sample number to the outcome it produces, so you can trigger a specific error code instead of guessing. Everything described applies strictly to test mode, and real card details should never be typed into a sandbox form.

Delivery and returns

The file is sent to your email address immediately after checkout, usually within a minute, and can be re-downloaded from the same link at any time. If it will not open or the content is not what you expected, contact support within 30 days for a replacement or a full refund, no questions asked.

Do Razorpay test cards work in live mode?

No. They are rejected the moment your integration uses live keys, which is exactly why they are safe to paste into a shared test environment.

Why is my test card payment failing?

Most failures come from using live API keys, mistyping the number, or selecting a sample card that is designed to decline. Confirm you are in test mode, re-copy the number, and try a known success variant before debugging anything else.