Refgrow
Free Developer Tool

Braintree Sandbox Test Card Numbers

Every test card, amount and nonce Braintree documents for its sandbox, with what each one does. Click any value to copy it.

Environment

Sandbox only

live cards do not work there

Amount

Under $2,000

authorizes and settles

CVV

Any other value

200, 201 and 301 are test codes

Valid Braintree test cards

Card numbers that pass verification in the sandbox. Whether the transaction then succeeds depends on the amount (see below).

Visa

4111 1111 1111 1111

Valid Visa test card.

Visa

4005 5192 0000 0004

Valid Visa test card.

Visa

4009 3488 8888 1881

Valid Visa test card.

Visa

4012 0000 3333 0026

Valid Visa test card.

Visa

4012 0000 7777 7777

Valid Visa test card.

Visa

4012 8888 8888 1881

Valid Visa test card.

Visa

4217 6511 1111 1119

Valid Visa test card.

Visa

4500 6000 0000 0061

Valid Visa test card.

Mastercard

5555 5555 5555 4444

Valid Mastercard test card.

Mastercard (2-series)

2223 0000 4840 0011

Valid Mastercard test card.

American Express

3782 822463 10005

Valid American Express test card.

American Express

3714 496353 98431

Valid American Express test card.

Discover

6011 0009 9130 0009

Valid Discover test card.

Diners Club

3625 960000 0004

Valid Diners Club test card, processed as Discover.

JCB

3530 1113 3330 0000

Valid JCB test card.

Maestro

6304 0000 0000 0000

Valid Maestro test card.

UnionPay

6243 0300 0000 0001

Valid UnionPay test card.

UnionPay

6221 2611 1111 7766

Valid UnionPay test card.

UnionPay

6223 1649 9123 0014

Valid UnionPay test card.

Braintree test cards that fail verification

Cards that fail card verification, for testing what your checkout shows when a card is rejected before any charge.

Visa

4000 1111 1111 1115

Processor declined.

Mastercard

5105 1051 0510 5100

Processor declined.

American Express

3787 344936 71000

Processor declined.

Discover

6011 0009 9013 9424

Processor declined.

Diners Club

3852 000000 9814

Processor declined.

JCB

3566 0020 2036 0505

Failed with processor response 3000.

Amounts that trigger Braintree declines

In the sandbox the transaction amount, not the card, decides whether a sale is authorized. Charge one of these amounts with any valid card.

Authorized

0.01 - 1999.99

Authorized and settled.

Processor declined

2000.00 - 2999.99

Processor declined. The processor response code equals the amount, so 2001.00 returns code 2001.

Failed

3000.00 - 3000.99

Fails with processor response 3000.

Authorized

3001.00 - 4000.99

Authorized and settled.

Settlement declined

4001.00 - 4001.99

Authorized; settlement is declined on certain payment types and settles on others.

Settlement pending

4002.00 - 4002.99

Authorized; settlement stays pending on PayPal and settles on others.

Gateway rejected

5001.00

Gateway rejected (application incomplete).

PayPal declined

5001.01

Processor declined (2038) on mocked-flow PayPal; authorized on others.

Authorized

5002.00

This amount and above are authorized and settled.

Braintree fake payment method nonces

Server-side tests can skip the Drop-in UI entirely and pass one of these nonces as the payment method nonce.

Valid card

fake-valid-nonce

A valid card nonce.

Valid Visa

fake-valid-visa-nonce

A valid Visa nonce. Mastercard, Amex and Discover variants exist too.

Valid, no address

fake-valid-no-billing-address-nonce

A valid card nonce without a billing address.

Declined Visa

fake-processor-declined-visa-nonce

Fails verification with processor declined.

Gateway rejected

fake-luhn-invalid-nonce

Rejected by the gateway: the card number fails the Luhn check.

Gateway rejected

fake-consumed-nonce

Rejected by the gateway: the nonce was already used.

PayPal one-time

fake-paypal-one-time-nonce

Valid only with the mocked PayPal testing strategy.

Venmo

fake-venmo-account-nonce

A Venmo account nonce.

Apple Pay

fake-apple-pay-visa-nonce

An Apple Pay Visa nonce.

Braintree CVV and AVS test values

These only produce a fraud response when CVV or AVS rules are enabled on the sandbox account. Any other value matches.

CVV: does not match

200

Returns N. Use 2000 for a four-digit Amex CID.

CVV: not verified

201

Returns U. Use 2011 for Amex.

CVV: issuer not participating

301

Returns S. Use 3011 for Amex.

Postal code: no match

20000

AVS postal code returns N.

Postal code: not verified

20001

AVS postal code returns U.

AVS: system error

30000

AVS returns E.

AVS: not supported

30001

Returns S: the issuing bank does not support AVS.

Street number: no match

200 Main St

A street address with number 200 returns N; 201 returns U.

Source: Braintree developer docs, Testing and go live. Test values change occasionally; the provider’s page is authoritative.

How to use Braintree test cards

Braintree’s sandbox is a separate gateway with its own merchant account, API keys and control panel. Connect your integration with sandbox credentials, enter one of the valid cards above in the Drop-in UI or Hosted Fields, and charge an amount below 2000.00.

Two things decide the outcome, and it helps to keep them apart. The card number decides card verification: the cards in “Failed verification” are rejected when you verify or vault them. The amount decides the transaction: charge 2001.00 with a perfectly valid card and you get processor decline 2001. That is the quickest way to test each decline message your checkout shows.

For tests that never touch a browser, pass a fake nonce such as fake-valid-nonce as the payment method nonce in your server call.

Tracking affiliate sales on Braintree

Refgrow has no direct Braintree connection, but every settled transaction can be sent to it with one API call that carries the referral code, and Refgrow attributes the sale, calculates the commission and handles payouts. See the conversions API.

Test cards for other providers

Billing with Braintree? Add an affiliate program through the API.

Send each successful transaction with its referral code to Refgrow. It attributes the sale, calculates the commission and pays affiliates.

Works with any billing stack

Testing Braintree? Your affiliate program is one API call away.

Record each paid Braintree transaction with POST /api/v1/conversions and the visitor's referral code. Refgrow credits the affiliate, applies your commission rules, and handles holds, refunds and payouts.

  • Referral links and cookies handled by the tracking script
  • One API call per sale, with the order ID as reference
  • Commission rules, hold periods and refund reversals
  • Payouts via PayPal and Wise
Start free trialSee pricing

7-day trial · Cancel anytime

Start Free Trial
Braintree Test Cards & Sandbox Amounts | Refgrow