Namso — namso.tools

Payment Gateway Test Cards — Cheat Sheet

Dev Tools Weekly Cheat Sheet
**By Dev Tools Weekly** | namso.tools
The only test card reference you'll ever need.

Stripe

Card NumberBrandScenario
4242 4242 4242 4242VisaSuccess
4000 0000 0000 3220Visa3D Secure 2 required
4000 0000 0000 9995VisaDeclined (insufficient funds)
4000 0000 0000 0002VisaDeclined (generic)
4000 0000 0000 0069VisaDeclined (expired card)
4000 0000 0000 0127VisaDeclined (incorrect CVC)
4000 0000 0000 0119VisaDeclined (processing error)
5555 5555 5555 4444MastercardSuccess
3782 822463 10005AmexSuccess
6011 1111 1111 1117DiscoverSuccess

CVC: Any 3 digits (4 for Amex). Expiry: Any future date.


PayPal (Braintree/Sandbox)

Card NumberBrandScenario
4111 1111 1111 1111VisaSuccess
5555 5555 5555 4444MastercardSuccess
3714 496353 98431AmexSuccess
4000 1111 1111 1115VisaProcessor declined
5105 1051 0510 5100MastercardSuccess (debit)

Nonce for sandbox: fake-valid-nonce, fake-processor-declined-nonce


Adyen

Card NumberBrandScenario
4111 1111 1111 1111VisaSuccess
5500 0000 0000 0004MastercardSuccess
4400 0000 0000 0008Visa3D Secure required
4212 3456 7890 1237VisaSuccess (3DS2 frictionless)
5100 0000 0000 0016MCRefused

CVC: 737 (success), 200 (declined). Expiry: 03/2030 or any future.


Square

Card NumberBrandScenario
4532 7597 3454 5858VisaSuccess
5163 6132 2776 2451MastercardSuccess
4000 0000 0000 0002VisaDeclined (generic)
4000 0000 0000 0010VisaCVV failure
4000 0000 0000 0028VisaAddress failure

Sandbox nonce: cnon:card-nonce-ok, cnon:card-nonce-declined


Authorize.net

Card NumberBrandScenario
4007 0000 0002 7VisaSuccess
4012 8888 8888 1881VisaSuccess (alt)
5424 0000 0000 0015MastercardSuccess
3714 49635 398431AmexSuccess
6011 0000 0000 0012DiscoverSuccess

Test amounts: $1.00 = approved. Specific cent values trigger errors (e.g., amount ending in .05 = declined).


Checkout.com

Card NumberBrandScenario
4242 4242 4242 4242VisaSuccess
4543 4740 0224 9996Visa3DS challenged
4242 4242 4242 4243VisaDeclined
5436 0310 3060 6378MastercardSuccess
4002 9311 2055 7744VisaSuccess + 3DS2

Quick Reference: Common CVC/Expiry Rules

GatewayCVCExpiryZip/Postal
StripeAny 3/4 digitsAny futureAny 5 digits
PayPalAny 3/4 digitsAny futureAny
Adyen737 OK / 200 fail03/2030
Square111Any futureAny
Authorize123Any future46225

BIN Ranges by Network

NetworkBIN PrefixLength
Visa4xxx16 digits
Mastercard51xx–55xx, 2221–272016 digits
Amex34xx, 37xx15 digits
Discover6011, 65xx, 644–64916 digits
Diners Club300–305, 36, 3814-16 digits
JCB3528–358916 digits
UnionPay62xx16-19 digits

Luhn Algorithm (Mod 10 Check)

All valid card numbers pass the Luhn checksum:

  1. From the rightmost digit, double every second digit
  2. If doubling results in > 9, subtract 9
  3. Sum all digits
  4. If total mod 10 = 0 → valid

Example: 4242 4242 4242 4242

→ 4+4+4+4+4+4+4+4+4+4+4+4+4+4+4+4 = 64

→ Wait — doubled: 8+2+8+2+8+2+8+2+8+2+8+2+8+2+8+2 = 80 → 80 mod 10 = 0 ✅


🛠 Generate test cards instantly: namso.tools