Hosted checkout
Use the default appearance immediately. Optionally preview/save your display name, subtitle, accent color, background color, and corner radius in Merchant back office → Settings → PayPage Editor (/), without choosing a theme.
Display name and subtitle reject Unicode Cf/direction controls and runs of 6 or more digits. They appear in the merchant header, separate from the system payment-instruction section.
When a White Label has a registered, enabled checkout origin, deposit creation and the current deposit read can include an additional checkout_url. This covers both a matched deposit and one still awaiting liquidity. The field supplements the existing API; it does not rewrite stored business receipts or signed webhook objects.
{
"id": "dep_01k3m7y9rs5tq0wh2e7xkj4c6b00",
"object": "deposit_order",
"status": "awaiting_liquidity",
"amount_minor": 50000,
"currency": "THB",
"checkout_url": "https://pay.p2peasypay.com/c#<checkout-capability>"
}This abbreviated example shows the relevant fields. A real checkout capability is a dedicated Ed25519 compact JWS. It is neither an API key nor a slip-upload capability. The field may be absent when the workspace has no enabled checkout origin; check it before redirecting.
Merchant integration
- Create the deposit through the existing API. Supply
senderorsender_idas required in LIVE mode; checkout does not choose the payer account for the merchant. - Redirect to the exact
checkout_urlreturned by the API. Do not construct a host, token or query string yourself. - Confirm payment through a verified webhook or the authenticated deposit API. Opening checkout, submitting a slip and returning to the merchant are not proof of settlement.
const { body: order } = await createDeposit(payload, idempotencyKey);
if (typeof order.checkout_url !== 'string') {
throw new Error('Hosted checkout is not configured for this workspace');
}
res.redirect(303, order.checkout_url);The URL has a fixed / path with the capability in the fragment after #. Browsers do not send that fragment in the navigation request. After loading, the page submits the token to its own origin using POST. Keep the complete URL out of logs, analytics, referrers and support records: possession grants access to the authorized payment instructions until its expiry.
Use a full-page navigation or a new tab. This profile does not support iframe embedding and sends frame-ancestors 'none'. The HTML and order responses use private, no-store, no-transform.
Payer experience
- The page shows the required amount and a countdown anchored to the server clock. It polls current status every 25 seconds and offers a manual refresh. This profile does not use WebSockets.
- While awaiting liquidity, it shows a waiting state without bank instructions. The payer must wait for current, unexpired instructions before transferring.
- Once assigned, it shows the bank, full receiving account number, each leg's amount and a masked account name through the existing audited PII rendering channel. Merchant create/GET may return
legs[].only for currently payable internal P2P legs on LIVE. At the read quota or when full-data admission is unavailable, the order can retain masked fields and any configuredreceiver. account_ number checkout_url. External-provider legs in the Merchant API retain QR and masked fields without this full number. Full numbers are not persisted in receipts or webhooks. - A QR appears only when an order-bound payload can be validated. Otherwise the payer uses the displayed bank account and amount. The implementation does not invent a PromptPay identifier from a bank account number.
- QR is displayed first when available, with an account-details toggle. A split deposit requires the exact amount and destination shown for each leg.
- The page warns the payer to use the selected source account and not transfer again while a slip is being checked.
The page reloads full instructions after state changes, instruction expiry or manual refresh. Never reuse a saved account image or QR for another order.
Slip submission and expiry
While the server permits it, checkout submits JPEG, PNG or WebP images up to 4 MiB through its own origin. It uses the existing order-bound slip capability and registered Ingest destination, without forwarding an API key or back-office cookies.
Acceptance means evidence was received, not that payment has settled. Some expired or canceled orders can still accept evidence for a transfer already made, within the server's explicit late-slip window. Do not make a new transfer after instructions expire. The upload control disappears once that window closes.
A checkout capability is bound to the registered origin, mode, order, revision and stored expiry. Another host, a modified token or an expired capability cannot reveal bank instructions. Each current read also checks the order and White Label authority.
Sandbox
TEST checkout reads isolated simulated orders on the registered sandbox origin. It shows simulated amounts and state, with no real receiving account, real QR or real slip upload. An authorized employee uses the back-office Sandbox tools to simulate outcomes. Never put an API secret on the checkout page or transfer real money for a TEST order.
Return to the merchant
If a LIVE order has a validated return_url, checkout provides a return link. Following it does not confirm payment. Existing signed callbacks remain unchanged; checkout does not add API credentials to return URLs.