Guide
Launch a Stripe affiliate programme
without custom development
Connect Stripe, add one script tag and invite partners. With Stripe Payment Links you write no backend code. With Stripe Checkout you add one field where your server creates the session.
What you need
- A Stripe account. Test mode is enough to start.
- Access to your site's HTML or tag manager.
- A Selgeo account. The trial is 14 days and needs no card.
Step 1. Connect Stripe
In the Stripe Dashboard, create a restricted key with eight permissions: five read, three write. Paste it into Settings → Stripe. Selgeo registers its webhook endpoint in your Stripe account itself. Test mode and live mode each use their own key.
Step 2. Add the snippet
Put one script tag with your public key on every page. When a visitor comes through a partner's link, the snippet registers the click and keeps a click ID in the browser's session storage for that tab. The script loads asynchronously and does not block the page.
Step 3. Pass the click to Stripe
- Stripe Payment Links: the snippet adds the click ID to every buy.stripe.com link on the page. No backend work.
- Stripe Checkout (redirect or embedded): read the click ID with
__selgeo.getClickId()and send it asclient_reference_idwhen your server creates the Checkout Session. The docs have examples in JavaScript, Python and PHP. - Promo codes: a customer who enters a partner's code at Checkout is credited to that partner. A code wins over a link.
Step 4. Set the commission
A percentage or a flat amount. Gross or net: both exclude the VAT recorded in Stripe, and net also takes off the Stripe fee. Recurring on every renewal, or for a set number of months. A hold period (30 days by default) gives refunds time to arrive before a commission can be paid.
Step 5. Test the full cycle
Test mode has its own keys and its own data and uses your Stripe test environment. Run a click, a test payment, the attribution and the commission, then reset the test data in one click.
Step 6. Invite partners
Send an invite link. Partners make their own referral links and QR codes in the partner portal and see their clicks, sales and commissions there.
How payouts work
Selgeo does not move money. When commissions are approved, export the payout report: a CSV with each partner's total, VAT ID and reverse-charge flag. Pay partners by bank transfer or your usual method, then mark the payout as paid. A minimum payout threshold keeps small amounts until they add up.
Questions
Short answers
Do I need a developer?
Not with Stripe Payment Links: you paste one script tag. With Stripe Checkout, a developer adds one field to the code that creates the session.
Does it work with Stripe subscriptions?
Yes. Selgeo reads Stripe invoices, so it records the first payment and every renewal of a referred customer.
Can I test without real charges?
Yes. Test mode uses your Stripe test environment and keeps its data apart from live data.