POST/orders/hpp
PROD
https://xpay.nexigroup.com/api/phoenix-0.0/psp/api/v1/orders/hpp
TEST
https://xpaysandbox.nexigroup.com/api/phoenix-0.0/psp/api/v1/orders/hpp
Initiating payment through the Hosted Payment Page solution, the API returns the URL to redirect the customer to complete the transaction. For more information, please refer to the dedicated page Hosted Payment Page.
PARAM HEADER
| NAME | DESCRIPTION | FORMAT | |||||||||||||||||
|
|||||||||||||||||||
PARAM PATH
| NAME | DESCRIPTION | FORMAT | |||||||
|
|||||||||
PARAM QUERY
| NAME | DESCRIPTION | FORMAT | |||||||
|
|||||||||
PARAM BODY
createOrderRequest
| NAME | DESCRIPTION | FORMAT | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RESPONSE 200
Payment initialization successful - No Header for this response
BODY
| NAME | DESCRIPTION | FORMAT | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
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 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:
- Through the Hosted Payment Page, in addition to normal payments, it is possible to perform pre-authorizations.
- Below are the values that the "operationResult" field can assume when using HPP mode:
- AUTHORIZED
- EXECUTED
- DECLINED
- CANCELED
- THREEDS_FAILED
- DENIED_BY_RISK
- FAILED
- PENDING
- In the URL returned in the "hostedPage" response parameter, do not consider the "paymentId" field (e.g. "hostedPage": "https://xpaysandbox.nexigroup.com/monetaweb/page/hosted/2/html?paymentid=308663495709661749"), as it may change during the payment flow. Therefore, it is recommended not to apply any logic to the parameters received in the query string.
- It is not possible to modify the payment session timeout using the HPP solution: the duration is fixed at 15 minutes, which matches the validity of the URL returned in the "hostedPage" response parameter. Once the URL has expired, the user will see a Nexi error page displaying the message: "We are sorry, the session has expired or is invalid".