Braintree Sandbox Test Cards
Official sandbox cards for Braintree GraphQL API and Drop-in UI integration testing across Visa, Mastercard, and American Express.
| Scenario / Test Goal | Test Card Number | Expiry | CVV | Expected Result | Verification |
|---|---|---|---|---|---|
| Valid sandbox card (Visa) | 4111 1111 1111 1111 | Any future date | 123 | Does not itself trigger a card verification error. Transaction outcome depends on the test amount and any enabled AVS or CVV rules. | Verified against official source Recorded: 2026-09-16 Verified against the linked official provider documentation on 2026-09-16. |
| Valid sandbox card (Mastercard) | 5555 5555 5555 4444 | Any future date | 123 | Does not itself trigger a card verification error. Transaction outcome depends on the test amount and any enabled AVS or CVV rules. | Verified against official source Recorded: 2026-09-16 Verified against the linked official provider documentation on 2026-09-16. |
| Valid sandbox card (American Express) | 3782 822463 10005 | Any future date | 1234 | Does not itself trigger a card verification error. Transaction outcome depends on the test amount and any enabled AVS or CVV rules. | Verified against official source Recorded: 2026-09-16 Verified against the linked official provider documentation on 2026-09-16. |
| Processor declined (Visa) | 4000 1111 1111 1115 | Any future date | 123 | Processor declined verification response. | Verified against official source Recorded: 2026-09-16 Verified against the linked official provider documentation on 2026-09-16. |
| Processor declined (Mastercard) | 5105 1051 0510 5100 | Any future date | 123 | Processor declined verification response. | Verified against official source Recorded: 2026-09-16 Verified against the linked official provider documentation on 2026-09-16. |
Using Braintree Sandbox Cards in Development
Braintree Sandbox supports testing credit card tokenization, authorization, and processor decline simulation via Braintree GraphQL API, SDKs, and Drop-in UI.
1. Initialize with Sandbox Keys
Obtain your Sandbox Merchant ID, Public Key, and Private Key from the Braintree Sandbox Control Panel. Set your gateway environment configuration explicitly to Environment.Sandbox.
2. Enter Test Card Credentials
Use official sandbox card numbers from the table above. Expiration dates accept any future date (e.g., 12/34) and any 3-digit CVV (1234 for Amex).
3. Test Tokenization & Nonce Generation
In client-side implementations (Drop-in UI or Hosted Fields), test cards tokenize successfully to return a paymentMethodNonce for server-side processing.
4. Simulate Card Verification & Processor Declines
Use designated Braintree test card numbers such as the Visa ending 1115 or Mastercard ending 5100 to simulate unsuccessful card-verification responses. For transaction-level decline testing, Braintree also uses test transaction amounts to trigger processor responses.
Related Payment Testing Tools & Resources
Gateway Sandbox Directory
Browse verified sandbox test cards, decline scenarios, and 3D Secure credentials for all major payment gateways.
Test Card Reference Guide
Understand the difference between synthetic test cards and official gateway sandbox cards.
Credit Card Validator
Validate card length, network prefix schemes, and Modulo 10 Luhn checksums locally.