How to start an affiliate program for your SaaS, step by step

An affiliate program pays other people a share of each sale they bring you. To start one for your software you need a rate, a link for each person, a way to see which sales came from which link, and a pay day. If you sell with Stripe Payment Links, Buy Buttons or a Pricing Table, you can set all of this up without writing code.
Here are six steps. Each one ends with how it works in Udeely, which runs the whole program in one place: sign-ups, links, sales, renewals, refunds, commission and pay day.
1. Decide what you will pay

Pick two things before anything else: what an affiliate earns on a customer's first payment, and whether they also earn when that customer renews. Write both down in one sentence an affiliate can repeat, such as "30% of every payment for the first year".
Not sure what you can afford? How much commission should a SaaS pay affiliates? does the sums with you.
In Udeely: you set commission as a percent or a fixed amount. One tick box pays affiliates on renewals too, at the same rate or at a rate of their own, and you can stop after a set number of renewals.
2. Paste one snippet on your website
When someone taps an affiliate's link, your website has to remember who sent them. That is the job of the snippet: one small script that goes in the head of every page.
If you built your site with an AI tool, you don't have to find the right file yourself. An affiliate program for an app you built with Lovable, Bolt or Cursor shows what to paste where.
In Udeely: the Tracking page shows your snippet, ready to copy. A visit counts for 30 days unless you change it.
3. Connect Stripe
Stripe has to tell your affiliate tool about each payment, renewal and refund. It does that with a webhook: a message Stripe sends to an address you give it. Setting one up is copying and pasting.
- In Udeely, open the Tracking page and copy the webhook address shown for Stripe.
- In Stripe, open Webhooks and add a new destination with that address. Stripe's webhook guide shows the screens.
- Choose the events the Tracking page lists. They cover a finished checkout, a paid invoice, a refund, a dispute and a cancelled subscription.
- Stripe shows a signing secret that starts with
whsec_. Copy it and paste it into the Tracking page.
Payment Links, Buy Buttons and Pricing Tables need nothing more: the snippet adds the affiliate's visit to them by itself. If your checkout is made in code, you add one line to it, and the Tracking page shows you the line.
In Udeely: you connect Stripe, Paddle, Lemon Squeezy, Polar, Dodo Payments, Creem or FastSpring by pasting that provider's signing secret. Every one of these connections is new and marked beta. Run one test purchase and one refund first; the Tracking page shows each step arriving.
4. Test it before you invite anyone
Do one full round yourself: a visit, a purchase and a refund. It shows you what your affiliates will see, and it catches a wrong secret before a real sale is missed.
- On the Tracking page, tick Count test orders, so a test sale is counted and shows a Test label.
- Add yourself as a test affiliate and run a test visit.
- Buy your own product in Stripe's test mode with the test card 4242 4242 4242 4242.
- Refund the test payment in Stripe and check that the commission is taken back.
One thing to know: Stripe keeps test payments apart from real ones, and each side has its own webhook and its own signing secret. To test, set up the webhook on the test side and paste that secret. When the test works, do step 3 again on the live side, paste the live secret in place of the test one, and untick Count test orders.
In Udeely: a panel on the Tracking page called Is tracking working? shows three things in plain words: the last visit from an affiliate's link, the last message from your payment provider, and the last sale credited to an affiliate. If a message does not match your secret, the panel says so.
5. Invite your first affiliates
Start with a handful of people, not a crowd. Good first affiliates already use your product and already talk to the kind of people who need it: a customer with a newsletter, someone who makes videos about tools like yours, a freelancer who sets your product up for clients.
Write to each one yourself. Say what they earn, for how long, and when you pay. How to find good affiliates for your shop was written for online shops, but the places to look are much the same.
In Udeely: you add an affiliate yourself, or share a sign-up page in your name and approve each person who applies. Each affiliate gets their own link and their own area with your logo and colours, in seven languages, where they see their visits and earnings.
6. Approve sales and pay
Don't pay on the day a sale comes in. A customer can still ask for a refund. Wait a set time, then pay every affiliate on the same day each month. How and when to pay your affiliates explains why a fixed pay day keeps people selling.
In Udeely: each commission waits through a review window, 30 days unless you change it. A refund takes the commission back by itself. Then the Payouts page lists who is owed what. You send the money yourself, by PayPal or bank transfer, and mark it paid. Udeely keeps the record and never holds your money.
Then find out which posts sell
Once a few affiliates are posting, the useful question changes from "who sells?" to "which post sells?". The answer tells you what to say in your own ads. Test your ad ideas on affiliates before you pay for ads shows how.
In Udeely: an affiliate makes a link for each post or video. The Posts page shows the visits and sales each one brought, and a tip names the one that sells best.
Run your whole affiliate program for your software in one place
Udeely runs your whole affiliate program in one place. Affiliates apply on a page in your name and get their own area. Sales, renewals, refunds and disputes come in from your payment provider. You set commission for first payments and renewals, see which posts sell, keep people active with bonuses, campaigns and a leaderboard, and get a list of who to pay.
It is free for 14 days, with no card. After that Udeely Growth is $49.99 a month, with no share of your sales and no charge per affiliate. See Udeely for software, or start free.
Frequently asked questions
Can I start a SaaS affiliate program without writing code?
Yes, if you sell with Stripe Payment Links, Buy Buttons or a Pricing Table. You paste one snippet on your website and one signing secret into Udeely. A checkout made in code needs one extra line.
Which payment providers does Udeely work with?
Stripe, Paddle, Lemon Squeezy, Polar, Dodo Payments, Creem and FastSpring. Each connection is new and marked beta, so run one test purchase and one refund before you invite affiliates.
How do I know the tracking works?
Run a test visit and a test purchase. In Udeely, the Is tracking working? panel shows the last visit from an affiliate's link, the last message from your payment provider and the last sale credited to an affiliate.
Who pays the affiliates?
You do, by PayPal, bank transfer or any way you like. Udeely works out who is owed what after your review window and keeps the record. It never holds your money.
What does Udeely cost for a software business?
It is free for 14 days with no card. Then Udeely Growth is $49.99 a month, with no share of your sales and no charge per affiliate. After the free days, tracking keeps running, but you need the plan to approve, pay or change things.
Ready to start your program?
Udeely is free for 14 days, with no card. Then it is $49.99 a month, with no share of your sales. See Udeely for software.
Start free