
Testing credit card numbers with Braintree is a crucial step in ensuring successful transactions. You can use Braintree's test credit card numbers to simulate real-world scenarios and catch any potential issues.
Braintree offers a range of test credit card numbers for different scenarios, including failed transactions. One such number is 4111111111111111, which simulates a failed transaction.
Using test credit card numbers can save you time and money in the long run by identifying and fixing issues before they affect real customers. Braintree's test credit card numbers are also reusable, making it easy to test multiple scenarios.
For more insights, see: Test Credit Card Numbers Braintree
Testing with Braintree
To test with Braintree, you'll need to configure Braintree to be in test mode. This can be done by setting up a Braintree account and copying down the three Sandbox API Key values: Merchant ID, Public Key, and Private Key. These keys are displayed on the dashboard of your Braintree sandbox account.
You can find your Braintree API keys under Account -> My User -> API Keys (Under Authorization) -> View (Private Key). With these keys, you can configure Braintree in your Chargebee test site by adding a payment gateway and selecting Braintree.
Additional reading: Where Do I Find My Credit Card Number
To simulate various test results, you can use the test card numbers provided by Braintree. For example, you can use the Visa card number 4111111111111111 or the Mastercard number 5555555555554444. Alternatively, you can use the test card numbers that will not trigger errors, such as 378282246310005 for American Express or 6011111111111117 for Discover.
Here are some test card numbers that can be used to simulate various types of cards:
To trigger an unsuccessful credit-card verification, you can use one of the following cards: 378734493671000 for American Express, 6011000990139424 for Discover, 5105105105105100 for Mastercard, or 4000111111111115 for Visa.
Testing with Sandbox
You can run test transactions in your Chargebee test site using your Braintree sandbox credentials. To get started, you'll need to copy down the three Sandbox API Key values: Merchant ID, Public Key, and Private Key.
These keys are displayed on the dashboard of your Braintree sandbox account, or you can find them under Account -> My User -> API Keys (Under Authorization) -> View (Private Key).
Related reading: Testing Credit Cards
To configure Braintree's sandbox account details in Chargebee, go to your Chargebee test site, click on the Settings tab, and under the Site Settings tab, click on Gateway Settings. Add a new payment gateway and select Braintree.
You can test the Braintree payment gateway in two ways: by creating a new subscription or by updating the card details of an existing subscription. To simulate various test results, use the test card numbers shown on the right side of the hosted page.
If you want to test alternative card types and card brands, you can acquire test cards from a 3rd party called B2, which can be found at https://b2ps.com/product-category/b2-payment-testing-products/.
Here are the test credit card numbers you can use when testing payments with Braintree:
- Visa: 4111111111111111
- Mastercard: 5555555555554444
- American Express: 378282246310005
- Discover: 6011111111111117
- JCB: 3530111333300000
Note that the expiration date must be set to the present date or later, and for 3D Secure 2 (3DS2) implementation, the expiration year is "the current year plus three years", while the expiration month is always January.
Testing Multiple Card Types in Sandbox
You can test multiple card types and card brands in Braintree's sandbox by using test cards from a 3rd party called B2, which can be found at https://b2ps.com/product-category/b2-payment-testing-products/. This will allow you to simulate various card types and brands, such as Mastercard, Discover, or AMEX.
To test alternative card types and card brands, you'll need to acquire test cards from B2. This will give you a wider range of test cases to work with.
Braintree offers test cards that simulate Visa credit and debit cards, but if you want to test other card types and brands, you'll need to use test cards from B2.
You can use the following test card numbers to simulate various card types and brands:
Keep in mind that you can also use the test card numbers provided by Braintree to test the 3D Secure 2 (3DS2) implementation of Strong Customer Authentication (SCA).
Credit Card Information
Credit card numbers can be used for testing card verifications and transactions, but it's essential to understand that transaction success is determined by the test amount used, while verification success is determined by the test card number used.
You can use the following valid card numbers for testing: 378282246310005 (American Express), 371449635398431 (American Express), 36259600000004 (Diners Club), 6011000991300009 (Discover), and many more, as listed in the table below:
Diners Club cards are processed as Discover cards.
Payment Processing
Payment processing with Braintree involves using test credit card numbers to simulate real transactions. Braintree provides several test credit card numbers that can be used for testing purposes.
You can use the test credit card number 4111111111111111 for testing, which is a Visa card. This number can be used to test transactions without actually charging a real credit card.
Braintree also provides a list of other test credit card numbers that can be used for testing, including Mastercard and American Express numbers.
Consider reading: Credit Card Numbers for Ecomm Testing
Transaction Amounts
When working with transactions, specific amounts can trigger different processor responses. Each test amount below will trigger the associated authorization response, regardless of the processing currency.
Transaction amounts between 0.01 and 1999.99 will result in an authorized response. Settlements for these transactions will be settled.
Transaction amounts between 2000.00 and 2999.99 will trigger a processor decline with a response equal to the amount. Settlements for these transactions are not applicable.
Transactions with amounts between 3000.00 and 3000.99 will fail with a 3000 processor response. Settlements for these transactions are not applicable.
Transaction amounts between 3001.00 and 4000.99 will result in an authorized response. Settlements for these transactions will be settled.
Transactions with amounts between 4001.00 and 4001.99 will result in an authorized response. Settlements for these transactions will be declined on certain transaction types with a processor response equal to the amount, and settled on all others.
Transactions with amounts between 4002.00 and 4002.99 will result in an authorized response. Settlements for these transactions will be pending on PayPal transactions with a processor response equal to the amount, and settled on all others.
Transactions with amounts between 4003.00 and 5000.99 will result in an authorized response. Settlements for these transactions will be declined on certain transaction types with a processor response equal to the amount, and settled on all others.
Transactions with amounts of 5001.00 will result in a gateway rejection with a reason of Application Incomplete. Settlements for these transactions are not applicable.

