Skip to main content

Endpoint

Headers

Request Body

Example Request

Response

Response Fields

Displaying to Customer

Always display amount (₹499) to the customer — never finalAmount (₹499.37). The QR code already has the correct amount encoded. Showing finalAmount will confuse customers.
Payment expires in 10 minutes. After expiry, create a new payment order. Use expiresAt to show a countdown timer to your customer. Hide QR after expiry — ImportantUPI QR codes cannot be technically invalidated after expiry. If a customer scans an expired QR and pays, the payment will go through on the UPI network but cannot be matched to any order.Always hide the QR code and UPI link when expiresAt is reached:
If you suspect a customer paid after expiry, contact them directly and issue a manual refund. CWMPay cannot automatically process or refund post-expiry payments.

Payment Flow

1

Create Payment

Call this endpoint to get QR code and UPI string.
2

Show to Customer

Display QR code on desktop. Show UPI deep link button on mobile.
3

Customer Pays

Customer scans QR or clicks the UPI button and completes payment.
4

Verify Payment

Call Verify Payment with the UTR number, or wait for the automatic webhook.

Next Steps

Verify Payment

Verify payment with UTR number

Webhooks

Receive automatic payment notifications