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 information about order status changes and new transactions will be sent to the callback URL.
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 information about deposit transactions and their confirmation status are sent using this callback.
unique identification of the transaction
the amount received during the transaction
Pending (0-5 confirmations); Confirmed (5+ confirmations)
The exchange rate at the moment of transactions
date transaction was sent
the unique string which is given by the customer to the transaction.