RuPay 3DS Challenge Test Card Numbers

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

RuPay is common in India-first stacks (Razorpay, domestic acquirers). Test RuPay-specific decline paths without waiting on gateway sandbox quotas.

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

RuPay 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 RuPay number below returns 3ds_challenge when you send that scenario.

Card number
8253 1928 2827 3575
Expiry
04/31
CVV
890
Name
RAHUL VERMA

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": "rupay", "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=eyJ3ZWJob29rX3VybCI6bnVsbCwicmV0dXJuX3VybCI6Imh0dHA6Ly9sb2NhbGhvc3Q6MzAwMC8zZHMvY29tcGxldGUiLCJhbW91bnQiOjEwMDAsImN1cnJlbmN5IjoiaW5yIiwiYnJhbmQiOiJydXBheSIsImxhc3Q0IjoiNDcyMiIsImV4cF9tb250aCI6IjA0IiwiZXhwX3llYXIiOiIyMDMxIiwiZXhwIjoxNzkzNjIzNDgxfQ.bbd5737c05bee2467850636d313b50243c93246afd5471969b6a2eda7c63f543",
        "return_url": "http://localhost:3000/3ds/complete"
      }
    },
    "decline_code": null
  }
}
Webhook event: payment_intent.requires_action
{
  "id": "evt_mock_f1747f865cd7",
  "data": {
    "object": {
      "id": "pi_mock_c93050e2649a",
      "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=eyJ3ZWJob29rX3VybCI6bnVsbCwicmV0dXJuX3VybCI6Imh0dHA6Ly9sb2NhbGhvc3Q6MzAwMC8zZHMvY29tcGxldGUiLCJhbW91bnQiOjEwMDAsImN1cnJlbmN5IjoiaW5yIiwiYnJhbmQiOiJydXBheSIsImxhc3Q0IjoiNDcyMiIsImV4cF9tb250aCI6IjA0IiwiZXhwX3llYXIiOiIyMDMxIiwiZXhwIjoxNzkzNjIzNDgxfQ.bbd5737c05bee2467850636d313b50243c93246afd5471969b6a2eda7c63f543",
          "return_url": "http://localhost:3000/3ds/complete"
        }
      },
      "last_payment_error": null,
      "payment_method_details": null
    }
  },
  "type": "payment_intent.requires_action",
  "object": "event",
  "created": 1793619881,
  "delivery": null,
  "livemode": false
}

More RuPay 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);