Card Test Environment: What It Is and How to Use It
A card test environment lets you simulate card payments with test credentials and test card numbers, with no real card data and no real money moving.
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.
Stripe publishes its test card numbers, expiry values, CVC values and decline codes in public documentation, and any account in test mode accepts them at no cost. That means the buying decision is narrow. If a vendor is selling a list of test card numbers, you are paying for a copy of free data. If a vendor is selling test automation that runs your checkout against hundreds of these numbers and reports failures, that can be worth money once you have a defined test matrix for your own product. Decide the matrix first. Buy tooling second. Skip the list.
One point matters more than the rest: Stripe test cards work only in test mode. They will not authorize in live mode, they are not issued to anyone, and they carry no funds. Any offer that implies a test card number can do something outside a test environment is describing something other than Stripe test cards.
A Stripe test card is a card number in the reserved test ranges that Stripe routes through its sandbox instead of a real card network. Each number triggers a canned response: a successful charge, a specific decline, a 3D Secure challenge, a processing error. Developers use them to check that their integration handles success and failure paths without moving real money.
The commonly used numbers follow the brand prefixes you already know, which is why they look like ordinary consumer cards:
Behavior variants are just as important as the happy path. Stripe maintains numbers that produce a generic decline, an insufficient funds decline, a lost card, a stolen card, an incorrect CVC, an expired card, a processing error, and a 3D Secure 2 authentication prompt. Build your test plan around those outcomes rather than around a single green check.
No. They are rejected outside test mode by design. If a test number appears to work in live mode, something is wrong with your configuration.
No. Stripe publishes them free, along with decline codes and authentication test cases.
Do not. Test mode does not need it, and handling real card data in a development system expands your compliance obligations for no benefit.
Any future expiry date and any three-digit CVC, or four digits for American Express.
Enough to hit each outcome your code branches on: success, soft decline, hard decline, authentication required, authentication failed, and processing error. Usually a dozen or fewer.