Mocking & Simulator (UAT)
Testing without a live bank (mock mode)#
1. Auto-approve/reject by VPA#
| Payer VPA | Result |
|---|
user@success | ACTIVE |
user@fail | REJECTED |
Create mandate with one of these VPAs → wait 1–2 min → webhook fires with the result.2. Execute amount rule#
| Amount | Result |
|---|
>= 100 | SUCCESS |
< 100 | FAILED |
Mock UMN format: MOCK-UMN-<20 random chars>.3. Simulator UI (no VPA / CHECKOUT flow)#
Base URL: https://checkout-uat-v2.enkash.in/v1/upi-autopay-simulator/{umn}Returned in paymentDetail.checkoutUrl when creating with mandateCreationType = CHECKOUT (no payer VPA).
Open the link, then click Approve or Reject. 4. Happy path#
1.
**API Create UPI Mandate ** with payer.vpa = user@success, a unique referenceId, and a valid firstDebitAmount (e.g. 1 with MAX).
2.
Wait for webhook or API Get status (enquiry) → ACTIVE (1–2 min).
3.
API Notify Mandate with amount >= 100 (needed before executing).
4.
API Execute UPI Mandate with amount >= 100 → SUCCESS + webhook.
5. Reject path#
1.
API Create with payer.vpa = user@fail.
2.
Wait for webhook or API Get status (enquiry) → REJECTED.
3.
Don't notify/execute this mandate — create a new one to retry.
6. Simulator approve path#
1.
API Create with mandateCreationType = CHECKOUT (no VPA).
2.
Open the returned simulator link.
3.
Click Approve → webhook fires ACTIVE.
4.
Continue with API Notify → API Execute as in the happy path.
Modified at 2026-07-24 10:29:28