Automatic UPI checkout
How the dynamic UPI URI, QR, polling, and customer flow work.
Customer flow
- Your server creates the order.
- Redirect the customer to
checkout_url. - iPay renders the merchant’s configured receiving UPI ID, exact INR amount, QR, and mobile deep links.
- The customer scans or opens a UPI app. No UPI ID, UTR, reference, or screenshot form is presented.
- The checkout polls its token-scoped status endpoint while server-side verification runs.
UPI URI
The current service constructs this shape using the merchant configuration, not a platform fallback:
upi://pay?pa=MERCHANT_UPI_ID&pn=MERCHANT_NAME&am=499.00&cu=INR&tr=IPY_RANDOM_REFERENCE
The transaction reference is IPY plus 24 cryptographically random uppercase hexadecimal characters. It is stored uniquely on the payment order. The Google Pay link is a scheme variant of the same URI; it is not a separate verification source.
Checkout status
GET /checkout/{token}/status is public but scoped by a 64-character HMAC-derived checkout token. It returns only status, expires_at, is_verifying, successful, a safe message, and success-only return metadata. Invalid tokens return 404 checkout_not_found.
A QR tr value is an order-side reference. It is not automatically interchangeable with a Paytm ORDERID, TXNID, BANKTXNID, or a UTR. The provider response must contain enough authoritative evidence to correlate the payment.