CVV Test Mode: How Sandbox Card Verification Works
CVV test mode is a payment gateway sandbox. It accepts fake CVC values, contacts no issuer, and charges no card.
The Worldpay test CVV is the card verification value listed next to a sandbox test card number in your Worldpay developer account. It is a fake value that only works against test endpoints. It does not come from a bank, it is not tied to a live account, and it will not work in production. If your integration keeps failing on the security code field, the fix is usually to copy the exact CVV paired with the exact test card number you are using, rather than inventing three digits.
In a live payment, the CVV is a 3-digit value on the back of most cards (4 digits on American Express) that the issuer checks during authorization. In a sandbox, no issuer exists, so Worldpay maintains a table of test cards where each entry carries a card number, an expiry date, and a matching security code. The gateway compares what you send against that table instead of querying a bank.
Test card tables differ by region and by product, so always read the table that matches your configured merchant account rather than a snippet from a forum post.
For most teams, hardcoded fixtures for everyday unit and integration tests plus a documented pointer to the portal table is the practical choice. Choose the portal-driven approach when you test in several regions or across several card brands and cannot afford a stale value breaking a build.
Most test configurations accept the CVV printed in the table and return a successful security code match. Some test cards are documented to accept any three digits, which is convenient for form validation but hides real bugs. Sandbox behavior also depends on the risk rules enabled on your test account: if you switched on CVV checks, a wrong value produces a decline or a review result rather than a clean approval. Read the response fields for the security code result, not just the overall status, so you can tell the difference between a bad CVV and a bad card number.
You need to know what your checkout does when the security code fails. Rather than guessing, use a test card designated in the documentation as the failure case, or deliberately send a value that does not match the table entry for your card. Then confirm three things: your form shows a clear, non-technical message, your order does not move to a paid state, and your logs record the security code result for support. Repeat for the expiry mismatch and the declined authorization cases so the three failure paths are distinct in your UI.
Sandbox values are safe to paste into tickets and repositories. Real cardholder data is not. Never place live card numbers, live CVVs, or data bought from a third party into a test environment or a staging database. That practice violates PCI DSS, which requires that production cardholder data stay out of development and test systems, and in most jurisdictions it is a criminal matter as well. If you need realistic-looking values for volume testing, generate synthetic numbers that no issuer could ever assign, and keep CVV logic pointed at the sandbox table.
No. Production authorizations go to a real issuer, which validates the real security code on the real card. Sandbox values are rejected.
Sometimes, if the table entry for your chosen test card says so. Do not assume it. Read the row for the card number you are using.
The usual causes are a mismatched card number and CVV pair, a CVV check enabled on the test account with a value that does not satisfy it, or a request sent to a live endpoint instead of the sandbox host.
CVV test mode is a payment gateway sandbox. It accepts fake CVC values, contacts no issuer, and charges no card.
Learn how to effectively test a payment gateway CVV for secure online transactions.
A Checkout.com test CVV is a sandbox-only code paired with a test card number to simulate card verification results without using a real card.
The 2Checkout test CVV is 123 for Visa, Mastercard, and Discover sandbox cards, and 1234 for American Express. Learn which test values the gateway accepts.
Learn how to effectively test CVV for Razorpay transactions to ensure smooth online payment processing.
Any 3-digit CVV works on Authorize.Net test cards, and 1234 works for Amex. See sandbox card numbers, card code response letters, and mismatch tests.
Discover what Square Test CVV is, its importance in online transactions, and how to use it effectively to enhance security.
An Adyen test CVV is the card verification value used with Adyen sandbox test cards. See which CVC to enter and how to test CVC checks safely.
Learn what a Braintree test CVV is, which digits to enter with sandbox test cards, and how to force a CVV failure for testing.