Test Payment Card: How to Use One in a Sandbox

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 a payment processor publishes for its sandbox. A charge made with it returns a simulated result: no money moves, no bank is contacted, and no real cardholder is involved. You use it to build and check a checkout flow before live keys go anywhere near your code.

Prerequisites

Run a test charge

  1. Open the sandbox dashboard and copy the test secret key.
  2. Load that key from an environment variable instead of pasting it into source files.
  3. Pick a card number from the processor's test documentation. 4242 4242 4242 4242 is the usual Visa approval case; 5555 5555 5555 4444 covers Mastercard.
  4. Enter any future expiry date and any three-digit CVC. Test cards ignore both unless the scenario requires otherwise.
  5. Point your payment request at the sandbox endpoint, not the live one.
  6. Submit the charge and read the response object.

Where test card numbers come from

Every processor keeps its own list, so a number that works at one gateway may be rejected at another. Take the numbers from the documentation of the provider you are actually integrating, and re-check the list after a major API version change. Numbers are published openly for this purpose; nothing about them is secret.

Trigger a decline or a challenge

  1. Find the decline case in the processor's test table, such as insufficient funds or an expired card.
  2. Swap that number into your test request in place of the approval card.
  3. Confirm your interface shows the error message the processor returns.
  4. Switch to the card that forces a 3-D Secure challenge and complete the simulated authentication.
  5. Repeat both cases against your webhook handler.

Rules that keep test data clean

Verify the result

  1. Compare the response status and decline code against the expected value in the docs.
  2. Check the sandbox dashboard log for the matching transaction entry.
  3. Confirm your webhook receiver stored the event exactly once.

A test payment card only proves your integration handles the cases you scripted. Add the decline and challenge paths to your automated suite so they stay covered after the next refactor.

Contact Us

Latest

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