MasterCard 3DS Challenge Test Card Numbers
MasterCard · 3DS Challenge: 3DS challenge requires customer authentication. MockCard includes next_action.redirect_to_url on the payment_intent, matching Stripe 3DS patterns.
Mastercard test cards use 16-digit BIN ranges distinct from Visa. Use this page when your checkout detects network brand or routes MC-specific decline handling.
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.
Click card to flip
MasterCard 3ds challenge test card example
Generated by the MockCard API on November 2, 2026. Every MockCard number is fictitious and Luhn-valid; the outcome comes from the scenario field, so any MasterCard number below returns 3ds_challenge when you send that scenario.
- Card number
- 2700 1577 5983 5231
- Expiry
- 10/30
- CVV
- 578
- Name
- JANE SMITH
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": "mastercard", "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=eyJ3ZWJob29rX3VybCI6bnVsbCwicmV0dXJuX3VybCI6Imh0dHA6Ly9sb2NhbGhvc3Q6MzAwMC8zZHMvY29tcGxldGUiLCJhbW91bnQiOjEwMDAsImN1cnJlbmN5IjoiaW5yIiwiYnJhbmQiOiJtYXN0ZXJjYXJkIiwibGFzdDQiOiIzMDE1IiwiZXhwX21vbnRoIjoiMDEiLCJleHBfeWVhciI6IjIwMjciLCJleHAiOjE3OTM2MjM0ODB9.0a8b8e4413e33666ceac2dde6b5bc921b14172c1c24a7a3cbf66aa66e0c68df4",
"return_url": "http://localhost:3000/3ds/complete"
}
},
"decline_code": null
}
}Webhook event: payment_intent.requires_action
{
"id": "evt_mock_1a1254613989",
"data": {
"object": {
"id": "pi_mock_a498cc27675e",
"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=eyJ3ZWJob29rX3VybCI6bnVsbCwicmV0dXJuX3VybCI6Imh0dHA6Ly9sb2NhbGhvc3Q6MzAwMC8zZHMvY29tcGxldGUiLCJhbW91bnQiOjEwMDAsImN1cnJlbmN5IjoiaW5yIiwiYnJhbmQiOiJtYXN0ZXJjYXJkIiwibGFzdDQiOiIzMDE1IiwiZXhwX21vbnRoIjoiMDEiLCJleHBfeWVhciI6IjIwMjciLCJleHAiOjE3OTM2MjM0ODB9.0a8b8e4413e33666ceac2dde6b5bc921b14172c1c24a7a3cbf66aa66e0c68df4",
"return_url": "http://localhost:3000/3ds/complete"
}
},
"last_payment_error": null,
"payment_method_details": null
}
},
"type": "payment_intent.requires_action",
"object": "event",
"created": 1793619880,
"delivery": null,
"livemode": false
}More MasterCard 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);