Set up Stripe Buy Buttons 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 Buy Buttons, and Stripe passes it back with the payment.
Before you start
Connect Stripe in Settings › Integrations. See Set up Stripe with Tolt.
Go to Settings › Tracking script and copy the script.
Add
data-stripe-type="buy_button"to the script, and paste it inside the<head>tag of every page that has a Buy Button:<script
async
src="https://files.tlt-cdn.com/v2/tlt.js"
data-tolt="YOUR_PUBLIC_KEY"
data-stripe-type="buy_button"
></script>Publish your site.
Payments through your Stripe Buy Buttons are now credited to the partner who referred the customer.
Good to know
Buy Buttons use Payment Links, so for one-time payments switch on customer creation in the Payment Link's settings in Stripe.
To set the referral yourself instead, set the button's
client-reference-idattribute towindow.tolt_referral.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.
