Reference guide · updated for 2026

Braintree test cards — not the same as PayPal's.

Braintree is owned by PayPal, but its sandbox works the opposite way — it only accepts a fixed set of reserved numbers. Here's the official list, and the one detail that trips people up.

Ad unit — 728×90 placeholder

The Detail That Catches People Out

If you've integrated PayPal's own checkout before, it's natural to assume Braintree — a company PayPal owns — behaves the same way in sandbox testing. It doesn't. PayPal's sandbox accepts any card number that passes the Luhn checksum. Braintree's official documentation says the opposite: "The sandbox will not accept any credit card numbers other than the ones listed."

NumberScenarioNetwork
4111 1111 1111 1111SuccessVisa
5555 5555 5555 4444SuccessMastercard
Decline behavior works differently here too: for standard transactions, whether a payment succeeds or gets declined is controlled by the transaction amount you submit, not the card number. Card verification scenarios (used for Vault and recurring billing) are the exception — those are controlled by specific reserved card numbers. Check Braintree's official testing reference for the current, complete list of both.
Ad unit — in-content responsive placeholder

Where Luhnly Fits In

Since Braintree's sandbox only recognizes its own reserved numbers, Luhnly-generated cards won't process a transaction there directly. But the same gap applies as with Stripe and Square:

Use Braintree's official numbers for anything hitting their actual API, and Luhnly for everything upstream of that call.

Generate test card numbers →

Frequently Asked Questions

Can I use a Luhnly-generated number with Braintree's sandbox?

No. Braintree's own documentation states the sandbox will not accept any credit card numbers other than its own reserved list. This is true even though Braintree is owned by PayPal, whose own sandbox works the opposite way and accepts any Luhn-valid number.

How do I trigger a decline in Braintree's sandbox?

For transactions, decline behavior is controlled by the transaction amount you submit, not the card number. For card verification (used in Vault and recurring billing scenarios), specific reserved card numbers trigger specific verification failures instead.

Is Braintree the same as PayPal for testing purposes?

No, and this catches people out. Braintree is a PayPal-owned company, but its sandbox model is closer to Stripe's than to PayPal's own sandbox — it only accepts specific reserved test numbers.