> Sell from a Carrd site with a hosted checkout link on any button, or add the Plandalf script with an Embed element on Pro Standard.

Source: https://plandalf.com/docs/websites/carrd

Websites and builders

# Carrd

Any Carrd button can open your hosted Plandalf checkout, on every Carrd plan. With an Embed element, you can also open the checkout over your page or show it inline.

**Before you start**

Carrd's Embed element, which the script needs, is on Pro Standard and higher. On other plans, use the hosted link on a normal button.

## Add the script

1.  ### Add an Embed element
    
    Click **+** and choose **Embed**. Set **Type** to **Code**.
    
2.  ### Paste the script
    
    Copy it from your checkout's **Share** screen (pick **HTML**):
    
    ```html
    <script async src="https://YOUR-ORG.plandalf.dev/js/plandalf-sdk.js"></script>
    ```
    
3.  ### Load it at the end of the page
    
    Set **Style** to **Hidden** and **Location** to **Body End**, so the element loads the script without taking up space.
    
4.  ### Publish
    
    Carrd runs embedded code on the published site.
    

## Open a checkout from a button

### With a hosted link (any plan)

In Plandalf, open the checkout's **Share** screen, choose **Hosted link** and copy **Your checkout link**. In Carrd, add a **Buttons** element and paste the link as the button's URL. Buyers land on the checkout page Plandalf hosts for you.

### Over your page (Pro Standard)

With the script added, add another **Embed** element, set **Type** to **Code** and **Style** to **Inline**, and paste:

```html
<button data-plandalf-present="YOUR-CHECKOUT">Buy Now</button>
```

Style it with inline CSS to match your site. More options are in [Buy buttons](https://plandalf.com/docs/checkouts/buy-buttons).

## Show a checkout on the page

With the script added, add an **Embed** element, set **Type** to **Code** and **Style** to **Inline**, and paste:

```html
<div data-plandalf-mount="YOUR-CHECKOUT" style="min-height: 480px"></div>
```

## Show a deadline timer

With the script added, add an inline **Embed** element with an empty element that has your deadline timer's slug. The script draws the live countdown inside it.

```html
<div data-plandalf-promo="YOUR-PROMO"></div>
```

See [Countdowns](https://plandalf.com/docs/promos/countdowns).

## Check it's working

1.  ### Open the published site
    
    Use a private window. If you added the script, type `plandalf` in the browser console: you should see a function.
    
2.  ### Click your button
    
    The hosted checkout opens, or the checkout opens over the page.
    
3.  ### Make a test purchase
    
    Use **Open the test checkout** on the Share screen for a hosted link, or add your `your-site.carrd.co` address in Plandalf under **Settings → Advanced → Test domains**. See [Test mode](https://plandalf.com/docs/get-started/test-mode).
    

## If it isn't working

-   If the Embed element isn't in the **+** menu, or won't save, your plan doesn't include embeds. Use the hosted link.
-   Check the script's Embed element is set to **Body End** and the button's Embed element to **Inline**.
-   Publish again after each change.

See [Troubleshooting](https://plandalf.com/docs/help/troubleshooting).

Something wrong or missing? Email [hello@plandalf.com](mailto:hello@plandalf.com).
