Skip to main content

Set up Paddle Billing with Tolt

Connect Paddle Billing so Tolt can track the customers and payments your partners refer.

Written by Nick

Connect Paddle Billing so Tolt can track the customers your partners refer and the payments they make. You add your Paddle keys, add Tolt's tracking script to your site, send each customer's referral ID to Paddle and set up a webhook.

Still on Paddle Classic? See Set up Paddle Classic with Tolt.

Add the integration

  1. Go to Settings › Integrations and click Add integration.

  2. Select Paddle and click Continue with Paddle.

    Add integration dialog with Paddle selected
  3. Open the Paddle Billing tab.

    Paddle integration page with the Paddle Billing tab selected

Add your Paddle API key

  1. In Paddle, go to Developer Tools › Authentication › API keys.

  2. Create a server-side API key, or copy an existing one, with these permissions:

    • Adjustments: Read

    • Customers: Read

    • Discounts: Read & Write

    • Products: Read

    • Subscriptions: Read

    • Transactions: Read

    • Notifications: Read

  3. Paste the key into Add your Paddle API key in Tolt.

Note: Client-side tokens don't work for this integration. Use a server-side API key.

Add the tracking script

Copy the script from Add the Tolt tracking script to your site and paste it into your website's <head> tag. Add it to every page where you want to track referrals, such as your landing pages and app.

Send the referral ID to Paddle

The script stores the visitor's referral ID in window.tolt_referral. Send it to Paddle as tolt_referral in customData when you open the checkout.

This JavaScript example uses Paddle.js:

Paddle.Checkout.open({
items: [{
priceId: "pri_123",
}],
email: "[email protected]",
customData: {
tolt_referral: window.tolt_referral,
},
});

Without Paddle.js, the idea is the same: pass window.tolt_referral to the checkout in customData.

Set up the webhook

  1. In Paddle, go to Developer Tools › Notifications and add a new destination.

  2. Enter the webhook endpoint shown under Setup your webhooks in Tolt. It looks like https://api.tolt.io/webhooks/paddle-billing?id=YOUR-ID.

  3. Select these events:

    • subscription.created

    • subscription.cancelled

    • transaction.completed

    • adjustment.created

    • adjustment.updated

    • discount.updated

  4. Save the destination. Then open its action menu (⋮), select Edit destination and copy the webhook secret.

  5. Paste the secret into Add your Paddle Webhook secret in Tolt.

Save the integration

  1. Optionally, under Extra, switch on Exclude Paddle fee in the tracking amount or Exclude Paddle tax in the tracking amount to calculate commissions without them.

  2. Click Save integration.

Tolt now tracks payments from the customers your partners refer.

Good to know

Did this answer your question?