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.
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.
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.
Step 2: Paste it into Affixo
- In Affixo, open Settings → Payments & products and choose I use Paddle.
- Pick Live for your real store. (Use Sandbox for a sandbox key, see Test it with the Paddle sandbox.)
- Paste the key and click Connect Paddle.
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, throughPaddle.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:
transactionId takes its custom data from that transaction, so set it there.
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.- 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. - Create a sandbox API key with the same permissions as in step 1.
- In Affixo, choose Sandbox on Settings → Payments & products, paste the sandbox key and click Connect Paddle sandbox.
- Open your site through an affiliate’s link with
_sa_test=1added, for examplehttps://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. - Open the checkout and pay with Paddle’s sandbox test card
4242 4242 4242 4242. - 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.
- To test refunds, refund part of the transaction in the Paddle sandbox. Once Paddle approves the refund, the commission shrinks.
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_).