The callback URL will be used for sending updates and statuses of payments. The callback URL is indicated from the customer's cabinet on the configuration page.
The order callback
The information about order status changes and new transactions will be sent to the callback URL.
Callback data is sent in the POST method in JSON format.
CityPay callback sends data as it is described below:
The information about the type of change: receive new transaction, order creation, receive confirmation.
CityPay Order status for the moment you received the callback.
Unique ID of order, given by CityPay.
Custom order ID of the merchant. Should be used to identify order or invoice number.
Transaction id of the last transaction of this order.
Amount of the last transaction in coins
Amount of the last transaction in fiat
Order's fiat currency.
Invoice creation time.
Unique token created by the customer.
The time in minutes from order creation to its expiration.
The exchange rate for the moment transaction was received
You will receive calls in the three cases. First when an order will be generated and currency is chosen. Second when payment is received, and third when the status is changed. Note you won't receive calls for expired status.
The deposit callback
The information about deposit transactions and their confirmation status are sent using this callback.