Invoice payment sequence
Invoice payment sequence.
Once an invoice is created, we start monitoring its cryptocurrency address to detect inbound transactions.
The customer specifies a purchase amount and purchase currency (if necessary)
The merchant makes an API call
POST /api/invoices
to create an invoiceCryptopay responds with the invoice details
The merchant displays the payment details to the customer (a destination wallet address, an exact amount to send, a QR code etc)
The customer broadcasts a cryptocurrency transaction
Cryptopay sends the 1st callback to notify the merchant about the fact that the customer has just broadcast their transaction
Cryptopay is waiting for the transaction to be confirmed on the network
Cryptopay sends the 2nd callback to notify the merchant about the fact that the transaction has been confirmed
Cryptopay changes the invoice status from
new
tocompleted
and sends the final callbackThe merchant makes an API call
GET /api/invoices/:id
to retrieve the invoice statusThe invoice status is returned
The merchant marks the payment as successful on their side
Last updated