Skip to main content

Hosted payment pages

Hosted payment pages are a simple way to start accepting payments without requiring any front-end development experience. With hosted payment pages, your customer is redirected to IXOPAY platform's secure hosted payment page to enter their payment details. After the payment is complete, the customer is redirected back to your website.


For more details on hosted payment pages, check out the in-depth article on hosted payment pages in the reference.

How to use hosted payment pages

Step 1: Initialize a transaction

The first step is to initialize a new transaction on the IXOPAY platform from your backend system. To create a transaction send a POST request to

Here we choose a Debit transaction, which when successful, will immediately transfer funds. Depending on your business model a Preauthorize transaction - followed by a Capture transaction - might be more appropriate.


For details on how to authenticate API calls to the IXOPAY platform, see Authentication.


This is a minimal example. Include as much information as possible in the customer field. This reduces friction and provides the most benefit for risk checks, 3D-secure authentication and other validations.

curl --request POST -sL \
--url "${API_KEY}/debit" \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header "Authorization: Basic $(echo -n "$USERNAME:$PASSWORD" | base64)" \
--data-raw '{
"merchantTransactionId": "your-unique-identifier",
"description": "Purchase description shown on credit card statement.",
"amount": "9.99",
"currency": "EUR",
"successUrl": "",
"cancelUrl": "",
"errorUrl": ""

Step 2: Redirect your customer

If the IXOPAY platform successfully received your transaction, it will respond with a response containing "returnType": "REDIRECT" and a redirectUrl.

"success": true,
"uuid": "d94c0d72f3a36e21f16e",
"purchaseId": "20240709-d94c0d72f3a36e21f16e",
"returnType": "REDIRECT",
"redirectUrl": "",
"paymentMethod": "Creditcard"

You can now redirect the customer to the page in the redirectUrl from your backend.

HTTP/1.1 302 Found

For details on how to handle unsuccessful transaction results, see Handling errors.

Step 3: Payment complete

After the payment is complete, the customer will be redirected back to the website specified in successUrl when creating the transaction.

Additionally, if you specify a callbackUrl in the Debit transaction request, the IXOPAY platform will send a callback with the status of the payment. For more information on how to set up and use callbacks, please see the callbacks page.

Next steps

Now that you've integrated IXOPAY platform via a hosted payement page, you can look into …