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 |
||
(One intermediate revision by the same user not shown) | |||
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. | ||
The HTTP POST request is sent to the '''callbackURL''' defined in the '''Payment initialisation request'''. | The HTTP POST request is sent to the '''callbackURL''' defined in the '''Payment initialisation request'''. | ||
− | === | + | {{Note|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).}} |
+ | |||
+ | ===Data which is received in the POST request from X-Payments=== | ||
{| cellspacing="0" cellpadding="2" border="1" | {| cellspacing="0" cellpadding="2" border="1" | ||
| colspan="1" | '''Field''' | | colspan="1" | '''Field''' | ||
Line 26: | Line 29: | ||
|} | |} | ||
<br /> | <br /> | ||
− | |||
===Encrypted response for check-cart callback request=== | ===Encrypted response for check-cart callback request=== |
Latest revision as of 15:49, 17 November 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.
Note: 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).
Data which is received in the POST request from X-Payments
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 |
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) |