Set up RefPier in four steps

RefPier connects to your Stripe with one webhook. It uses no Stripe API key and can read nothing else in your account. It records and totals; you decide, approve and pay. Tax forms and affiliate agreements are yours.

1. Make the program

Sign in at the team page. Under Program, set the page your referral links lead to (https only), the commission percent, how long a customer pays commission (first N invoices, or 0 for lifetime) and the refund window in days (commission stays pending that long).

2. Add the webhook in your Stripe dashboard

In Stripe, open Developers, Webhooks, Add endpoint. Use the address the Program page shows. It looks like this:

https://refpier.com/hook/<your private token>

Choose exactly these events:

  • checkout.session.completed
  • invoice.paid
  • charge.refunded

Stripe then shows a signing secret that starts with whsec_. Paste it into the Program page. It is stored protected and never shown again. Every call is checked against it, so a call that Stripe did not send is refused.

If your Stripe account sends the older invoice fields (charge and payment_intent on an invoice), refunds are matched to the sale directly. Use an endpoint API version that has them.

3. Add your partners

Under Partners, add a name and an email address. A code is made for you (or choose your own: letters, digits and dashes). Give the partner their link https://refpier.com/r/<code> or a Stripe promotion code that you made for them, and paste that code id (promo_...) next to the partner. Each partner also gets a private page showing their link, clicks and earnings.

4. Tell Stripe who sent the customer

The link sends the visitor to your page with ?ref=<code> and client_reference_id=<code>. To carry it to a Stripe Payment Link or a checkout button on your own site, add this one line to your page:

<script src="https://refpier.com/refpier.js" async></script>

It remembers the code in a cookie on your site for 60 days and adds client_reference_id to links to buy.stripe.com and checkout.stripe.com. It sends nothing anywhere. If you create Checkout Sessions yourself, pass the same code as client_reference_id (or as metadata ref).

How a sale is credited

  • The partner is found in this order: a reference equal to a partner code, then a coupon you linked to a partner, then the partner already remembered for that Stripe customer.
  • Commission is the percent of the sale without tax. A customer who is the partner (same email address) earns nothing.
  • A new subscription is counted on its invoices; a one-time payment is counted once.
  • A refund lowers the commission in proportion, and cancels it when the sale is refunded in full. If the commission was already marked paid, the refund becomes a negative line in the next report.
  • Over your plan's monthly volume nothing is dropped: sales keep being recorded. Only adding new partners waits for an upgrade.

Paying your partners

Under Reports, download the payout CSV, pay your partners in your own way, then mark them as paid. The note you add is kept with the payment.