Skip to main content
The POS terminal creates a payment intent, displays the resulting QR code, and waits for the customer to scan and confirm via their wallet app.
Image

Step 1 — Create a Payment Intent

POST /merchant/api/v1/payment-intents Headers:
Request body:
Request fields: Response 201 Created:
Displaying the QR code: Use qr_code_url directly as an <img src="..."> — it is a base64-encoded PNG. Alternatively, encode qr_data using 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:
Payment intent statuses:
Webhook vs polling: Webhooks are the primary notification mechanism. Polling is a recommended fallback, not a replacement.