Full-page redirect
Full-page redirects are a processing option, offered by the IXOPAY platform, that redirects the customer away from the merchant's site to the payment service provider's (PSP) payment page. This option is often required by alternative payment methods and is a popular choice for merchants who do not want to handle the payment process themselves.
Use cases
- Alternative payment methods often require full-page redirects.
- Merchants who do not want to handle the payment process themselves may opt for full-page redirects.
- If the checkout page of the merchant is a static site, all processing can be handled by IXOPAY platform and the PSP.
Processing flow
- The customer initiates a purchase on the merchant's website.
- MerchantThe merchant sends a debit or preauthorize request to IXOPAY platform.
- The IXOPAY platform processes the request and sends a transaction request to the PSP.
- The PSP processes the transaction and sends the result back to IXOPAY platform.
- MerchantThe IXOPAY platform sends the result with a return type "redirect" and a redirect URL to the merchant.
{
"success": true,
// ...
"returnType": "REDIRECT",
"redirectUrl": "https://gateway.ixopay.com/redirect/d94c0d72f3a36e21f16e/ABCDEF01234567890ABCDEF01234567890",
"redirectType": "fullpage"
} - MerchantThe merchant redirects the customer's browser to the provided redirect URL, switching temporarily to the PSP's payment page. This can be done on the backend by responding to the customer with an HTTP redirect using a
Location
HTTP header or on the frontend by setting the browser'swindow.location
. - The customer's browser loads the PSP's payment page.
- The PSP delivers the payment page.
- The customer completes the payment process on the PSP's payment page.
- Once the payment is completed, the PSP sends a callback to the IXOPAY platform.
- MerchantThe IXOPAY platform processes the PSP's response and, using the
callbackUrl
field, notifies the merchant via a callback to the URL provided in the initial API call. This callback includes the payment status and any relevant details. - MerchantThe merchant handles the callback; additionally, it is recommended to store the transaction's
uuid
for future use. - MerchantThe merchant responds to the callback with:Callback response
HTTP/1.1 200 OK
Content-Type: text/plain
OK - The IXOPAY platform responds to the PSP's callback.
- The PSP redirects the customer to the merchants
successUrl
,cancelUrl
orerrorUrl
, depending on the status of the transaction.infoIf the payment is in status
PENDING
the user will still be redirected to the success page insuccessUrl
. - The customer's browser loads the merchants response URL.
- MerchantThe merchant displays the appropriate thank-you or error page based on the payment status received in the callback.
Here's a visual representation of the processing flow using a sequence diagram: