Free tool

Braintree test card numbers

In the Braintree sandbox use 4111 1111 1111 1111 with any future expiry date. The card number decides card verification; the transaction amount decides whether a sale is authorized or declined.

24 numbers, copied from Braintree's testing docs on 2026-11-15. They only work in the Braintree sandbox / test environment, for development and testing. They are not real cards and cannot pay for anything.

Free · no sign-up · runs in your browser, nothing is uploaded

Valid cards (outcome follows amount)

14 cards
CardNumberResult
Visa4111 1111 1111 1111 No card error; success under 2000.00
Visa4012 8888 8888 1881 No card error
Visa (prepaid)4500 6000 0000 0061 Card type indicator prepaid = Yes
Visa (Durbin regulated)4005 5192 0000 0004 Durbin regulated = Yes
Mastercard5555 5555 5555 4444 No card error
Mastercard 2-series2223 0000 4840 0011 No card error
American Express3782 822463 10005 No card error
American Express3714 496353 98431 No card error
Discover6011 0009 9130 0009 No card error
Diners Club3625 9600 0000 04 Processed as Discover
JCB3530 1113 3330 0000 No card error
Maestro6304 0000 0000 0000 No card error
UnionPay6243 0300 0000 0001 No card error
UnionPay6221 2611 1111 7766 No card error

Unsuccessful card verification

6 cards
CardNumberResult
Visa4000 1111 1111 1115 Verification: processor declined
Mastercard5105 1051 0510 5100 Verification: processor declined
American Express3787 344936 71000 Verification: processor declined
Discover6011 0009 9013 9424 Verification: processor declined
Diners Club3852 0000 0098 14 Verification: processor declined
JCB3566 0020 2036 0505 Verification: failed (3000)

Fraud tools and disputes

4 cards
CardNumberResult
Visa4111 1400 0000 0002 Authorized, fraud decision Review (Fraud Protection Advanced)
Visa4000 1111 1111 1511 Gateway rejected: fraud
Visa4111 1300 0000 0003 Gateway rejected: risk_threshold
Visa4023 8984 9398 8028 Settled sale that is instantly disputed

How testing works in Braintree

  • Sandbox only (sandbox.braintreegateway.com); only listed test numbers are accepted.
  • Any future expiry date works; the docs set no fixed expiry.
  • Transaction outcome is set by the AMOUNT, not the card: 0.01-1999.99 authorized; 2000.00-2999.99 processor declined with response code equal to the amount (e.g. 2001 = insufficient funds); 3000.00-3000.99 failed (3000); 3001.00-4000.99 authorized; 4001.00-4001.99 and 4003.00-5000.99 settlement declined on some types; 5001.00 gateway rejected (application incomplete); 5002.00+ authorized.
  • Card verification outcome (vaulting, recurring) is set by the CARD NUMBER: use the unsuccessful-verification cards below.
  • CVV (with CVV rules enabled): 200 = N no match, 201 = U not verified, 301 = S issuer not participating, omitted = I, anything else = M match. Amex CID: 2000 / 2011 / 3011.
  • AVS postal code: 20000 = N, 20001 = U, 30000 = E system error, 30001 = S not supported; street number 200 = N, 201 = U; anything else matches.
  • Server-side tests can skip the client and use static nonces such as fake-valid-nonce, fake-valid-visa-nonce, fake-processor-declined-visa-nonce.
  • 3D Secure: Braintree points to a CardinalCommerce PDF for 3DS card numbers; on the testing page it gives nonces / authentication IDs instead, e.g. fake-three-d-secure-two-visa-successful-step-up-authentication-nonce, fake-three-d-secure-visa-failed-authentication-nonce.

Amounts that decline in the Braintree sandbox

AmountResult
0.01 – 1999.99Authorized
2000.00 – 2999.99Processor declined; the response code equals the amount (2001.00 → 2001 Insufficient Funds)
3000.00 – 3000.99Failed with processor response 3000
3001.00 – 4000.99Authorized
5001.00Gateway rejected (application incomplete)

Run transaction.sale with amount: "2001.00" to see how your code handles a decline, without changing the card.

Test cards for other providers, and more test data

Every provider only accepts its own published numbers. For other gateways, and for the rest of a checkout form:

FAQ

What is the Braintree test card number?+

The usual one is 4111 1111 1111 1111 (Visa) with any future expiry date. Mastercard 5555 5555 5555 4444 and Amex 3782 822463 10005 work too. They only work in the Braintree sandbox.

How do I test a declined transaction in Braintree?+

In the sandbox the amount decides the result, not the card. Amounts from 2000.00 to 2999.99 are processor declined with a response code equal to the amount (2001.00 returns 2001 Insufficient Funds), and 3000.00 to 3000.99 fail with 3000. Amounts under 2000.00 are authorized.

How do I test a failed card verification?+

Verification (when you save a card in the vault or start a subscription) is decided by the card number. Use the cards in the "Unsuccessful card verification" group, such as Visa 4000 1111 1111 1115, and the verification comes back processor declined.

How do I test CVV and AVS rules in the Braintree sandbox?+

With CVV rules turned on, CVV 200 returns N (no match), 201 returns U (not verified) and 301 returns S (issuer does not participate). For AVS, postal code 20000 returns N and 20001 returns U; street number 200 returns N and 201 returns U.

Can I test 3D Secure in the Braintree sandbox?+

Braintree's testing page gives test nonces and authentication IDs for 3D Secure and points to Cardinal's documentation for 3D Secure card numbers. Those 3DS card numbers are not listed here because they are not on Braintree's own page.

Sources: Braintree test card docs. Checked 2026-11-15.