Add "pay with crypto" button

Accepting a crypto payment option is extremely simple; all you need to do is set the href of a "pay with crypto" button on your website to direct customers to the appropriate payment link. An example is shown below to set up a link to Loop's hosted Checkout page.

1. Configure items

To start accepting crypto, you'll need to have the relevant item information configured.

Add a checkout button to your website that links to your specific payment link.

We've provided stock code, but you can use your own.

<html>
  <head>
    <title>Buy cool new product</title>
  </head>
  <body>
    <div class="buy-container">
      <a class="buy-button" href="https://checkout.loopcrypto.xyz/6b7e0e7a-c1ae-4570-87c3-c35a640e082a/1286a317-7dc5-45e3-b918-8a20ab042905">Pay with crypto</a>
    </div>
  </body>
</html>

Each subscription item has its own unique checkout page. If you have multiple items, it is simplest to add a button for each item (such as each subscription tier). However, if you want to use one button, you can pass through to the URL the desired item name to render the correct item details. This works because our checkout page uses the entity ID and item ID to know what item information to show.

https://checkout.loopcrypto.xyz/<entity ID>/<item ID>

Last updated