An India payment test plan needs separate paths for saving a card, using that saved credential and completing a UPI payment. A card-format generator cannot provision a network token or make a UPI transfer. Use the offline examples here to check your application’s decisions, then exercise the actual provider integration in its sandbox.
| Currency | INR (Indian rupee) |
|---|---|
| Methods discussed |
|
| Authentication scope | RBI's 2025 Directions set a domestic two-factor baseline with specified exemptions and alternative factors; separate cross-border provisions apply. General compliance date: 1 April 2026. Do not assume every transaction uses the same OTP screen or exemption. RBI: Authentication Directions, 2025 · Checked |
| Local tool limits | No RuPay profile. Generated card numbers do not provision network tokens, UPI accounts or usable payment credentials. |
Test the saved-card relationship, not just a token string
RBI’s Card-on-File Tokenisation circular1 distinguishes card issuers/networks from other participants that must not retain actual card data. It permits limited last-four and issuer-name data for tracking/reconciliation under applicable standards. It also specifies explicit customer consent, issuer authentication and token de-registration. This does not make a raw PAN or CVV an appropriate merchant log field.
The token relationship includes the card, token requestor and merchant. Do not describe a stolen token as universally harmless: access to the matching merchant context, provider credentials or application session still matters. The tokenisation guide introduces the shared customer/provider/environment checks; this wrapper adds the merchant boundary.
export function merchantTokenDecision(saved, context) {
// Merchant and customer are loaded from the authenticated server session.
if (!saved || !context || typeof saved.merchant !== 'string' || !saved.merchant ||
typeof context.merchant !== 'string' || !context.merchant) return 'invalid';
if (saved.merchant !== context.merchant) return 'wrong-merchant';
return tokenDecision(saved, context);
}| Case | Input / condition | Expected result |
|---|---|---|
| in-token-active | Consent recorded and server context matches | "eligible-for-provider-request" |
| in-token-consent | Card save consent absent | "consent-required" |
| in-token-merchant | Token presented under another merchant | "wrong-merchant" |
| in-token-customer | Token presented under another customer | "wrong-customer" |
| in-token-mode | Sandbox token used in live context | "wrong-mode" |
| in-token-removed | Locally removed token is not reusable | "removed" |
eligible-for-provider-request means only that these local checks passed. It is not a payment approval or a regulatory assessment. Load the context from authenticated server records, never from a shopper-supplied customer or merchant ID. Mark a removed local token unusable immediately, then reconcile the provider’s deletion result; a local flag alone does not deregister the network token.
For first-time saving, test unchecked consent, cancellation of issuer authentication and a successful provider setup. Persist an active reference only after the required provider result. For removal, test the next checkout and a delayed retry using the old reference. If the checkout also offers bank debits, keep a saved card token separate from the SEPA mandate and collection states in the Germany guide. The PCI data-handling guide covers how to keep sensitive input out of diagnostics.
Update authentication assumptions for the current RBI framework
The RBI Authentication Directions, 20252 set a general compliance date of 1 April 2026, with separate cross-border provisions. The domestic baseline is two factors subject to specified exemptions; for non-card-present transactions at least one factor must be dynamic. The framework allows alternatives to an SMS OTP and additional risk-based checks. Do not translate this into “every payment shows the same OTP screen” or “risk scoring removes the baseline requirement.”
Record which flow your provider implements and whether a specific exemption applies. Authentication success is still different from payment success. The 3-D Secure guide provides cases for that distinction; recurring mandates need their own current provider and RBI requirements.
UPI can have different funding sources
UPI is not limited to a plain bank-account-funded checkout. NPCI supports linking RuPay credit cards for eligible UPI merchant payments, with restrictions on transaction categories. Refer to RuPay Credit Card on UPI3. That does not make every merchant QR or provider account eligible, and it does not turn a generated card number into a UPI credential.
Our local card profiles do not include RuPay. Test supported UPI funding sources in the provider’s environment, including an unavailable or disallowed route. Keep funding-source eligibility separate from whether the final payment result belongs to this order.
| Case | Input / condition | Expected result |
|---|---|---|
| upi-app-return | Browser returns from UPI app; no provider observation | {"fulfillments":0,"view":"waiting-for-payment"} |
| upi-timeout | App timeout does not prove payment failure | {"fulfillments":0,"view":"check-provider-status"} |
| upi-duplicate | Confirmed UPI payment repeated | {"fulfillments":1,"view":"paid"} |
| upi-currency | Matched order ID but wrong currency | {"fulfillments":0,"view":"review"} |
| in-display | 123456789 paise uses Indian digit grouping | "₹12,34,567.89" |
A return from the payment app is a browser event, not a provider confirmation. The cases intentionally supply no trusted observation for that return. On timeout, show a pending/status-check state; do not encourage a second debit until the first attempt has been reconciled. Duplicate confirmation creates one fulfilment intent in the offline model. Production storage must enforce that uniqueness atomically across retries and workers.
The INR display example starts with 123456789 paise and renders ₹12,34,567.89. Store and compare paise as integers, keeping Indian digit grouping at the display boundary.
Run the India checks
Extract the source and expected results and use Node.js 22 or later:
node guide-demo.mjs india-tokens
node guide-demo.mjs india-upi
node --test guide-examples.test.mjs regional-guide-examples.test.mjs
The UPI cases reuse the normalized confirmation model documented in the Brazil Pix guide; neither model implements the providers’ wire formats. Add sandbox checks for the specific UPI app, supported funding source and token service in your integration.