A Braintree test card is a dummy payment card number used inside the Braintree sandbox to simulate a transaction without moving real money. The usual starting point is 4111111111111111, a checksum-valid Visa number that returns a successful authorization. Because sandbox data lives completely apart from a live merchant account, you can run as many test payments as you like, with no real cardholder data involved.
What is a Braintree test card?
It is one of the dummy account numbers published for the Braintree sandbox environment. Each number belongs to a card brand, passes standard card-number validation, and is built to return a predictable result so you can rehearse checkout flows, declines, and error handling in a safe setting.
Key Features
- Sandbox-only numbers covering Visa, Mastercard, American Express, Discover, JCB, and Diners Club
- Checksum-valid values that pass client-side card-number validation and tokenization
- Any future expiry date is accepted, so you can test date pickers and formatting freely
- Standard security codes work by default, with four digits used for American Express
- Selected numbers and transaction amounts trigger declines, gateway rejections, and AVS or CVV mismatches
- Compatible with Drop-in UI, Hosted Fields, and server-side payment APIs
- Works with vaulting, recurring billing, and 3D Secure sandbox flows
- Keeps development and staging environments clear of live cardholder data
How do you test a declined payment?
Braintree ties decline behavior to particular test numbers and specific transaction amounts rather than to one universally "bad" card. Setting a sandbox transaction to a designated decline amount or number returns a processor response such as Do Not Honor, while other combinations simulate card-verification failures or gateway errors. Record which input produced which response so your error messages stay accurate.
Specs and compatibility
Test numbers follow the same formatting rules as real cards: Visa and Mastercard run sixteen digits beginning with 4 or 5, American Express uses fifteen digits beginning with 34 or 37, Discover and JCB use sixteen digits, and Diners Club uses fourteen. All of them satisfy the Luhn checksum, which is why they survive front-end validation. Expiry dates may be any future month and year, and security codes are typically three digits, or four for American Express. Sandbox and production are separated by merchant credentials, so test activity never touches your live account.
Are Braintree test cards safe to use in production?
No. These numbers exist only for sandbox testing and are rejected by a live gateway. Never place them on a real checkout page or in a production database, and never substitute them for genuine payment credentials in a live environment.
Delivery and returns
This reference is delivered digitally to your account immediately after purchase, so there is nothing to ship and no waiting on a courier. If the material does not match your setup, contact support within thirty days for a full refund, and our team will help you find the right test values first.