Stripe affiliate tracking for subscriptions and web-to-app
Paste a restricted Stripe key and add one script tag, and AppCut counts every invoice a creator’s customer pays: the first one and each renewal. Refunds reduce the commission and lost disputes reverse it. Use it for web sales and web-to-app funnels.
3 steps, then a green check.
Create a restricted key
Stripe → Developers → API keys → Create restricted keyRead: Checkout Sessions, Invoices, Charges, Customers, Subscriptions, Disputes, Promotion Codes. Write: Webhook Endpoints. Everything else: None.
Paste it in AppCut
AppCut → IntegrationsWe create the webhook endpoint in your Stripe account. You copy nothing back.
rk_live_… or rk_test_…Add one script tag and buy something
<script src="https://appcut.pro/ugca.js" defer></script>In the <head> of pages with a Payment Link. Green check on the first event.
How a payment finds its creator.
The script adds the creator’s click or code to Payment Links on buy.stripe.com, and to Buy Buttons and Pricing Tables on the page. A Payment Link on your own domain is not tagged. Own Checkout Sessions: pass ugca.ref() as client_reference_id. Or give each creator a Stripe promotion code: the key reads it with Promotion Codes: Read.
What earns commission, and what doesn’t.
| Stripe sends | AppCut does |
|---|---|
| Checkout session completed | Records who brought the customer |
| Invoice paid (first, then each cycle) | Commission (pending) |
| Charge refunded | Reduced by the refunded amount |
| Dispute: money taken from your balance | Commission on the disputed amount held back |
| Dispute closed | Lost: stays reversed. Won: exactly what the dispute held back returns, never refunds |
| Test mode events | Test ledger |
Where the numbers come from.
We check the Stripe-Signature on every request (HMAC-SHA256, 5-minute tolerance). The script makes no network calls.
Stripe questions
Do I copy a webhook secret back?
No. AppCut creates the webhook endpoint in your Stripe account with the restricted key. You copy nothing back.
I build my own Checkout Sessions. Does that work?
Yes. Pass ugca.ref() as client_reference_id when you create the session. Or give each creator their own Stripe promotion code. Your restricted key then needs Promotion Codes: Read.
What happens with refunds and disputes?
A refund reduces the commission by the refunded amount. When Stripe takes disputed money from your balance, the commission on that amount is held back. A lost dispute keeps it reversed. A won dispute gives back exactly what the dispute held back, never more: refunds stay reversed.
Selling somewhere else too?
- App StoreiOS apps on StoreKit: with their own server, a subscription service or nothing at all.
- Google PlayAndroid apps on Play Billing: with their own server or nothing at all.
- RevenueCat (beta)Apps that sell through RevenueCat. iOS and Android in one go.
- Adapty (beta)Apps that sell through Adapty. iOS, Android and web in one go.
- Own backendYour own billing: StoreKit or Play Billing checked on your server, or any backend that can send a signed request.
Green check today. Creators tomorrow.
Free for your first 2 creators. Connect your store, publish an offer, and pay commission only when a subscriber pays.