Pick a processor sandbox first

CVV test transactions belong in a payment processor sandbox. The sandbox issues test card numbers. These numbers return fixed CVV results. You do not need real card data. Real card data in a test environment violates PCI DSS and creates a data breach risk.

read more

Pick one sandbox. Stripe, Adyen, and Braintree all provide test card numbers and CVV response codes. Use the sandbox that matches your production processor. Mismatched sandboxes hide integration defects.

CVV Test Transaction Success Response Guide

Option 1: Stripe test mode

Stripe test mode provides card numbers that trigger CVV match, mismatch, and unchecked responses. Test mode also simulates 3D Secure. Use separate test keys. Never mix test and live keys in the same environment.

more on this topic

Option 2: Adyen test environment

Adyen test cards return specific refusal reasons for CVV checks. The test environment supports 3D Secure 2 test cases. Log the refusal reason code. Do not log the CVV value.

how-to-run-a-cvv-test-transaction

Option 3: Braintree sandbox

Braintree sandbox provides test card numbers with CVV verification outcomes. The sandbox supports verification and settlement flows. Use the sandbox to test partial approvals and CVV-only declines.

Best practices

  • Use processor-issued test cards only. Do not use real card numbers.
  • Never store CVV. PCI DSS prohibits storage of the CVV after authorization.
  • Do not log CVV values. Log only the CVV response code.
  • Test the CVV mismatch path. Confirm the gateway returns a decline.
  • Test the CVV unchecked path. Some processors return a specific code.
  • Use test 3D Secure cases. Confirm the authentication step runs before CVV verification.
  • Separate test and production credentials. Rotate keys after testing.
  • Run tests against the same API version as production.

CVV test transactions do not verify a real card. They verify your integration. A passing test means your code handles the response. It does not mean a card is valid.

Check processor documentation for current test card numbers. Test card numbers change. Old numbers may return errors.