
Step 1 — Create a Payment Intent
POST /merchant/api/v1/payment-intents
Headers:
Response
201 Created:
Displaying the QR code: Useqr_code_urldirectly as an<img src="...">— it is a base64-encoded PNG. Alternatively, encodeqr_datausing your preferred QR library.
Step 2 — Poll for Status (Optional)
GET /merchant/api/v1/payment-intents/{id}
Poll every 2–3 seconds while the QR is displayed. Stop when status reaches a terminal state.
Response:
Webhook vs polling: Webhooks are the primary notification mechanism. Polling is a recommended fallback, not a replacement.
