Test Payment Card: Sandbox Numbers and How to Use Them

Our Cards

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

giftcardimage

Where to Use?

Redeem your gift cards at any of our Merchants

Where to Buy?

You can purchase a gift card from any of these locations

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

A test payment card is a card number published by a payment processor for sandbox testing. It looks like a live card, passes the same validation rules, and never charges a real account. Developers use it to check approvals, declines, refunds, subscriptions, and 3D Secure prompts before a checkout goes live.

What Is a Test Payment Card?

Processors treat test cards as real inputs inside a closed environment. The number passes the Luhn check, carries a real BIN range, and returns the response code that the processor assigned to it. No money moves, and no bank sees the request.

Each test number maps to one outcome. One card approves, another declines, a third asks for 3D Secure. That mapping is the point: you pick the outcome you want to reproduce.

What Can You Test With a Sandbox Card?

Where Do Test Card Numbers Come From?

Every gateway publishes its own list. Stripe, Adyen, Braintree, PayPal, Square, and Checkout.com all keep sandbox numbers in their developer documentation. The lists differ between processors, so a Stripe test card can fail inside an Adyen sandbox.

Most gateways also add a test mode switch in the dashboard. Flipping that switch routes requests to the sandbox network and pairs the account with separate API keys. Test cards stop working the moment you switch back to live keys.

Which Test Card Numbers Cover Common Cases?

Approvals and declines

Authentication and verification cases

Lists change over time. Check the processor docs before you hardcode anything, and keep the numbers in test fixtures rather than in application code.

How Do You Test a Payment Flow End to End?

  1. Turn on test mode in the gateway dashboard and copy the sandbox API keys.
  2. Load the sandbox keys into your local or staging environment. Never mix them with live keys.
  3. Open your checkout page and enter a test card number, a future expiry date, and a CVC.
  4. Confirm the response matches the outcome the number is meant to produce, whether approval or decline.
  5. Check the webhook log for the matching event and confirm your database updated the order state.
  6. Repeat with a decline case, a refund, and a 3D Secure card.

What Value Do You Use for the CVV and Expiry Date?

Sandboxes ignore the CVC value in most cases. Any 3 digits work for Visa, Mastercard, and Discover, and 4 digits work for American Express. A few gateways reserve the value 000 or a wrong-length CVC to trigger a failed verification.

Use any future expiry date. A past date returns an expired card error in most sandboxes, which helps when you test that branch of your form. Postal code checks follow the same pattern: a string that matches the field format passes.

Can You Buy a CVV or Card Number for Testing?

No. Test card numbers are free, published, and tied to a sandbox. Bought card data comes from real accounts, and using it is card fraud under laws such as the US Computer Fraud and Abuse Act and the UK Fraud Act. Penalties include prison time and fines, and processors ban merchants caught doing it.

When a seller offers CVV data for "testing", the data is stolen, fabricated, or already dead. You gain nothing for development and take on legal risk.

What Are the Risks of Using Real Card Data in Tests?

How Do You Stop Card Testing Attacks on Your Live Site?

Card testing attacks use your checkout to check whether stolen numbers work. The attacker pays nothing. You pay the fees, the fines, and the dispute rate.

Test Card FAQ

Do test cards work in live mode?

No. Live mode sends requests to the card networks, so a test number returns a decline or an invalid card error.

Is a test card the same as a virtual card?

No. A virtual card is a real, funded number issued by a bank or fintech for one merchant or a set spending limit. A test card has no account behind it.

How do I know my integration handles every response?

Run each number from the processor list and compare the result against your own error handling. Store the raw gateway response in test logs so you can trace a mismatch later.

Contact Us

Latest

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