Embed our checkout directly on your site
Copy Embed Code
.
The snippet looks like this:
Purchase
link which will open an inline checkout when clicked.
You can style the trigger element any way you want, as long as you keep the data-polar-checkout
attribute.
<script>
tag may not be an option. In this case, you can install our dedicated library.
PolarEmbedCheckout
helper class and manually call PolarEmbedCheckout.init()
. This will add the required handlers on elements having the data-polar-checkout
attribute.
Here is an example in React:
embed_origin
parameter correctly when creating the Checkout Session. For example, if your checkout page is served on the URL https://example.com/checkout
, you should set embed_origin
to https://example.com
.PolarEmbedCheckout
class provides several advanced features.
data-polar-checkout
attributes, you can programmatically create and control checkout instances: