MasterCard Insufficient Funds Test Card Numbers

MasterCard · Insufficient Funds: insufficient_funds is one of the most common soft declines in production. MockCard returns the matching decline_code in last_payment_error and a payment_intent.payment_failed webhook.

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: Verify your UI shows a recoverable message, subscription retries backoff correctly, and you do not mark the order paid.

CI tip: Pair with do_not_honor and expired_card in a matrix test — gateways map codes differently.

Typical decline_code in webhook payloads: insufficient_funds.

visa

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

Cardholder Name

CVV •••

Expires ••/••

Click card to flip

MasterCard insufficient funds 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 insufficient_funds 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": "insufficient_funds"}'

Response · HTTP 402

{
  "error": {
    "code": "card_declined",
    "message": "Your card has insufficient funds.",
    "next_action": null,
    "decline_code": "insufficient_funds"
  }
}
Webhook event: payment_intent.payment_failed
{
  "id": "evt_mock_caedddc9fcf6",
  "data": {
    "object": {
      "id": "pi_mock_bd8e5f6ce485",
      "amount": 1000,
      "object": "payment_intent",
      "status": "requires_payment_method",
      "currency": "inr",
      "next_action": null,
      "last_payment_error": {
        "code": "card_declined",
        "type": "card_error",
        "message": "Your card has insufficient funds.",
        "decline_code": "insufficient_funds"
      },
      "payment_method_details": null
    }
  },
  "type": "payment_intent.payment_failed",
  "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);