Gift Cards

What is a CVV testing API?

A CVV testing API is a sandbox endpoint from a payment processor that lets developers confirm their checkout handles card verification value checks the right way. It runs on published test card numbers, not on real accounts. The point is to prove that a wrong CVV triggers the correct decline before a live card touches your system.

cvv verification api

Buying, selling, or trading real CVV data is a federal crime in the US and a violation of every card network rule. Legitimate testing never uses real card numbers.

read more

What does CVV stand for, and why test it?

CVV stands for card verification value. It is a short security code that proves the person paying holds the physical card. Visa calls the printed version CVV2, Mastercard calls it CVC2, and American Express calls it CID.

cvv test api free

The three CVV types

  • CVV1: encoded on the magnetic stripe, read when a card is swiped.
  • CVV2 or CVC2: the 3 digit code printed on the back, used for card-not-present orders.
  • iCVV: stored on the EMV chip, validated during chip transactions.

Processors test these checks because a checkout that skips CVV validation invites fraud and chargebacks. A single mismatch decline code can stop a stolen card from completing an order.

How does a sandbox CVV test differ from a live transaction?

A sandbox transaction never reaches an issuer. The processor returns a scripted response based on the test number you send, so you pick the outcome by picking the card.

  • One test number returns an approval.
  • Another returns a CVV mismatch.
  • Another returns an expired card.
  • Another returns insufficient funds.

Live traffic routes to the issuing bank, which decides the answer in real time. Sandbox responses are canned, which is why they are free and safe to repeat.

What can you test with a CVV testing API?

Most processors cover the same short list of checks. Each one maps to a line of code in your payment form.

  • Field validation: numeric only, 3 digits for Visa and Mastercard, 4 for American Express.
  • Luhn algorithm checks on the card number itself.
  • CVV mismatch decline handling.
  • Expiry date validation, including past-date rejects.
  • Tokenization flow after a successful authorization.
  • Customer-facing error messages for each decline reason.

You cannot test real issuer behavior, 3-D Secure step-up prompts, or network fraud rules in a sandbox. Those only appear in production.

Why can't you store CVV data?

PCI DSS Requirement 3.2 bans storage of sensitive authentication data after authorization. That covers the full magnetic stripe, the PIN block, and the CVV. Merchants, processors, and any CVV testing API vendor fall under the same rule.

If your database has a cvv column, delete it. Post-authorization storage shows up in every audit and can cost you your merchant account.

Is buying or selling CVV data legal?

No. Selling, buying, or trading card verification values violates 18 U.S.C. Section 1029, which covers access devices and carries prison time. Card network rules add fines and account termination on top of that.

Real CVV testing services work only with test numbers. Any tool that offers to check a live card's CVV for you is a fraud tool.

Warning signs of a fake CVV checker

  • It asks you to upload a list of card numbers.
  • It charges per card checked.
  • It promises "live" or "valid" card results.
  • It sells BIN data or card dumps alongside the service.

Genuine processors never ask for real card data to test an integration. That request alone is the tell.

How do you set up a CVV test in a merchant sandbox?

  1. Create a test account with your processor and copy the sandbox keys.
  2. Pull the published test card numbers from the processor's documentation.
  3. Send a test card to the sandbox endpoint with a wrong CVV on purpose.
  4. Confirm your app shows a clear decline message and logs the response code.
  5. Repeat with a correct CVV to confirm the approval path.
  6. Check that the CVV never lands in your logs, database, or analytics tool.

Keep test keys out of production code and rotate them if they leak. A leaked test key is harmless, but the habit is not.

What decline codes should you expect?

Every processor uses its own code set, though many map back to ISO 8583 response codes. Common ones:

  • incorrect_cvc or security code check failed
  • expired_card
  • invalid_number for a Luhn failure
  • card_declined as a generic catch-all
  • processing_error for timeouts and network faults

Test all of them. Your support team will see these codes in live traffic, and a vague "payment failed" message creates tickets.

FAQ

Can a CVV testing API check if a real card is valid?

No. It responds only to test cards and sandbox keys. Any service that claims to validate real cards is either collecting your data or breaking the law.

Do I need PCI DSS compliance to use a testing API?

If you use published test numbers and never touch real card data, those tests stay out of scope. Once you handle live cards, PCI DSS applies to your whole environment.

Is CVV the same as CVV2?

CVV is the umbrella term. CVV2 is Visa's name for the printed code used in card-not-present transactions. Mastercard uses CVC2 for the same thing.

What is the difference between a CVV test and an AVS test?

CVV checks the printed code on the card. AVS checks the billing address and postal code against issuer records. Processors let you test both in the same sandbox call.


Fast digital delivery

You will receive the digital voucher immediately.

Secure Payment

All your data is transmitted with unbreakable SSL-RSA encryption.

Suitable for giving away

You can give away, resell or keep the vouchers.

24/7 customer support

We are available for you 24 hours a day.

ProtectedGiftCards.com Newsletter

Be informed as soon as new vouchers are added or when there are discounts.

Read our complete guide: Buy CVV in 2025: A Buyer's Guide to Prices, Pitfalls, and Avoiding Scams