POST/build/confirm_payment
Questa API deve essere invocata per confermare il pagamento. È limitata alla versione 2 del servizio XPay Build.
PARAM HEADER
| NOME | DESCRIZIONE | FORMATO | ||||||||||||
|
||||||||||||||
PARAM PATH
| NOME | DESCRIZIONE | FORMATO | |||||||
|
|||||||||
PARAM QUERY
| NOME | DESCRIZIONE | FORMATO | |||||||
|
|||||||||
PARAM BODY
The returned states can be: * PAYMENT_COMPLETE: meaning that the payment flow reached the end with failure. The operation field describes in detail the payment result. * REDIRECTED_TO_EXTERNAL_DOMAIN: This happens in case of a payment performed with alternative payment methods. In this case, the user's browser shall be redirected to the url indicated in the field 'url'. * GDI_VERIFICATION: the service returns a fieldSet composed by a unique field dedicated to gdi verification and the sessionId. The ecom platform shall set an hidden internal frame to navigate to the provided URL. Once the GDI verification is completed, the internal frame will send a postMessage indicating the next step of the flow that can be either a URL to perform the 3DS challenge or the final result of the payment.
| NOME | DESCRIZIONE | FORMATO | ||||||||||||
|
||||||||||||||
RESPONSE 200
Gli stati restituiti possono essere: - PAYMENT_COMPLETE: significa che il flusso di pagamento è giunto al termine con fallimento. Il campo operazione descrive in dettaglio l'esito del pagamento. - REDIRECTED_TO_EXTERNAL_DOMAIN: ciò accade in caso di pagamento effettuato con metodi di pagamento alternativi. In questo caso, il browser dell'utente deve essere reindirizzato all'url indicato nel campo 'url'. - GDI_VERIFICATION: il servizio restituisce un fieldSet composto da un campo univoco dedicato alla verifica gdi e dal sessionId. La piattaforma ecom deve impostare un frame interno nascosto per navigare all'URL fornito. Una volta completata la verifica GDI, il frame interno invierà un postMessage indicando il passaggio successivo del flusso che può essere un URL per eseguire la sfida 3DS o il risultato finale del pagamento. - Nessun header e body per questa risposta
RESPONSE 201
Creato - Nessun header e body per questa risposta
RESPONSE 400
Dati della richiesta non validi - Nessun header per questa risposta
BODY
| NOME | DESCRIZIONE | FORMATO | ||||||||||||||||||||||
|
||||||||||||||||||||||||
RESPONSE 401
Non autorizzato - Nessun header e body per questa risposta
RESPONSE 403
Vietato - Nessun header e body per questa risposta
RESPONSE 404
Non trovato - Nessun header e body per questa risposta
RESPONSE 500
Errore interno del server - Nessun header per questa risposta
BODY
| NOME | DESCRIZIONE | FORMATO | ||||||||||||||||||||||
|
||||||||||||||||||||||||