Razorpay Test Card: How to Use It for CVV Testing
Discover how to use a Razorpay test card for CVV testing in this comprehensive guide.
Redeem your gift cards at any of our Merchants
Onyx Gift Cards is a Grenadian company designed to introduce, market and manage gift cards systems in Grenada for retailers and corporations. We are enthusiastic about the effect and influence we will have on the local market. We intend to expand our systems regionally with a range of product offerings and services.
Gift cards are the preferred way of giving and receiving gifts. They carry a monetary value that can be redeemed for gifts at your favorite store.
Onyx GiftCards are “Open Gift Cards” which means that they can be redeemed at multiple merchant locations. They are standard credit card size, can fit into the average wallet and made of PVC plastic. Onyx GiftCards are Barcoded for security and safety for the consumer and bear a disclaimer at the back.
Onyx Giftcards can be bought with a branded Card backer which is black in colour and is designed to fit the card. There is an area to write a brief message to the recipient as well.
Answer first: the card most developers use for a successful Razorpay test payment is 4111 1111 1111 1111, a Visa sandbox number Razorpay documents for test mode. Enter any future expiry date and any three-digit CVV, and make sure you are using test API keys rather than live ones. Three criteria decide which test card you should pick: the outcome you need to simulate (success, decline, or 3D Secure challenge), the card network you want to exercise, and whether the number still appears in the gateway's current published list. Test cards are sandbox credentials, not real cardholder data, and they only behave as documented while your account is in test mode.
A test card number is a published placeholder that routes to a simulated banking response inside the gateway's sandbox. No money moves, no issuer is contacted, and no real account is touched. Razorpay, like other gateways, maintains a short list of these numbers and ties each one to a fixed outcome so your integration can branch on success, failure, and authentication flows without waiting on a real bank.
The important boundary: a real card number is never a test card. Feeding live cardholder data into a sandbox breaches card network rules and PCI DSS requirements, and it puts you in the position of storing data you are not allowed to store.
Start here for happy-path testing. The Visa success number 4111 1111 1111 1111 is the one Razorpay's documentation leads with, and it is the number most tutorials and Stack Overflow answers reference.
Use it when you are wiring up the payment call for the first time and just need a green result to confirm keys, order creation, and signature verification are correct.
Razorpay's sandbox also lists Mastercard and American Express style numbers, commonly cited as 5267 3181 8797 5449 for Mastercard. If your checkout renders different forms or brand icons per network, you need at least one card per network to confirm the branch logic.
Use it when your integration displays a network logo, adjusts card field length, or validates card type before submission.
The most valuable test cards are the ones that fail. Razorpay's documentation includes numbers that reliably produce a declined payment and numbers that trigger a 3D Secure challenge, so you can build your error states, retry logic, and webhook handling against something reproducible. Always pull the current list from the dashboard or the live docs before you hardcode anything into a test suite, because these numbers change.
Use it when you are testing order state transitions, webhook consumers, or user-facing error copy.
Building the integration from scratch: use the Visa success card. Testing brand rendering and input validation: add a Mastercard number. Testing error handling, webhooks, and retries: use a documented decline card. Testing the authentication step: use a card flagged for 3D Secure. In every case, verify the number against the current Razorpay documentation on the day you run the tests, and keep real card numbers and CVVs out of your test environment entirely.