Difference between revisions of "X-Payments:Check cart callback request"
(Created page with "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 content...") |
m |
||
Line 1: | Line 1: | ||
+ | <noinclude>{{XP_API_TOC}}</noinclude> | ||
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. | 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. | ||
Revision as of 17:44, 26 July 2016
- API versions supported
- Samples
- API requests
- API Requests from the store to X-Payments
- Callback requests (web-hooks) from X-Payments to the store
- Browser-related
- Appendix A. Status codes.
- See also
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.
POSTed data
Field | Value | Type | Description |
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 |
As of API v1.3, the store must respond to this callback request. The response must be an encrypted XML document (i.e. the same way as for other communication between the store and X-Payments).
Encrypted response for check-cart callback request
Field | Required | Type | Description |
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) |