Skip to main content
If you sell through Paddle Billing, you don’t need to write any code to run your affiliate program. You paste one Paddle API key into Affixo. Affixo checks it, adds its own notification destination in your Paddle account, and from then on every completed transaction, renewal, refund and chargeback comes in by itself and pays (or takes back) the right commission. Affixo only reads your Paddle sales. It never charges your customers, never issues refunds in Paddle, and never pays your affiliates for you.
Paddle connections are rolling out. If you don’t see I use Paddle on Settings → Payments & products, it isn’t switched on for your account yet. Until then you can report Paddle sales from your server, as described in Connect any payment processor.
This guide is for Paddle Billing. Paddle Classic accounts (the older Paddle, with numeric vendor ids) aren’t supported.

Before you start

You need:
  • The Affixo snippet on every page of your site, as described in Integrate Affixo tracking. It is what tells Paddle which affiliate sent the buyer.
  • A program with a commission set, so a sale has something to pay.
  • Access to Developer tools in Paddle, to create the API key.
  • Billing access in Affixo, to change how your workspace takes payments.
One processor per account. A workspace takes its sales from Stripe, from Paddle, from Polar, or from your own server, never more than one. If this workspace has already used Stripe, it can’t switch to Paddle. Use a new workspace for your Paddle products, or contact support if you think the Stripe link is a mistake.

Step 1: Create a Paddle API key

In Paddle, open Developer tools → Authentication, go to API keys and create a new key. Give it these permissions and no others: Copy the key when Paddle shows it. A live key starts with pdl_live_apikey_, a sandbox key with pdl_sdbx_apikey_. Paddle keys expire, after 90 days unless you pick another date. Put a reminder in your calendar to reconnect with a new key before yours runs out. Paddle’s own guide is Authentication.
None of these permissions lets Affixo create transactions, issue refunds or move money. Affixo asks Paddle what a key can do and refuses one that can also change anything else in your account, like refunds, prices or customers, so a leaked key could never be used for that. Older Paddle keys (made before May 2025, with no pdl_ at the start) can’t be limited like this, so Affixo doesn’t accept them. Make a new key instead.

Step 2: Paste it into Affixo

  1. In Affixo, open Settings → Payments & products and choose I use Paddle.
  2. Pick Live for your real store. (Use Sandbox for a sandbox key, see Test it with the Paddle sandbox.)
  3. Paste the key and click Connect Paddle.
Affixo then: You’ll see the connection as Connected, with the last 4 characters of the key and the time of the last event from Paddle. Affixo never shows the key again. In Paddle, the new destination appears under Developer tools → Notifications as Affixo affiliate tracking. Leave it there: it is how your sales reach Affixo.
Paddle allows 10 active notification destinations per account. If you already have 10, Affixo tells you and saves nothing. Turn off one you no longer use in Developer tools → Notifications, then connect again.

Step 3: Your Paddle checkouts

Paddle.js checkouts on your site work as they are. When a page with the snippet opens a Paddle checkout, through Paddle.Checkout.open() or a paddle_button element, the snippet adds the visitor’s id to the checkout’s custom data. Paddle keeps it on the transaction, and Affixo uses it to find the affiliate. Custom data you already pass is kept, and the snippet only adds one key, affixo_visitor_id. If your server creates transactions with Paddle’s API, pass the visitor id yourself:
A checkout you open with a transactionId takes its custom data from that transaction, so set it there.
Paddle’s hosted checkout links can’t carry the visitor id. Paddle doesn’t let a link add custom data. A sale through a hosted checkout link can only be matched by the buyer’s email, if they signed up as a lead first. Use Paddle.js on your own pages for the strongest tracking. See Attribution.

What Affixo books

Refunds and chargebacks count before tax, the same basis as the sale. Each Paddle event is booked once, however many times Paddle sends it.

Test it with the Paddle sandbox

Paddle has a separate sandbox with test cards. Connect it in Affixo as its own Sandbox connection. Sandbox sales book as test sales with test commissions, which are never paid and never counted in reports, payouts or alerts.
Start every sandbox purchase from a test visit. Affixo keeps test and live data apart: a sandbox sale only matches a test click, and a normal visit is a live click. If you click an affiliate link the usual way and then pay in the sandbox, the sale arrives but credits no one.
  1. In the Paddle sandbox, create a product and a price, and put a Paddle.js checkout for it on a page of your site that has the snippet (initialize Paddle.js with environment: "sandbox" and a sandbox client-side token). A test page is fine.
  2. Create a sandbox API key with the same permissions as in step 1.
  3. In Affixo, choose Sandbox on Settings → Payments & products, paste the sandbox key and click Connect Paddle sandbox.
  4. Open your site through an affiliate’s link with _sa_test=1 added, for example https://yoursite.com/?ref=jane&_sa_test=1. That marks your visit as a test for the next 30 minutes in that browser. See Test links.
  5. Open the checkout and pay with Paddle’s sandbox test card 4242 4242 4242 4242.
  6. Within a few seconds the sale shows on Referrals as a test sale, credited to that affiliate. The Check it works box on the Paddle screen also says Sandbox events are arriving.
  7. To test refunds, refund part of the transaction in the Paddle sandbox. Once Paddle approves the refund, the commission shrinks.
Paddle’s webhook simulator sends made-up transactions, so Affixo’s destination only listens to real sandbox events. Test with a real sandbox checkout, as above. A sandbox connection doesn’t count as your payments being connected. Connect Live before you launch.

Change or remove the connection

  • Rotate the key: create a new key in Paddle, then paste it with Reconnect live (or Reconnect sandbox). Affixo adds the new destination before it removes the old one, so no sale is missed. Use a key from the same Paddle account: the connection follows whichever key you paste.
  • Disconnect: click Disconnect on the connection. Affixo removes its destination in Paddle and deletes the key. New sales stop coming in until you reconnect. Sales already booked stay as they are.
  • Stop using Paddle: after disconnecting, Use Stripe or another processor, at the top of the page, takes you back to the list of options. This only works until your first real (live) Paddle sale. After that the workspace stays on Paddle.

Troubleshooting

Still stuck? Contact support and include the Paddle transaction id (it starts with txn_).