Skip to main content

Set up Stripe Payment Links with Tolt

Credit partners for payments made through your Stripe Payment Links.

Written by Nick

Set up Stripe Payment Links with Tolt so payments through them are credited to the partner who referred the customer. The tracking script adds each visitor's referral to your Payment Links, and Stripe passes it back with the payment.

Before you start

Connect Stripe in Settings › Integrations. See Set up Stripe with Tolt.

  1. Go to Settings › Tracking script and copy the script.

  2. Add data-stripe-type="payment_links" to the script, and paste it inside the <head> tag of every page that has a Payment Link:

    <script
    async
    src="https://files.tlt-cdn.com/v2/tlt.js"
    data-tolt="YOUR_PUBLIC_KEY"
    data-stripe-type="payment_links"
    ></script>
  3. Publish your site.

Payments through your Stripe Payment Links are now credited to the partner who referred the customer.

Good to know

  • If your Payment Links use a custom domain, also add data-stripe-domain="https://pay.example.com" to the script, with your domain.

  • For one-time payments, switch on customer creation in the Payment Link's settings in Stripe. Tolt can't credit a partner for a payment without a Stripe customer.

  • To add the referral yourself instead, append ?client_reference_id= and the value of window.tolt_referral to the link.

  • To test without a full charge, make a small live purchase through a partner link, then refund it. See Test the integration.

  • For developers: the Stripe integration guide has more examples.

  • Need a hand? Contact us via chat and we'll set up Stripe with you.

Did this answer your question?