Accepting a payment
Whatever integration you choose, you always start by calling Create payment, then show the returned qrString to the customer. From there you learn the outcome in one of two ways:
- Polling, periodically call Get payment with the
paymentIdand wait for thestatusto change (e.g. tocleared). - Webhook, register a webhook URL and receive a
payment.status.updatedcallback (see Webhooks) whenever the status changes. Itsdatafield has the same structure as the Get payment response, so you can reuse the same parser.