How can we help?

Embed a payment plan on your website

You can add a payment plan's checkout to your website, so customers sign up and pay without leaving your page.

Getting the embed code

  1. Go to Payment plans and click on the plan you want to embed.

  2. Click on the Share tab.

  3. Click on Embed on a webpage.

  4. Choose an embed type.

  5. Under Theme, choose Light or Dark.

  6. Click on Copy code and paste the code into your website.

Embed types

Inline embed

Shows the checkout as part of your page, so it's visible as soon as the page loads. Its height adjusts to fit the checkout. This works well on a pricing or sign-up page.

Adds a Pay now button that stays at the bottom of your page. Clicking it opens the checkout in a popup. You can change the button's text, color, text color and position, and choose whether it shows an icon.

Opens the checkout in a popup when a customer clicks an element on your page, such as your own Subscribe button.

  1. On your website, give the element an ID, for example <button id="subscribe-button">Subscribe</button>.

  2. Click on Popup via custom trigger.

  3. Enter the same ID in the Element ID field.

  4. Click on Copy code and paste the code into your website.

The code includes a sample button inside a comment. You can remove it.

Iframe embed

Shows the checkout in an iframe with a fixed height. Unlike the inline embed, it doesn't resize to fit the checkout. Use it when your website doesn't allow third-party scripts.

Choosing a theme

The embed starts with the plan's own theme, which you set under Settings > Theme. If you keep it, the embed follows the plan's theme when you change it later. If you choose the other theme, the embed code includes it, and the embed keeps that theme. To change it later, copy the code again and replace the one on your website.

After the customer pays

The customer sees the plan's thank-you page inside the embed. Payments go through your connected Stripe account, the same as on the checkout link.

Changes you make to the plan show up in the embed right away. If you change the plan's checkout link, copy the embed code again. If you use a custom domain, the embed code uses it.

Testing the embed

The preview on the embed page can't take payments, so you can click through it freely. To make a test payment, paste the code into a page on your website.

Related articles

Checkout Link