For a Braintree test CVV, use any 3-digit CVV with Visa, Mastercard, Discover, and JCB sandbox test cards, and any 4-digit CVV with American Express sandbox test cards. Braintree also documents specific test CVV values for CVV mismatch and decline scenarios. No real card data is required.
Braintree Test CVV Basics
Braintree's sandbox is a test environment. It accepts published test card numbers, and the CVV field follows the card brand's normal length. The sandbox does not check a CVV against a real issuer. That means a standard test card can use a simple CVV like 123 for Visa, Mastercard, Discover, or JCB. For American Express, use a 4-digit value like 1234.
- Visa, Mastercard, Discover, JCB: any 3-digit CVV
- American Express: any 4-digit CVV
- Expiration date: use a future date in the sandbox
- Card number: use a published Braintree test card number, not a real card
How to test a CVV decline in Braintree
Braintree's testing reference includes test values that produce CVV mismatch responses. Use the current Braintree testing documentation for the exact card number and CVV pair. A common pattern is to use a dedicated Visa test number with CVV 200 to trigger a CVV failure, but the current docs are the source of truth. Do not guess with production card data.
Common mistakes when testing Braintree CVV
- Using a real card number or real CVV in the sandbox
- Entering a 3-digit CVV for American Express
- Using an expiration date in the past
- Expecting sandbox CVV rules to match every production issuer rule
- Testing only approvals and skipping CVV mismatch cases
Security note for Braintree test CVV use
Test CVVs are public test values. They are not live card data. Keep real cardholder data out of test environments, and use Braintree's sandbox credentials and test cards for all payment flow checks. If a test returns an unexpected CVV result, confirm the card number, CVV length, and expiration date before changing your integration.