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 paymentId and wait for the status to change (e.g. to cleared).
  • Webhook, register a webhook URL and receive a payment.status.updated callback (see Webhooks) whenever the status changes. Its data field has the same structure as the Get payment response, so you can reuse the same parser.