Visa 3DS Challenge Test Card Numbers

Visa · 3DS Challenge: 3DS challenge requires customer authentication. MockCard includes next_action.redirect_to_url on the payment_intent, matching Stripe 3DS patterns.

Visa test PANs use standard 16-digit formatting. MockCard returns Luhn-valid numbers and a signed payment_intent webhook — ideal for Stripe-style integrations and CI pipelines.

When to use: Test redirect flows, return_url handling, and abandonment when the user closes the challenge window.

CI tip: Combine with the chaos 3ds_abandoned scenario on Pro for abandonment after challenge starts.

Typical decline_code in webhook payloads: authentication_required.

visa

•••• •••• •••• ••••

Cardholder Name

CVV •••

Expires ••/••

Click card to flip

Visa 3ds challenge test card example

Generated by the MockCard API on November 4, 2026. Every MockCard number is fictitious and Luhn-valid; the outcome comes from the scenario field, so any Visa number below returns 3ds_challenge when you send that scenario.

Card number
4010 8522 7831 2776
Expiry
02/29
CVV
118
Name
JOHN DOE

Request

curl -X POST https://www.mockcard.io/api/v1/generate \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $MOCKCARD_API_KEY" \
  -d '{"brand": "visa", "scenario": "3ds_challenge"}'

Response · HTTP 402

{
  "error": {
    "code": "authentication_required",
    "message": "Your card requires 3D Secure authentication to complete this payment.",
    "next_action": {
      "type": "redirect_to_url",
      "redirect_to_url": {
        "url": "http://localhost:3000/3ds/challenge?token=eyJ3ZWJob29rX3VybCI6bnVsbCwicmV0dXJuX3VybCI6Imh0dHA6Ly9sb2NhbGhvc3Q6MzAwMC8zZHMvY29tcGxldGUiLCJhbW91bnQiOjEwMDAsImN1cnJlbmN5IjoiaW5yIiwiYnJhbmQiOiJ2aXNhIiwibGFzdDQiOiIyMTUxIiwiZXhwX21vbnRoIjoiMDUiLCJleHBfeWVhciI6IjIwMjciLCJleHAiOjE3OTM3ODU4MTF9.a92fc55fd01b465df30917cf8cc4cec105e4f4ee565b5f6ee19f2e24f697d5d2",
        "return_url": "http://localhost:3000/3ds/complete"
      }
    },
    "decline_code": null
  }
}
Webhook event: payment_intent.requires_action
{
  "id": "evt_mock_b0c352b4bf51",
  "data": {
    "object": {
      "id": "pi_mock_fa64126cf3fa",
      "amount": 1000,
      "object": "payment_intent",
      "status": "requires_action",
      "currency": "inr",
      "next_action": {
        "type": "redirect_to_url",
        "redirect_to_url": {
          "url": "http://localhost:3000/3ds/challenge?token=eyJ3ZWJob29rX3VybCI6bnVsbCwicmV0dXJuX3VybCI6Imh0dHA6Ly9sb2NhbGhvc3Q6MzAwMC8zZHMvY29tcGxldGUiLCJhbW91bnQiOjEwMDAsImN1cnJlbmN5IjoiaW5yIiwiYnJhbmQiOiJ2aXNhIiwibGFzdDQiOiIyMTUxIiwiZXhwX21vbnRoIjoiMDUiLCJleHBfeWVhciI6IjIwMjciLCJleHAiOjE3OTM3ODU4MTF9.a92fc55fd01b465df30917cf8cc4cec105e4f4ee565b5f6ee19f2e24f697d5d2",
          "return_url": "http://localhost:3000/3ds/complete"
        }
      },
      "last_payment_error": null,
      "payment_method_details": null
    }
  },
  "type": "payment_intent.requires_action",
  "object": "event",
  "created": 1793782211,
  "delivery": null,
  "livemode": false
}

More Visa scenarios

Same scenario, other networks

Need webhook race conditions or 3DS abandonment? See payment failure testing and the API docs. Compare plans on pricing.

API example

const res = await fetch("https://mockcard.io/api/v1/generate", {
  method:  "POST",
  headers: {
    "Content-Type": "application/json",
    "X-Api-Key":    process.env.MOCKCARD_API_KEY ?? "",
  },
  body: JSON.stringify({
    brand:    "visa",      // visa | mastercard | rupay | amex
    scenario: "success",  // success | insufficient_funds | 3ds_challenge …
  }),
});

const card = await res.json();
// { card_number, expiry_month, expiry_year, cvv, brand, scenario }
console.log(card.card_number, card.cvv);