Integration · Stripe

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.

Set it up

3 steps, then a green check.

  1. 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.

  2. Paste it in AppCut

    AppCut → IntegrationsWe create the webhook endpoint in your Stripe account. You copy nothing back.

    rk_live_… or rk_test_…
  3. 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.

Creators get credit

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 counts

What earns commission, and what doesn’t.

What AppCut reads from Stripe, and what it does
Stripe sendsAppCut does
Checkout session completedRecords who brought the customer
Invoice paid (first, then each cycle)Commission (pending)
Charge refundedReduced by the refunded amount
Dispute: money taken from your balanceCommission on the disputed amount held back
Dispute closedLost: stays reversed. Won: exactly what the dispute held back returns, never refunds
Test mode eventsTest ledger
Trust

Where the numbers come from.

We check the Stripe-Signature on every request (HMAC-SHA256, 5-minute tolerance). The script makes no network calls.

FAQ

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.

Other integrations

Selling somewhere else too?

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.