Transactions with amounts of 5001.01 will result in a processor decline on PayPal transactions in the Mocked PayPal flow with a 2038 processor response. Settlements for these transactions will not be applicable on PayPal transactions, and settled on all others.
Transactions with amounts of 5001.02 will result in an authorized response. Settlements for these transactions will be unavailable on certain transaction types with a processor response of 3000, and settled on all others.
Transactions with amounts of 5002.00 and up will result in an authorized response. Settlements for these transactions will be settled.
The following table outlines the transaction amounts and their corresponding authorization and settlement responses:
Processor Rejected Nonces
Processor Rejected Nonces are a crucial part of payment processing, and understanding them can help you troubleshoot issues.
These nonces represent credit cards that simulate an unsuccessful card verification response with a status of processor_declined.
A Visa card that was declined by the processor is represented by the nonce fake-processor-declined-visa-nonce.
Worth a look: Visa Credit Card Number Usa

Mastercard that was declined by the processor is represented by the nonce fake-processor-declined-mastercard-nonce.
American Express card that was declined by the processor is represented by the nonce fake-processor-declined-amex-nonce.
Discover card that was declined by the processor is represented by the nonce fake-processor-declined-discover-nonce.
Diners Club card that was declined by the processor is represented by the nonce fake-processor-declined-dinersclub-nonce.
JCB card that was declined by the processor is represented by the nonce fake-processor-failure-jcb-nonce.
Here are the nonces mentioned in the article:
Error Handling
Error handling is crucial when testing credit card numbers with Braintree. This is because invalid card numbers can cause errors and disrupt the testing process.
Braintree's testing environment allows you to test with invalid card numbers, such as 4111111111111111, which is a known test card number that will always be declined.
You can also test with valid card numbers that are not associated with a real person, such as 4242424242424242. This is useful for testing payment gateways without risking real transactions.
For another approach, see: Invalid Credit Card Number
However, keep in mind that some test card numbers, like 5105105105105100, are not valid and will cause errors. It's essential to use valid test card numbers to ensure accurate testing.
Braintree's API will return an error code if the card number is invalid, such as a 400 error code for an invalid card number. This error code can be used to handle the error and prevent further disruptions.
Expand your knowledge: Valid Credit Card Number with Csc
Braintree
Braintree has a list of card numbers that won't trigger errors. These include American Express numbers 378282246310005 and 371449635398431.
For American Express, you can also use 378282246310005 and 371449635398431, which are valid card numbers.
Discover card numbers that won't trigger errors are 6011111111111117.
The following Mastercard numbers are also valid: 5555555555554444.
Visa card numbers that won't trigger errors include 4111111111111111, 4005519200000004, 4009348888881881, 4012000033330026, 4012000077777777, 4012888888881881, 4217651111111119, and 4500600000000061.
To trigger an unsuccessful credit-card verification with Braintree, use one of the following cards:
Note that further details about using Braintree's test payment numbers can be found on its "Testing" page.
Frequently Asked Questions
Is 378282246310005 a valid credit card number?
Yes, 378282246310005 is a valid credit card number for testing purposes, specifically for American Express transactions. It can be used with any 4-digit number for the Card Security Code.
Featured Images: pexels.com


