> Partner sales through your Plandalf checkouts are credited automatically, including renewals and refunds. Here's what you need on your site.

Source: https://plandalf.com/docs/affiliates/plandalf-checkout

Affiliates

# Track sales from Plandalf checkouts

If customers pay through a Plandalf checkout, there's nothing to connect. Plandalf credits the partner on every sale, renewal and refund.

## What you need

-   The Plandalf script on the page your partner links open. It's the same script your checkouts use. See [Add Plandalf to your site](https://plandalf.com/docs/get-started/add-to-your-site).
-   A checkout on that site, or a hosted checkout link from it.

When a visitor arrives through a partner link such as `yoursite.com/?via=jane`, the script records the click and remembers the partner. When the visitor opens a Plandalf checkout, on that page or later, Plandalf attaches the partner to the sale.

A partner link can also point straight at a hosted checkout. The hosted checkout reads the partner's code itself.

## Renewals and refunds

-   Renewals stay with the partner who brought the customer, for as long as your renewal rules say.
-   Refunds reduce the partner's commission. See [Commissions and payouts](https://plandalf.com/docs/affiliates/commissions-and-payouts).

## Check it works

1.  ### Open the test link
    
    On **Affiliates → Setup**, open your test link in a private window. It ends in `?via=plandalf-test`.
    
2.  ### Buy in test mode
    
    Open a Plandalf checkout from that window and pay with `4242 4242 4242 4242`. Use a hosted test checkout, or a checkout on a site listed under **Settings → Advanced → Test domains**. See [Test mode](https://plandalf.com/docs/get-started/test-mode).
    
3.  ### See the sale
    
    Turn on **Test mode** in the Affiliates header and open **Sales**. The test partner never earns a commission, so the sale shows as **No commission**.
    

## Show buyers who sent them

Plandalf can show the partner's name on your checkouts and your site. See [The referral badge](https://plandalf.com/docs/affiliates/referral-links#the-referral-badge).

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