Answer first
A CVV test under SCA v5 means running card verification value checks and the 3-D Secure 2 authentication flow against a payment provider's sandbox, using that provider's published test card numbers, before you touch live traffic. The v5 test profile is a versioned configuration inside the sandbox that sets which authentication outcomes you can trigger: frictionless approval, challenge approval, challenge failure, and issuer decline. No real card data belongs anywhere in this workflow. Sandbox test cards carry fixed CVV values and fixed behavior, so results are repeatable.
Prerequisites
- A sandbox merchant account with test API keys
- The provider's published test card list, including the correct CVV for each number
- Access to the sandbox control panel to switch authentication rules
- A webhook endpoint you control, with request logging turned on
- A log of every request and response body you send during the run
Procedure
- Create or open a sandbox merchant account and confirm the dashboard shows test mode, not live mode.
- Copy the test card numbers you need into a local file: one standard card, one card that always declines, one card that forces a 3-D Secure challenge.
- Set the authentication rule in the sandbox panel to the SCA v5 profile and record the exact version string in your test notes.
- Send a payment request with the standard test card, its correct CVV, matching expiry, and a unique idempotency key.
- Confirm the response returns an authorized status and that the raw response includes the authentication result field set to authenticated.
- Repeat the same request with a deliberately wrong CVV value and confirm the decline reason maps to the incorrect CVC code rather than a generic failure.
- Repeat again with the CVV field omitted entirely and record whether your integration treats the omission as a validation error before the request reaches the gateway.
- Switch to the challenge test card, send the payment, and complete the challenge in the sandbox challenge window using the documented test credentials.
- Capture the webhook events for that payment and check that the authentication and authorization events arrive in the expected order.
- Test each exemption path in the v5 profile: low-value transaction, transaction risk analysis, and merchant-initiated transaction.
- Run the full sequence three times and compare response bodies line by line to catch any nondeterministic behavior.
What each result should look like
- Correct CVV plus frictionless flow: authorized, no challenge shown, authentication value present.
- Correct CVV plus challenge flow: authorized only after the challenge step completes.
- Wrong CVV: declined with an explicit CVC mismatch code, not a soft decline.
- Missing CVV on a card type that requires it: validation error raised on your side.
- Exemption applied: authorization succeeds with the exemption flag echoed back in the response.
Common failures
The most frequent problem is a sandbox still running an older authentication profile, which silently drops the v5 outcome you configured. Re-check the version string before you debug your own code. The second most frequent problem is a mismatch between the CVV in your test fixture and the CVV the provider publishes for that number, which produces a decline you will misread as an integration bug. Third is missing webhook signature verification, which makes event ordering look wrong when it is not. Keep the CVV out of your application logs entirely, even in test mode, so the habit carries into production.