POST/orders/build
PROD
https://xpay.nexigroup.com/api/phoenix-0.0/psp/api/v1/orders/build
TEST
https://xpaysandbox.nexigroup.com/api/phoenix-0.0/psp/api/v1/orders/build
Create an order and initiate the payment using the XPay Build solution. **WARNING**: for the proper functioning of XPay Build solution, it is necessary for the browser used to allow the use of third-party cookies.
PARAM HEADER
| NAME | DESCRIPTION | FORMAT | |||||||||||||||||
|
|||||||||||||||||||
PARAM PATH
| NAME | DESCRIPTION | FORMAT | |||||||
|
|||||||||
PARAM QUERY
| NAME | DESCRIPTION | FORMAT | |||||||
|
|||||||||
PARAM BODY
buildRequest
| NAME | DESCRIPTION | FORMAT | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RESPONSE 200
The request returns an object containing the iframes corresponding to the card payment method and the APMs active on the merchant's terminal. The ecommerce platform will be responsible to render the iframes in the checkout page and to manage the communication between the iframes and the XPay Build APIs. - No Header for this response
BODY
| NAME | DESCRIPTION | FORMAT | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RESPONSE 201
Created - No Header and Body for this response
RESPONSE 400
Invalid request data - No Header for this response
BODY
| NAME | DESCRIPTION | FORMAT | ||||||||||||||||||||||
|
||||||||||||||||||||||||
RESPONSE 401
Unauthorized - No Header and Body for this response
RESPONSE 403
Forbidden - No Header and Body for this response
RESPONSE 404
Not Found - No Header and Body for this response
RESPONSE 500
Internal Server Error - No Header for this response
BODY
| NAME | DESCRIPTION | FORMAT | ||||||||||||||||||||||
|
||||||||||||||||||||||||
NOTES:
- The XPay Build solution is not compatible with the DCC feature.
- The localhost environment is not supported by XPay Build.
- It is not possible to integrate XPay Build within a native iOS or Android application by injecting the card data collection iframes received from the server; this method is NOT compatible with the payment solution. The JavaScript SDK communicates with the iframes via postMessage and verifies that the origin domain of the WebView matches the merchantUrl of the POST /orders/build API exactly.