API Reference

Our reference library for integrating with our API


Find answers to our most frequently asked questions

Classic Docs

Documentation for our Classic API

Hosted Payments Page

Accept card payments with a Hosted Payments Page—a fast and easy way to collect your customer’s payment information, process the payment request and handle authentication. We've created a table that lists supported payment methods, languages and other features.

New payment methods supported

Hosted Payments Page now support five more payment methods.

How it works

When your customer is ready to check out:

  1. Create a Hosted Payments Page session and pass through all the payment information, like the amount, currency, country and reference.
  2. We'll use this information to render the Hosted Payments Page to which you will redirect your customer to make their payment.
  3. Once your customer fills in the required payment details, we will process the payment and handle the authentication flow.
  4. And after the payment has been successfully processed, you will be notified by a webhook.

Try it out

Preview a Hosted Payments Page with the demo below. You can try it with one of our test cards, or Sofort test details.

  • Card number: 4242 4242 4242 4242
  • Expiry date: Any future date
  • CVV: 100

Use the following details to test a Sofort payment flow:

  1. Enter 88888888 in the 'Bank name, BLZ, IBAN or BIC' field. Click Next.
  2. Enter 88888888 in the 'Account number' field.
  3. Enter 123456 in the PIN field. Click Next.
  4. Select any account. Click Next.
  5. Enter 12345 in the TAN field. Click Next.

Get started

Step 1: Register to use Hosted Payments Pages

To get started with our Hosted Payments Page, contact your Solutions Engineer or

If you haven't already, create a free test account now. This will give you access to the Hub, where you'll find your secret_key and public_key, which you'll need to make requests to our API.

Step 2: Create a Hosted Payments Page session

Sessions expire

Hosted Payments Page sessions expire after 30 minutes.

To create a Hosted Payments Page on which your customers can make their payment, use the endpoint below.

The request

For the full specification, see our API reference.



http://localhost/ can only be used for the URL fields during testing and will not work in production.

Request example

  "amount": 1000,
  "currency": "GBP",
  "reference": "ORD-123A",
  "billing": {
    "address": {
      "country": "GB"
  "customer": {
    "name": "Jack Napier",
    "email": ""
  "success_url": "",
  "failure_url": "",
  "cancel_url": ""

Alternative payment methods

We've listed the available alternative payment methods for the Hosted Payments Page below.

Different payment methods have different required and optional fields when making a request. We've listed these below.

You can view a request example with all of these fields on our API reference.

Payment methodField requirements


  • billing.address.countryKW for Kuwait.
  • currency to KWD.


  • billing.address.countrySA for Saudi Arabia
  • currencySAR.


  • reference is required.
  • and currency is required and can be any that are supported.



  • currency should be set to EUR
  • billing.address.countryNL for Netherlands


  • billing.address.countryBE for Belgium.
  • currencyEUR.
  • is required.


  • billing.address.countryAT for Austria.
  • currencyEUR.


  • billing.address.countryDE for Germany.
  • currencyEUR.


  • billing.address.countryPT for Portugal.
  • currencyEUR.
  • is required.


  • billing.address.countryPL for Poland.
  • currencyEUR or PLN.
  • is required.
  • is required.

Response example

The response will include the redirect link to which you should redirect your customer to finalize the payment.

  "reference": "ORD-123A",
  "_links": {
    "redirect": {
      "href": ""

Step 3: Redirect your customer

Redirect the customer to the _links.redirect URL you received in the response above, using either a server-side or client-side call.


Step 4: Confirm the payment status

When your customer completes the payment, they will be redirected to the success_urlThe session ID or payment ID is provided in the query parameter included in the redirect URL. It should look something either of the links below: 


You can set up webhooks to be notified when the payment has been approved to continue the sales fulfilment flow.

Next steps