Razorpay Card Testing: Test Mode Guide

Our Cards

Choose from any of our gift cards to give to your loved ones

Razorpay Test Payment Card: Numbers and How to Use Them

giftcardimage

Where to Use?

Redeem your gift cards at any of our Merchants

razorpay dummy card

Where to Buy?

You can purchase a gift card from any of these locations

more on this topic

ABOUT US

about

What is ONYX GiftCards?

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.

What is a Gift Card?

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.

How it Works?

  • Buy an Onyx Gift Card at these local stores
  • Give your gift card to friends, family, co-workers, etc.
  • The recipient can shop at our select merchants nationwide
  • Your friends, family, co-workers, etc. will present their gift card at checkout to pay for your item(s)
  • They will walk away happy with the best gift ever...the gift of Choice

Why ONYX GiftCards?

  • Save TIME. No need to run around looking for the perfect gift
  • Redeem from a variety of business island-wide. We will continue adding businesses as fast as ONYX grows.
  • ONYX Gift Cards do not expire
  • Cards are valued at convinient amounts to meet every need and occasion

Short answer

Razorpay card testing means running your checkout in test mode with sandbox card numbers that Razorpay publishes, not with real card data. You flip the dashboard to test mode, swap in your test key ID, submit one of Razorpay's documented test cards, and then confirm the payment appears in the dashboard and fires the webhook your server expects. No funds move and no live card is used.

Prerequisites

Step by step

  1. Open the Razorpay Dashboard and switch the mode toggle to Test Mode.
  2. Generate a test Key ID and Key Secret, and store them outside your repository.
  3. Point your staging environment at the test keys instead of the live keys.
  4. Create an order through the Orders API and log the returned order ID.
  5. Open your checkout, paste the order ID, and load it with the test Key ID.
  6. Enter a documented test card number from Razorpay's test card page, a future expiry date, and any CVV.
  7. Complete the payment and note the payment ID shown on the result screen.
  8. Open Dashboard > Transactions > Payments in test mode and confirm the payment ID and status match.
  9. Check your webhook log for the payment.captured event and verify the signature against your stored secret.
  10. Repeat the flow with a failure test card from the same docs page and confirm your code handles payment.failed.

What the test cards do

Razorpay's test card list is organized by outcome. One number always succeeds, others force a specific decline, and a third group pushes the payment into the 3D Secure challenge so you can test the redirect and the return trip to your site. UPI IDs and netbanking credentials follow the same pattern in test mode. Any expiry date in the future works, and the CVV field accepts any three digits because no real issuer is involved.

Reading a failed test

Rules that keep testing clean

Never type a real card number into test mode. It will fail, and it teaches you nothing about the live path. Never run a card you do not own, and never use a sandbox account to check whether a number is valid. Card numbers belong to their holders, and storing them outside a PCI DSS compliant flow creates liability for you. Test mode exists to prove your order creation, checkout, capture, and webhook code in that sequence, and that is all it should be used for.

Before you go live

Regenerate live keys, keep them server side, add rate limiting and a CAPTCHA on the payment form, and log request metadata without card data. Run one low value live transaction with your own card, then confirm the settlement report matches your database.

Contact Us

Latest

Read our complete guide: Should You Buy CVV From a Card Shop? The Honest Buyer's Guide