Embedded checkout shows the PaymentHooks checkout inside a frame on your own website. Card entry still happens on PaymentHooks, inside the frame. By default no website can embed your checkout; you choose which ones can.
Allow your website
- 1Open Developers > Embedded Checkout.
- 2In Allowed origin, enter your site's exact address: scheme, host and optional port, such as
https://shop.example.com. - 3Click Add origin.
- Addresses must use https. Wildcards and paths are not accepted.
- You can allow up to 20 origins. The field shows how many you have used.
- To stop a site, click its remove button and confirm Remove origin. Checkout embedded there stops loading immediately.
Put checkout on the page
Your developer creates the checkout session on your server and loads it in your page with the PaymentHooks browser SDK. A payment link can be embedded the same way. Both only render on the origins you allowed.
A success message from the embedded checkout is not proof of payment. Fulfil orders from a verified webhook or from the payment in your dashboard.
If you do not want to embed, you can simply redirect customers to hosted checkout or share a payment link; no setting is needed for those.