What a credit card authentication test verifies
A credit card authentication test checks whether your payment flow handles card verification value (CVV), address verification service (AVS), and 3-D Secure challenges the way your processor expects. Run the test in a sandbox with test card numbers. Never use live card data.
How to Conduct a Credit Card Test Run: A Comprehensive Guide
Prerequisites
- Sandbox merchant account and API keys from your payment processor.
- Test card numbers published by that processor.
- Access to your checkout logs and webhook events.
Step-by-step test procedure
- Open your processor's test card documentation.
- Copy one test card that returns a CVV match.
- Copy one test card that returns a CVV mismatch.
- Copy one test card that triggers a 3-D Secure challenge.
- Switch your checkout to sandbox mode.
- Confirm the API endpoint points to the test environment.
- Submit the CVV match card with a matching AVS address.
- Confirm the authorization response returns an approval.
- Submit the CVV mismatch card.
- Confirm your checkout shows a generic decline.
- Submit the 3-D Secure test card.
- Complete the challenge page.
- Confirm your webhook receives the authentication result.
- Force a timeout on the challenge step.
- Confirm the order does not finalize without completed authentication.
- Review logs for raw CVV values.
- Remove any stored CVV or full card numbers that violate PCI DSS.
What to check after each run
Confirm the response code matches the expected outcome. Verify that the order status changes only after authentication. Check that your decline page does not reveal whether the CVV or the address failed. Confirm the processor's test results map to your production logic.
Common mistakes
- Using live card numbers in a test order.
- Testing only the success path.
- Logging CVV values.