# Hosted checkout

URL: https://doc.securepayapi.com/hosted-checkout
Last updated: 2026-11-12

> Send customers to a ready-made, secure checkout page for one of your products.

A hosted checkout page is a complete payment page we host for you. Each of your
[products](https://doc.securepayapi.com/products) gets its own page — no front-end code required.

## How it works

1. Create a product in your [dashboard](https://app.securepayapi.com/) (the
   dashboard calls them **Payment Links**) with a name, price, currency, and
   optionally a description, images, features and coupon codes.
2. Share its checkout page link with customers — the dashboard's **Open
   checkout** action gives you the URL.
3. The page collects the customer's email and card (or Apple Pay), applies any
   coupon, runs 3-D Secure and completes the payment.
4. You learn about the payment from your [webhooks](https://doc.securepayapi.com/webhooks) and the
   dashboard's **Transactions** — see [After the payment](#after-the-payment).

Each product is reachable at its own URL, where `<productId>` is the product's
id:

```
https://checkout.securepayapi.com/<productId>
```

Share the URL exactly as the dashboard gives it. The page reads nothing from
the URL that affects the payment: the price, the currency and live/sandbox
come from the product itself, and extra query parameters (such as
`?mode=sandbox`) are ignored.

## What the customer sees

- Your **store name** (your registered business name) and, when set in your
  account profile, your website and support email.
- The product **name**, the first 2,000 characters of its **description**, its
  **first image** and up to 20 **feature** lines.
- The **price** in the product's currency, and a discount-code field when the
  product has at least one coupon.
- An **email** field (required for a card payment — it addresses the
  receipt), the card form, and optional billing-address fields.

The page is always served over HTTPS and is never cached, so a change of status
takes effect on the next load. Only an **active** product of an active account
resolves; an archived or deleted product, an unknown id, or a product of a
suspended account answers **404**.

## Apple Pay

On a device that can open an Apple Pay sheet, the page offers **Apple Pay**
above the card form — nothing to configure, and the card form is always there
too. The sheet shows the same server-computed total as the page, including any
applied coupon; applying or removing a code prepares the wallet payment again.
A wallet payment completes through the same authorisation and capture as a
card. The receipt email is optional for Apple Pay.

Google Pay is not offered on product pages. It is available in the
[embedded widget](https://doc.securepayapi.com/sdk#wallets) and, where enabled, on hosted invoice pages.

## Sandbox

A product created while your dashboard is in **Sandbox** has a sandbox checkout
page: it shows a **Test mode** banner and takes no real charge. A live product
always charges live. This is decided on our servers from the product, not from
the URL. See [Sandbox](https://doc.securepayapi.com/sandbox#products-payment-links).

## Discounts

If your product has coupon codes, customers can enter them on the page to get
the discount before paying. Codes are matched case-insensitively, and an
unknown code simply gives no discount. Manage coupons per product — see
[Products & pricing](https://doc.securepayapi.com/products#coupons).

The discount is a whole percentage of the price, rounded to the cent; the total
never goes below zero. No tax is added.

> **Note:**
The amount is always recalculated on our servers from the product and any valid
coupon, so prices can't be tampered with in the browser.

## After the payment

On success the page shows a thank-you message; it does not redirect anywhere.
Nothing on the customer's screen is proof of payment for you — fulfil from your
own records:

- **Webhooks.** Every status change of the payment is sent to your
  [webhook](https://doc.securepayapi.com/webhooks) endpoint. For a hosted-checkout payment, `externalid`
  (and `externalReference`) is the **product id**, so you can tell which
  product was bought. Fulfil on `PAID` (`1`); `PAYING` (`16`) means the capture
  was sent and the outcome is not final yet.
- **Transactions.** The payment appears in the dashboard's **Transactions**, and
  you can read it with
  [`GET /api/v1/transactions/{id}`](https://doc.securepayapi.com/transactions) using the `id` from the
  webhook.

No Payment Intent is created for a hosted-checkout payment, so there is no
intent to read back.

If the outcome cannot be stated yet (for example the capture is still being
confirmed), the page tells the customer the payment is being confirmed, shows
its reference and **does not offer to pay again** — also after a reload in the
same browser. Look the reference up in your dashboard before asking the
customer for another payment.

## Hosted vs embedded

| | Hosted checkout | [Embedded checkout](https://doc.securepayapi.com/embedded-checkout) |
| --- | --- | --- |
| Front-end work | None | Add an iframe |
| Lives on | Our page | Your page |
| Amount decided by | The product and its coupons | Your server, per Payment Intent |
| Wallets | Apple Pay | Apple Pay and Google Pay |
| How you confirm | Webhooks and transactions | `GET /api/v1/payment-intents/{id}` |
| Best for | Quick links, single products | Custom flows in your own UI |

## Hosted invoice payment methods

Hosted invoices (`https://checkout.securepayapi.com/?invoice=…`) are a separate
page from product checkout. Eligible invoices can offer
[Bank Pay-ins](https://doc.securepayapi.com/bank-payins) (ACH debit, ACH transfer or wire) and
[USDC pay-ins](https://doc.securepayapi.com/usdc-payins) next to card payment. Use the issued invoice link
unchanged and confirm that the invoice is paid before fulfillment. These are
separate from the Payment Intents API and JavaScript SDK; availability depends
on your account's configuration.
