# Referralmeter > Affiliate programs for AI apps. A coding agent installs it in one prompt, a live test referral proves it tracks (an install certificate), and commissions are calculated from the billing provider's own signed webhooks: Stripe, Polar, Lemon Squeezy, Paddle, Creem and Dodo Payments, including credits and usage. Flat monthly price, no cut of affiliate revenue. Referralmeter never holds or sends money; merchants pay affiliates from their own PayPal or Wise. Key facts for integrating: - Script: `` in of every public page. Public key pk_ is safe in the browser. - Browser API: `referralmeter.ref()`, `referralmeter.signup(email, { uid })`, `referralmeter.code()`, `referralmeter.ready()`, `referralmeter.consent()`. - Checkout: pass `referralmeter.ref()` as metadata `referralmeter_ref` (Stripe Checkout: also `client_reference_id`). Lemon Squeezy: `checkout_data.custom.referralmeter_ref`. Paddle: `customData.referralmeter_ref`. - Landing-URL params: via, ref, fpr, aff (affiliate code), sf_cid (click id). Cookie: sf_ref. - Secret keys (sk_…) authenticate the REST API (`https://referralmeter.com/api/v1`) and the MCP server (`https://referralmeter.com/api/mcp`, Streamable HTTP). Amounts are integer cents. - Verify an install: POST https://referralmeter.com/api/v1/verifications, open the returned testLink, sign up, pay in test mode, poll GET /api/v1/verifications/{id} until status is "passed". ## Docs - [Quickstart](https://referralmeter.com/docs): Install Referralmeter in one prompt, or by hand in four changes, and prove it tracks. - [Tracking script](https://referralmeter.com/docs/tracking-script): What t.js does, the JavaScript API, consent mode and calls before the script loads. - [Server-side referrals](https://referralmeter.com/docs/server-side): Report signups and sales from your server with a secret key. - [Verification & certificate](https://referralmeter.com/docs/verification): How the install check works, what each step proves, and the public certificate. - [Stripe](https://referralmeter.com/docs/billing/stripe): Connect Stripe: what to pass at checkout, which webhook events, and where the signing secret is. - [Polar](https://referralmeter.com/docs/billing/polar): Connect Polar: what to pass at checkout, which webhook events, and where the signing secret is. - [Lemon Squeezy](https://referralmeter.com/docs/billing/lemonsqueezy): Connect Lemon Squeezy: what to pass at checkout, which webhook events, and where the signing secret is. - [Paddle](https://referralmeter.com/docs/billing/paddle): Connect Paddle: what to pass at checkout, which webhook events, and where the signing secret is. - [Creem](https://referralmeter.com/docs/billing/creem): Connect Creem: what to pass at checkout, which webhook events, and where the signing secret is. - [Dodo Payments](https://referralmeter.com/docs/billing/dodo): Connect Dodo Payments: what to pass at checkout, which webhook events, and where the signing secret is. - [REST API](https://referralmeter.com/docs/api): Every v1 endpoint, its parameters and its scope. - [MCP server](https://referralmeter.com/docs/mcp): Connect Claude Code, Cursor or any MCP client to your program. - [Webhook security](https://referralmeter.com/docs/webhook-security): How billing webhooks are verified, deduplicated and stored. - [Fraud & approvals](https://referralmeter.com/docs/fraud): Which sales get held for a person to approve, and why. - [Payouts](https://referralmeter.com/docs/payouts): How Referralmeter works out what you owe, and how you pay it. - [FAQ](https://referralmeter.com/docs/faq): Short answers to the questions founders ask before installing. ## For agents - [Install procedure](https://referralmeter.com/agents/install.md): step-by-step install for any stack, as an agent skill - [OpenAPI 3.1](https://referralmeter.com/api/v1/openapi.json): every REST endpoint - [Full docs as one file](https://referralmeter.com/llms-full.txt)