Card Number Test: Sandbox Testing Guide for Merchants

Run every card number test inside your payment processor's sandbox, using the test card numbers that processor publishes. Those numbers sit in reserved test BIN ranges, pass format checks, and are built to trigger specific outcomes such as approvals, declines, insufficient funds, and 3D Secure challenges. Numbers sourced from card shops, forums, or bulk lists are real account data. Running authorization attempts against them is card testing fraud, and no tool, checklist, or vendor makes that a legitimate purchase or a legitimate integration test.

What to evaluate before you pick testing tools

How to read the numbers you test with

A primary account number carries an issuer identification number in its leading digits and a check digit at the end. That check digit comes from the Luhn algorithm. A Luhn pass confirms the digits are internally consistent and nothing more. It says nothing about whether an account exists, is open, or holds funds. Developers who treat Luhn as a validity test build forms that reject good cards and accept nonsense. Treat it as a typo catcher.

Test ranges are documented per network by your processor. Visa, Mastercard, American Express, and Discover each maintain reserved test BINs that sandbox endpoints accept. Use those. A live BIN submitted to a sandbox will be rejected by the processor, and a live BIN submitted at volume to production endpoints looks exactly like an account probing attack, because that is what it is.

Common pitfalls

FAQ

Can I test a card number without a processor account?

You can check length, format, and the Luhn check digit offline. You cannot test authorization behavior without a sandbox account from a processor.

Do test card numbers ever charge real money?

No. Sandbox numbers are rejected by production endpoints, and a decline is the expected result.

Is checking whether a card is live ever acceptable?

Only for cards you issued or personally hold, through your own processor, with written authorization. Bulk authorization attempts against cards you do not own are card testing, a fraud pattern that card networks and issuers actively monitor.

What if I need realistic decline data?

Use your processor's decline simulation and documented test numbers. If you need production decline rates for underwriting, request aggregate reporting from your processor rather than testing live accounts.

More

Read our complete guide: Buy CVV Cheap: Pricing, Risks, and What First-Time Buyers Need to Know