Setup Stripe Payment Links
Last updated
Last updated
Payment Links are a simple way to accept payments or sell subscriptions online without the need to create a full digital storefront. You can accept more than 20 payment methods—including credit and debit cards, Apple Pay, and Google Pay—all through a single payment link. Additionally, Payment Links automatically adapt to your customer’s preferred browser language, supporting over 30 languages.
In this guide, you will learn how to set up your payment link to track referrals. Once a successful payment is made through a referral link, Referral Rocket will track the referral.
You can find the global script under "Installation" on the Campaign Detail page in your Referral Rocket account. Copy the script and paste it into the landing page or the custom code section of your website, inside the <Head> tags.
How to Add Custom Code with Popular Website Builders
Webflow: Go to Project Settings > Custom Code > Paste the script.
Framer: Open the project settings > Code tab > Paste the script.
WordPress: Use the header/footer plugin or paste it directly in the theme’s header file.
After adding the global script, the next step is to configure your payment link page. This script will track referral data and associate it with your Stripe payment information, allowing Stripe to properly track referral details.
This script ensures that the referral code is included when the customer clicks the payment link, allowing Stripe to track the referral.
After adding the necessary scripts, you can test to ensure everything is working correctly with your Stripe integration. Follow these steps to perform a test:
Create a Test Affiliate Participant:
Go to the Referral Rocket hosted campaign widget, or embed it on your site.
You can use any email address to sign up as a participant.
Get the Referral Link:
After submitting, Referral Rocket will generate a unique affiliate link for the participant.
Open this link in a new tab. It will land you on your landing page.
Test the Payment Link:
Click the payment link to proceed to the Stripe Checkout page.
Use Stripe's Test Mode to avoid any charges while testing.
Complete the Payment:
Complete the test payment to verify that the referral information is being tracked correctly.
Head over to Referral Rocket and ensure that the referred participant is properly recorded in the system.
You can also check the reward section to confirm that rewards are being tracked and assigned.