Set up & Integrate

Learn how to set up and integrate your Hosted Checkout.

The key steps to getting your Hosted Checkout working:

  1. Create a checkout by generating a payment link.
  2. Construct the payment link by appending it to the environment you wish to target and present it to the customer.
  3. Handle the redirect to present payment confirmation to the customer.
  4. Use webhook notifications to update your merchant systems.

Also important:

  • How to save card details from a customer's checkout, to power recurring transactions or a one-click checkout experience.
  • Common checkout payment flows will help determine what gets displayed to customers and the resulting behaviour of the checkout, depending on what details are provided initially.

Creating a Hosted Checkout Session

Create a Hosted Checkout session by first generating a payment link which contains details of the order or payment and then construct a payment link that can be shared with customers.

Generate a payment link

Make an API request to our payment-links endpoint to generate a link_id.


  "transaction": {
    "order_id": "unique_order_id",
    "amount": 15.02,
    "currency": "gbp"


  "status": "success",
  "link_id": "4b0a3a3d-b53c-c805-e15a-82ba6583cca4"

Construct the payment link

Add the returned {link_id} to the environment that you wish to target. This is how the above example would look in the production environment -

Then share the resulting payment link with your customer through email, SMS, with a website link or through other channels.

QA URL:{link_id}

Production URL:{link_id}

Handling the customer redirect

When the user has completed payment they will be redirected to a payment outcome page. This redirect can be handled by or by you.

  • When the Redirect URL is Enabled then will present the customer with our own hosted payment outcome screens.
  • When the Redirect URL is Disabled then will send a form POST to the redirect_url configured in the Hub, unless a different URL is provided in the payment-links request.

Configure your Redirect URL from within the Hub at Settings > Hosted Checkout > +Add Responses. presents the payment outcome

When is Enabled to present the payment outcome, then customers will be presented with success or failure screens that are provided by Acquired.

From these screens, the customer will be given a route to return to your site if a redirect_url is included in your Hosted Checkout Settings. This redirect URL will be available as a hyperlink from the "Return to merchant" button on the payment outcome screen.

If no redirect URL is provided, then customers will have no way of returning to your site directly from the payment outcome screen.

Merchant handles the customer redirect

Receive a form POST

To present customers with the payment status, will send a form POST to the redirect_url in format application/x-www-form-urlencoded.


The keys and values that will be present:

statusstringThe final status of the payment. For a list of all possible statuses see here.
transaction_idstringUUID assigned by
order_idstringThe order ID value that was passed in the payment-link request.
order_activebooleanWhether the order ID is still active or not, and whether payment can be reattempted by the same payment link.
timestampintegerExact date when response was posted to the redirect URL in UNIX timestamp format.
hashstringA calculated hash value which can be used to verify the integrity of the data.

Verify the integrity of the form data

A hash value will be calculated every time a customer is navigated to the redirect_url. This allows you to guarantee the authenticity of the data.

To do this, generate a new hash value and compare it to the returned hash value. If the hash values match then the data has not been altered and the origin and integrity of the data has been verified.

To calculate the hash value, you'll need to do the following:

  1. Concatenate the parameters in this order: status . transaction_id . order_id . timestamp

  2. SHA256 encrypt the resulting string.

  3. Append your app_key value to the hash value of a string.

  4. SHA256 encrypt the resulting string again.

  5. Compare the generated hash value to the previous returned hash value.

Webhook notifications

Webhooks should be used to update merchant applications with the final status of each payment, as opposed to the redirect form POST. Webhooks are server to server notifications unaffected by potential issues with the front end system and user error.

The webhook notifications will be sent to the webhook_url configured in the Hub Settings for Hosted Checkout, unless a different URL is provided in the payment-links request.

status_update webhook

The primary webhook delivered for payments made from the checkout is the status_update webhook, providing the final status of payment requests. This webhook may also deliver notification of transitionary statuses outlined in the statuses page.

customer_new and card_new webhooks

If the checkout creates a customer or card in the system, then a webhook notification will be delivered. See more about when the checkout will create a customer or card below.

Set up your payment methods

Managing the payment methods included on your checkout and customising the checkout page design is covered in Configure your Checkout.

You can also use the payment_methods array in the payment-links request to define which payment methods are offered in a specific checkout payment link.

Card payments

Nothing is required of merchants to get started with card payments on Hosted Checkout. If you want to authenticate payments using EMV 3DS though, you must add a contact_url in the Hub or in the tds object of your payment-links request.

One-off and recurring card payments are supported through Checkout. See recurring payments section for more details.

Apple Pay

Since the Hosted Checkout is fully hosted by, merchants will be automatically registered with Apple using our certificates and on the Hosted Checkout domain. Unlike a direct integration to Apple Pay, there's nothing required from merchants before accepting Apple Pay payments on Hosted Checkout.

One-off and recurring payments can be completed with Apple Pay through Checkout.

Apple Pay Domain Registration

If the registration with Apple doesn't complete automatically, then follow these steps:

  1. Navigate to Settings > Payment Methods > Apple Pay
  2. Under Web Domains, hit + Add Domain
  3. Enter the domain: (PROD) or (QA)

Testing Apple Pay

In order to test Apple Pay payments you need to be a tester using the Apple sandbox account. Please reach out to [email protected] if you want to test Apple Pay payments in sandbox.

For more information on testing different scenarios, please refer to our Testing Apple Pay guide here.

Google Pay

As with Apple Pay, nothing is required to add Google Pay to your Hosted Checkout as the checkout is fully hosted by Note that your company website stored in Settings > Company Details will be included with each Google Pay payment request.

One-off and recurring payments can be completed with Google Pay through checkout.

It is important to note also that some merchants may not be able to access Google Pay, depending on their sector. See the Google Pay Policies For Business for more detail.

For information on's option for a direct integration with Google Pay, view our Google Pay guides.

Testing Google Pay

In order to test Google Pay payments, you must use the Google Pay test card suite. Ensure that google wallet is enabled on a Google Chrome browser and you will be able to test. For more information on testing different scenarios, please refer to our Testing Google Pay guide here.

Pay by Bank

Offering's proprietary Pay by Bank solution as a payment method in the checkout alongside cards and digital wallets like Apple Pay gives customers incredible choice to pay how they want.

Saving card details (tokenisation)

If you want to save (i.e.: tokenise) customer card details to be used later for recurring payments, or to offer returning customers a one-click checkout, the Hosted Checkout makes things easy by handling the saving of card details for you. Continue reading to find out what's required in order to enable this functionality.

Recurring payments

In order to process recurring payments from checkout, is_recurring flag must be "true" in the payment-links request. You must provide a customer_id for an existing customer. Learn more about the creation of Customers from Hosted Checkout here.

If these conditions are met, the customer is given notice that their card details will be stored to process future payments. enhances recurring payments by Network Tokenisation to improve security and conversion; read more about it here. When enabled, Network Tokenisation is applied automatically to Hosted Checkout payments.


Recurring payment methods

Recurring payments can be completed by Cards, Apple Pay and Google Pay through Hosted Checkout.

One-click checkout

If a returning customer is checking out and they have existing cards saved in the system, they will be presented with a one-click checkout page which requires only the card's security code to complete payment.

To enable this, make sure the 'save cards' option in Settings > Hosted Checkout > Cards Settings is turned on. When enabled, customers will be offered an opt-in checkbox to save their card details at checkout.

Defining the card_id

For merchants managing customer cards in their own systems, you can define the card_id that a customer can complete payment with in Checkout. In contrast to the one-click checkout process where all cards linked to the customer_id are presented, this approach allows merchants to streamline the checkout process by displaying a single card. The customer can then input the security code to complete payment. To implement this method, submit the required card_id within the payments object of your /payment-links request.

Creating customers and cards

Saved card details must be associated to a customer_id in the system, as all cards, payments and transactions are linked back to a customer.

Read more about the importance of the Customer resource to the API here and how it works for Hosted Checkout specifically here.

Creating a new Customer ID

The first step in processing a payment for a new customer is to create the customer record. Submit a request into the /customers endpoint and you will be returned a customer_id. You can then include the customer_id in the /payment-links request along with the payment details.

When a customer_id is provided in the payment links request to reference an existing customer, then any new card_id will be created against that customer_id.

Creating a new Card ID

To enable the saving of card details, turn on the 'save cards' option in Settings > Hosted Checkout > Cards Settings. When enabled, customers will be offered an opt-in checkbox to save their card details at checkout.

A card_id will be created only when the customer completes a successful payment.

New customer and new card webhooks

Whenever a new customer_id or card_id is created by the checkout, a webhook notification will be sent to the webhook_url configured in the Hub, unless a different URL is provided in the payment-links request.

Hosted Checkout payment flows

When utilising our Hosted Checkout there are different payment routes that the cardholder can follow, depending on multiple factors. See the below process maps detailing the potential payment flows for both recurring and non-recurring payment requests.

For recurring payments

For non-recurring payments