Gift Cards

Test credit card data is a published set of card numbers, expiry dates and CVV codes that payment processors release for sandbox testing. These numbers pass the same format and Luhn checksum rules as live cards, but no real account sits behind them, so a test transaction never moves money. Developers use test credit card data to confirm that checkout forms, tokenization, fraud rules and webhook handling behave correctly before going live.

card testing data

What test credit card data actually contains

A test card record mirrors the fields a real transaction carries, minus the cardholder. A typical set includes:

credit card test set

  • A primary account number (PAN) drawn from a range reserved for testing
  • An expiry date set in the future so validation rules accept it
  • A CVV or CVC value, usually three or four digits
  • Optional AVS data such as a postal code or street number
  • A defined behavior flag that tells the sandbox whether to approve, decline or challenge the payment

Because the behavior flag is attached to the number, the same digits always produce the same result in the same sandbox. That predictability is the whole point.

more on this topic

Where test credit card data comes from

Every major processor maintains its own list inside its developer documentation. Stripe, PayPal and Braintree, Adyen, Square and Checkout.com all publish test cards, and the sets are not interchangeable. A number that triggers a 3D Secure challenge in one sandbox may be rejected outright as out of range in another.

Use the list published by the processor you are actually integrating. If your stack routes through two providers, keep two separate test data sets and label them clearly, because a passing test in one environment tells you nothing about the other.

How the numbers are built

Test PANs follow the same structure as real cards. They run 16 digits (occasionally 15 or 19), start with an issuer prefix, and end with a check digit calculated by the Luhn algorithm. A widely used Visa test number begins with 4242, while several Mastercard test ranges start with 5555.

Processors then assign specific outcomes to specific digits. Common patterns include one number for a clean approval, one for a generic decline, one for insufficient funds, and one for a CVV mismatch. Some sandboxes also expose a number that forces a processing error so you can test your retry logic. Because the outcomes are documented, you should never need to guess.

Scenarios worth simulating

  1. Successful authorization and capture, including the webhook that follows
  2. Generic decline, to confirm the customer sees a clear message
  3. Insufficient funds, which often routes to a different retry path
  4. Expired card and invalid expiry format
  5. CVV mismatch and AVS mismatch, checked separately
  6. 3D Secure challenge completed and abandoned
  7. Network timeout or processor error, to test idempotency keys

Rules for handling test credit card data

  • Never point a test card at a live endpoint. Sandboxes should use separate API keys and separate hosts.
  • Never paste real card numbers, and never real CVVs, into a test environment. Mixing them defeats the purpose and creates a compliance problem.
  • Keep test credentials in a shared document or fixture file so the whole team uses the same values.
  • Do not treat a successful sandbox run as proof of PCI DSS compliance. Passing tests show your code works, not that your controls are audited.
  • Rotate sandbox keys on the same schedule as production keys.

Test data versus real card data

The distinction matters legally as much as technically. Test credit card data carries no risk because it maps to no account and no cardholder. Real card numbers, expiry dates and CVVs are regulated financial data, and buying, selling, trading or holding them without authorization is a criminal offense in the United States and most other jurisdictions. A sandbox number can be printed in public documentation. A live number cannot leave the systems that are permitted to store it.

Quick checklist before you ship

  • Confirm you are using the test list for your specific processor
  • Cover at least one approval, one decline and one authentication challenge
  • Verify webhook signatures and event ordering, not just the checkout screen
  • Log test runs without storing full PANs or CVVs
  • Switch to live keys only after every scenario passes

Fast digital delivery

You will receive the digital voucher immediately.

Secure Payment

All your data is transmitted with unbreakable SSL-RSA encryption.

Suitable for giving away

You can give away, resell or keep the vouchers.

24/7 customer support

We are available for you 24 hours a day.

ProtectedGiftCards.com Newsletter

Be informed as soon as new vouchers are added or when there are discounts.

Read our complete guide: Buy CVV in 2025: A Buyer's Guide to Prices, Pitfalls, and Avoiding Scams