---
updatedAt: 2026-09-10T15:20:42.000Z
agentTools:
  projectIndex: https://developer.peachpayments.com/llms.txt
---

# Hosted Checkout V2

<Callout icon="🚧" theme="warn">
If you're performing a new integration, use [Peach Orchestration's Hosted Checkout](https://playground.peachpayments.com/integrate/hosted-checkout) and not classic Hosted Checkout.
</Callout>

# Overview

Hosted Checkout enables you to accept payments by redirecting customers to the secure Peach Payments Checkout page.

Hosted Checkout supports [more payment methods](https://developer.peachpayments.com/docs/pp-payment-methods#south-africa) than Embedded Checkout.

# API endpoints

The API endpoints for the live and sandbox servers are:

| Service        | Live                                  | Sandbox                                       |
| :------------- | :------------------------------------ | :-------------------------------------------- |
| Authentication | `https://dashboard.peachpayments.com` | `https://sandbox-dashboard.peachpayments.com` |
| Checkout       | `https://secure.peachpayments.com`    | `https://testsecure.peachpayments.com`        |

# Known limitations

* Sending a Hosted Checkout link to a customer using WhatsApp or a service that unfurls the link is not supported. You can only load a Hosted Checkout link once, and unfurling the link uses this load event.
* If you load Hosted Checkout in an Android WebView, configure the WebView so Google Pay and Samsung Pay can complete. See [Configure Android WebView for Google Pay and Samsung Pay](https://developer.peachpayments.com/docs/checkout-android-webview-wallets).

# Quick links

<Cards columns={2}>
  <Card title="API playground" icon="fa-memo" href="https://developer.peachpayments.com/reference/post_v2-checkout">
    Detailed reference to all the Checkout API endpoints and sample calls.
  </Card>

  <Card title="Postman collection" icon="fa-rocket" href="https://god.gw.postman.com/run-collection/13324425-38dd6a1b-d09c-4689-92f4-e0c4daea1301?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D13324425-38dd6a1b-d09c-4689-92f4-e0c4daea1301%26entityType%3Dcollection%26workspaceId%3D395353be-fe74-499e-9ef1-fc3433748710#?env%5BCheckout-Public%5D=W3siZW5hYmxlZCI6dHJ1ZSwia2V5IjoiYmFzZVVybCIsInZhbHVlIjoiaHR0cHM6Ly90ZXN0c2VjdXJlLnBlYWNocGF5bWVudHMuY29tIn0seyJlbmFibGVkIjp0cnVlLCJrZXkiOiJlbnRpdHlJZCIsInZhbHVlIjoiIn0seyJlbmFibGVkIjp0cnVlLCJ0eXBlIjoic2VjcmV0Iiwia2V5Ijoic2VjcmV0IiwidmFsdWUiOiIifSx7ImVuYWJsZWQiOnRydWUsInR5cGUiOiJkZWZhdWx0Iiwia2V5IjoibWVyY2hhbnRXZWJzaXRlIiwidmFsdWUiOiIifV0=">
    Use the sample Checkout calls in Postman. See the collection overview for more information.

    [![Run in Postman](https://run.pstmn.io/button.svg)](https://god.gw.postman.com/run-collection/13324425-38dd6a1b-d09c-4689-92f4-e0c4daea1301?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D13324425-38dd6a1b-d09c-4689-92f4-e0c4daea1301%26entityType%3Dcollection%26workspaceId%3D395353be-fe74-499e-9ef1-fc3433748710#?env%5BCheckout-Public%5D=W3siZW5hYmxlZCI6dHJ1ZSwia2V5IjoiYmFzZVVybCIsInZhbHVlIjoiaHR0cHM6Ly90ZXN0c2VjdXJlLnBlYWNocGF5bWVudHMuY29tIn0seyJlbmFibGVkIjp0cnVlLCJrZXkiOiJlbnRpdHlJZCIsInZhbHVlIjoiIn0seyJlbmFibGVkIjp0cnVlLCJ0eXBlIjoic2VjcmV0Iiwia2V5Ijoic2VjcmV0IiwidmFsdWUiOiIifSx7ImVuYWJsZWQiOnRydWUsInR5cGUiOiJkZWZhdWx0Iiwia2V5IjoibWVyY2hhbnRXZWJzaXRlIiwidmFsdWUiOiIifV0=)
  </Card>
</Cards>

<Cards columns={2}>
  <Card title="Node sample project" icon="fa-clipboard" href="https://gitlab.com/p2886/checkout-samples/-/tree/main/node/Hosted%20Checkout%20-%20Redirect">
    Experiment with a Redirect-based Checkout sample integration project.
  </Card>

    <Card title="Python sample project" icon="fa-clipboard" href="https://gitlab.com/p2886/checkout-samples/-/tree/main/python/Hosted%20Checkout%20-%20Redirect">
    Experiment with a Redirect-based Checkout sample integration project.
  </Card>
</Cards>

# Integration steps

<Callout icon="🚧" theme="warn">
Checkout (both Embedded and Hosted) does not support iframing as mentioned on the [Checkout overview](https://developer.peachpayments.com/docs/checkout-overview). If you insist on iframing Hosted Checkout, for Apple Pay, follow the steps described in the [known limitations](https://developer.peachpayments.com/docs/checkout-embedded#apple-pay) section. Failing to do so results in Apple Pay payments not working. iframing Hosted Checkout could cause payment methods to fail.
</Callout>

1. [Generate an access token](https://developer.peachpayments.com/docs/checkout-embedded-authentication) by executing a POST `{peach-auth-service}/api/oauth/token` request with your client ID, client secret, and merchant ID.

   ```curl
   curl --location --request POST '{peach-auth-service}/api/oauth/token' 
   --header 'content-type: application/json' 
   --data-raw 
   '{
       "clientId": "{clientId}",
       "clientSecret": "{clientSecret}",
       "merchantId": "{merchantId}"
   }'
   ```

2. [Create a checkout](https://developer.peachpayments.com/reference/post_v2-checkout) by executing a POST `{checkout-endpoint}/v2/checkout` request with the JWT retrieved from the above call.

3. Redirect your customer to the `redirectUrl`.

4. After payment processing completes, Checkout redirects the customer to your `shopperResultUrl`. That redirect is a POST request which has the same structure as that of the webhook. You can make a [request](https://developer.peachpayments.com/reference/get_v2-checkout-checkoutid-status) to get the status of a Checkout request by using the `checkoutId` parameter as a reference to the payment. The [webhook notification](https://developer.peachpayments.com/docs/checkout-webhooks) and the POST redirect to the `shopperResultUrl` include the `checkoutId`.

[![Run in Postman](https://run.pstmn.io/button.svg)](https://god.gw.postman.com/run-collection/13324425-38dd6a1b-d09c-4689-92f4-e0c4daea1301?action=collection%2Ffork\&source=rip_markdown\&collection-url=entityId%3D13324425-38dd6a1b-d09c-4689-92f4-e0c4daea1301%26entityType%3Dcollection%26workspaceId%3D395353be-fe74-499e-9ef1-fc3433748710#?env%5BCheckout-Public%5D=W3siZW5hYmxlZCI6dHJ1ZSwia2V5IjoiYmFzZVVybCIsInZhbHVlIjoiaHR0cHM6Ly90ZXN0c2VjdXJlLnBlYWNocGF5bWVudHMuY29tIn0seyJlbmFibGVkIjp0cnVlLCJrZXkiOiJlbnRpdHlJZCIsInZhbHVlIjoiIn0seyJlbmFibGVkIjp0cnVlLCJ0eXBlIjoic2VjcmV0Iiwia2V5Ijoic2VjcmV0IiwidmFsdWUiOiIifSx7ImVuYWJsZWQiOnRydWUsInR5cGUiOiJkZWZhdWx0Iiwia2V5IjoibWVyY2hhbnRXZWJzaXRlIiwidmFsdWUiOiIifV0=)