Help center

Learn how to sell online with Checkout Page

Add Checkout Page to Instapage

In this help article, you will learn how to add your checkout to your Instapage landing page.

With Checkout Page, you can easily create a one-page checkout and add it to your site in different ways.

Here are the instructions for adding your checkout to Instapage.

Please note: You must publish your page to view your changes.

Add a Buy button

You can add a Buy button that links to your checkout to open it in the same or a new window.

Follow these steps to do it:

  1. Open the page builder on Instapage
  2. From the left-hand menu, click on Button to add it to your site
  3. Add Click Event from the Button menu and choose Outside URL

image-4c45.png
  1. From your Checkout Page dashboard, click Share next to the checkout you want to link to and copy the payment link
  2. Paste this link in the text field on Instapage
  3. If you wish, select New Tab (optional) and click Done
  4. Publish and preview the page

Add a pop-up checkout

Checkout Page pop-up

While better suited for customization, this type of pop-up might require some coding skills to style it.

  1. Open the page builder on Instapage
  2. From the right-hand menu, click on HTML/CSS
  3. From your Checkout Page dashboard, click Share next to the checkout you want to link to
  4. Go to the Pop up section and copy the Script code under Instapage
  5. On Instapage, paste this Script code into Head section and save

image-4553.png
  1. From the left-hand menu, click on HTML to add it to your page
  2. Return to the Pop up section on Checkout Page and copy the Link code
  3. Back on Instapage, Edit the HTML block, paste the Link code and click Done
  4. Add CSS classes & styles to style the link as you wish
  5. Make sure to Save & Publish the page before clicking on Preview

Instapage native pop-up

Adding a pop-up checkout is a great way to let your customers check out on your site while hiding the checkout from those just browsing.

  1. Open the page builder on Instapage
  2. From the left-hand menu, click on Button
  3. Add Click Event from the Button menu and choose Pop up
  4. From the left-hand menu, click on HTML to add it to the new pop-up section
  5. From your Checkout Page dashboard, click Share next to the checkout you want to link to
  6. Go to the Embed section and copy the Embed code under Instapage
  7. Return to Instapage to Edit the HTML block, paste the embed code into it and click Done
  8. Resize your pop-up to match the size of your checkout by dragging the blue squares on the sides and recentering the HTML box

image-4410.png
  1. To fit it perfectly, you will need to shorten the width and extend the length
  2. Make sure to Save & Publish the page before clicking on Preview

Embed your checkout

Embed your checkout on your landing page for your customers to finish their purchases on your site.

Let us guide you through it:

  1. Open the page builder on Instapage
  2. From the left-hand menu, click on HTML to add it to your site
  3. From your Checkout Page dashboard, click Share next to the checkout you want to link to
  4. Go to the Embed section and copy the Embed code under Instapage
  5. Edit the HTML block, paste the embed code into it and click Done
  6. Save & Publish the page and click on Preview

Great, now your checkout has been added to your landing page!

Note: To ensure the checkout fits in your site, you should embed it at the end of an Instablock or in its own Instablock.

You should also add the following script to make the page adapt to the height of your checkout.

Copy the below script and add it to your landing page via Page settings > Javascript > Footer:

<script>
  document.addEventListener("DOMContentLoaded", function () {
    setTimeout(function () {
      fixEmbeddedHeight();
    }, 3000); // wait 3s for all children to fully load

    function handleReceiveMessage(e) {
      function isCheckoutPageEvent(e) {
        return e.data.type && e.data.type.indexOf("checkoutpage.") === 0;
      }

      function isResizeEvent(e) {
        return e.data.type === "checkoutpage.resize";
      }

      if (isCheckoutPageEvent(e) && isResizeEvent(e)) {
        fixEmbeddedHeight();
      }
    }

    window.addEventListener("message", handleReceiveMessage);
  });

  window.addEventListener("resize", fixEmbeddedHeight);

  function fixEmbeddedHeight() {
    var html_embeds = document.querySelectorAll('div.contents[data-at="html"]');
    html_embeds.forEach(function (embed, index) {
      var parent_section = embed.closest(".section");
      var parent_section_block = embed.closest(".section-block");
      var children = embed.children;
      // set initial children_height to 0px
      // change this to something else if you want to add some padding between elements
      var children_height = 0;
      for (i = 0; i < children.length; i++) {
        children_height += parseInt(children[i].offsetHeight);
      }

      var offsetTop =
        embed.getBoundingClientRect().top -
        parent_section_block.getBoundingClientRect().top;

      parent_section.style.height = children_height + offsetTop + "px";
      parent_section_block.style.height = "100%";
    });
  }
</script>

image-07f4.png

image-e8ee.png

Have a question about
Checkout Page?

Start selling in minutes with our no-code checkout page builder.

Create branded, custom checkout pages and increase revenue with one-click upsells and order bumps.

Whether on your website or in your sales funnel, our simple checkout process boosts sales.

Use cases

2024 © Checkout Page LLC. All rights reserved.

8 The Green, Ste R, Dover, DE 19901