Payment Gateway Test Cards

The official sandbox card numbers published by each payment gateway β€” including the ones that deliberately fail. Generated cards pass a Luhn check but no gateway will approve them; these are the numbers that actually work against a sandbox.

Gateway test cards vs generated cards

They solve different problems, and using the wrong one wastes an afternoon.

A generated card number is structurally valid: it has a real BIN prefix, the right length for its scheme, and a correct Luhn check digit. That makes it ideal for testing your own form validation, your database schema, or a UI that formats and masks card input. No payment processor will authorise it, because it does not correspond to an account anywhere.

A gateway test card is a number the gateway itself recognises in its sandbox and maps to a scripted outcome. That is what you need once you are testing the integration rather than the form β€” and crucially it is the only way to exercise the failure paths. Roughly half of a payment integration is what happens when the charge is declined, the card is expired, the CVC is wrong, or 3D Secure demands a challenge.

Every number listed here comes from the gateway's own documentation, and each page links back to the source so you can confirm it has not changed.