X-Payments:Check cart callback request
After the customer has submitted credit card data, right before sending this data to the payment gateway, X-Payments connects to the store to verify the cart total and contents.
The HTTP POST request is sent to the callbackURL defined in the Payment initialisation request.
Data which is received in the POST request from X-Payments
|action||check_cart||fixed string||Identifies the check-cart callback request|
|txnId||(mixed)||string (MD5 hash)||A unique ID of the payment on the side of X-Payments|
|refId||(mixed)||string||Order ID (or any other reference) in the online store|
Encrypted response for check-cart callback request
|status||Y||fixed string||Should be "cart-changed" or "cart-not-changed"|
|cart||Y||container||A container with cart/order description. See Payment initialisation request specification for details. This container must be included for "status = cart-changed" and is not necessary for "status = cart-not-changed"|
|saveCard||N||string||Whether the customer has chosen to save their card for future use ("Y" if the customer would like to save the card)|