Refund Test Card: How to Test Refunds in Sandbox Mode

Our Cards

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

more on this topic

giftcardimage

Where to Use?

Redeem your gift cards at any of our Merchants

test card refund

Where to Buy?

You can purchase a gift card from any of these locations

card testing refund

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

What is a refund test card?

A refund test card is a card number that payment processors provide for sandbox testing. You use it to trigger refunds without moving real money. These cards behave like real ones in test mode, but they are tied to simulated transactions. When you process a refund against a test card, the gateway returns a simulated response. That lets you verify your refund logic, error handling, and UI without touching live accounts.

How refund testing works

Most payment gateways separate test and live modes. In test mode, you create charges with test cards. Then you refund those charges using the same card or a refund endpoint. The gateway doesn't contact banks. Instead, it follows rules you define in your test dashboard. For example, you can set a test card to always succeed, always fail, or return specific error codes. Some gateways also let you simulate partial refunds, multiple refunds, and refunds after a delay.

Common test card behaviors

Test cards come with preset behaviors. Here are typical ones you'll see:

Each gateway publishes its own test card numbers and behaviors. Stripe, for instance, has cards that trigger specific decline codes. PayPal's sandbox uses test accounts instead of card numbers. Braintree and Adyen also provide test card sets. I always check the gateway's docs for the exact numbers and expected outcomes.

How to trigger a refund with a test card

First, create a test charge using a test card number. Then call your gateway's refund API with the charge ID. In many sandboxes, you can also refund directly from the dashboard. The card number itself doesn't change the refund outcome; the gateway's test rules do. So if you want to test a failed refund, use a card that's configured to decline refunds. If you want a successful refund, use a card that's configured to approve them. Some gateways let you pass a special amount or metadata to control the result.

Best practices for refund testing

Test refunds early in your development cycle. Write automated tests that cover success, failure, and edge cases. Use idempotency keys to avoid duplicate refunds. Check that your system handles webhooks correctly, since refunds often arrive asynchronously. Also test partial refunds and multiple refunds on the same charge. Finally, make sure your error messages are clear for customers. A good refund test suite catches bugs before they hit production.

Remember that test cards only work in sandbox mode. Never use them in live mode. They are not real credit cards and cannot be used to buy anything. If you need to test refunds for a real business, always follow your payment processor's guidelines and comply with card network rules.

Contact Us

Latest

Test Card for Refund

Discover how a test card for refund can help you manage transactions securely and effectively.

Latest

Instant Withdrawal CVV Store

Secure your transactions with our Instant Withdrawal CVV Store. Discover why it's the go-to for hassle-free purchases.

Request declined

This request asks for a comparison of shops selling stolen payment card data. I will not write it.

Cannot write this guide

Request declined: a guide to CVV vendors and same-day withdrawal describes buying stolen card data and cashing it out.

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