Discover how Stripe and Referral Factory work together to run your referral program on auto-pilot. Connect Stripe to qualify referrals when they hit a target spend amount, protect against refunds, and even sync referral links into Stripe as metadata.

Are you looking for referral program software that works with Stripe?
Get your referral program up and running, and integrated with Stripe, in just a few days π Try Referral Factory
If you already have a Referral Factory account, then keep reading to learn how to set up your integration π
In this guide π
1. What You Can Do With Stripe and Referral Factory π
2. How To Connect Your Stripe Integration
3. How To Configure Your Stripe Integration
3.1.1. How To Configure Your Qualification Settings
3.1.2. How To Set Up Your Stripe Webhook
3.2. How To Sync Stripe Customers with Referral Factory (and Generate Their Referral Links)
3.3. How To Send Direct Users From Referral Factory to Stripe
4. Uninstall Your Stripe Integration from Referral Factory
1. What You Can Do With Stripe and Referral Factory π
π Every time you get a new referred lead, create a new customer in Stripe AND track their spend. That way, you can mark the referral as successful when they hit a target spend amount.
π Seamlessly protect yourself from refunds and self-referrals.
π Sync your Stripe customers to automatically generate their unique referral links, which you can then send back into Stripe as metadata. That way, you can distribute referral links on your customer's invoices.
π Every time someone signs up for a referral link, create a customer in Stripe. That way, you can offer them Stripe rewards like coupons or credit.
π Did you know that you can also use Stripe to issue rewards? π Reward the person referring or the person invited with a coupon or credit in Stripe automatically. Learn more here:
2. How To Connect Your Stripe Integration
What You Need:
Any Referral Factory plan.
Stripe Administrator privileges.
A draft or live referral campaign in Referral Factory.
β In the left-hand navigation bar of your Referral Factory dashboard, click the Settings tab.
β Make sure that you're in the Integrations & Pixels section.
β Click Connect under the Stripe logo.
β A pop-up will appear asking you to Connect Referral Factory. Click Connect.
βοΈ Please note that your Stripe integration should be authorized by the main account holder or a user with administrator privileges.
β Success!
βοΈPlease note that you can only connect one integration to Referral Factory at a time. You may be able to connect additional integrations via Zapier. For more information, please consult this guide: π Zapier And Referral Factory: A Full Guide π
3. How To Configure Your Stripe Integration
Once your Stripe account is connected to Referral Factory, you will need to configure your integration inside your campaign(s).
βοΈ If you want to sync multiple referral campaigns with Stripe, you will need to configure the integration for each campaign.
There are two main functions to configure to use your Stripe integration to its full potential:
π Send new referred leads from Referral Factory into Stripe and qualify them when they hit a target spend amount in Stripe.
π Sync existing Stripe customers with Referral Factory to generate their referral links, and send these back into Stripe as metadata.
3.1. How To Send Referred Users From Referral Factory to Stripe and Automatically Qualify Them When They Hit a Target Spend Amount in Stripe
Referral Factory can automatically create a customer in Stripe when someone signs up as a referred user ("the friend") and track their spend. That way, when they hit a spend target of your choice, you can automatically qualify them as a successful or converted referral, which, in turn, could trigger a reward to the person who referred them.
π‘ Want to know more about qualifying converted or successful referrals in general? Read this guide: π How to Qualify Converted or Successful Referrals π
3.1.1. How To Configure Your Qualification Settings
This function must be configured from inside the campaign builder.
β Select the Campaigns tab from the left-hand menu bar.
β Click Edit Campaign.
β Once you're inside the campaign builder, select Integration from the bottom navigation bar.
β Click Person Invited (configure settings).
β Under Select the method you want to use to qualify, select A customer's total spend would exceed a certain amount.
β Next, set the total amount that the referred user must spend in order to qualify as a converted or successful referral. The currency of this value will be the same as your default currency in Stripe.
π Please note that Referral Factory will track the customer's total aggregated spend from the date they were first referred.
β Then, specify how many days the referrer user has to reach the target spend in order to qualify. In marketing lingo, this is often referred to as the "attribution window".
β Select how you would like Referral Factory to handle the creation of NEW customer records in Stripe. These options will help you manage the creation of duplicate records
π Select the first option if Referral Factory should NOT create a customer record in Stripe when a new referred user signs up on a referral link but rather wait for your checkout system to create the record. Referral Factory will still be able to qualify a referral as long as the customer uses the same email address. This option will help you avoid duplicate customer records in Stripe.
π Select the second option if Referral Factory should INSTANTLY create a customer record in Stripe when a new referred user signs up on a referral link. This option works best if your checkout system has a mechanism to check for duplicate customer records.
β Select how you would like Referral Factory to handle the creation of customer records in Stripe when the referred user's email ALREADY EXISTS.
βοΈIn addition to managing the creation of duplicate customer records in Stripe, these options will allow you to manage self-referrals and the referral of existing customers.
π Select the first option if Referral Factory should only create a customer in Stripe if the new referred user's email address does NOT ALREADY EXIST in Stripe. This will prevent self-referrals and the referral of existing customers because the referred user will never be qualified.
π Select the second option if Referral Factory should create a customer in Stripe EVEN IF a customer record with the same email address ALREADY EXISTS. This means that a duplicate customer record WILL be created. This option allows self-referrals as well as the referral of existing customers. However, the qualification will only trigger if the customer spends on the new record created by Referral Factory.
π Select the third option if Referral Factory should UPDATE a customer record in Stripe that already exists. This means that a duplicate customer record WILL NOT be created. This option allows self-referrals as well as the referral of existing customers.
β Finally, use the toggle to select whether you want to automatically unqualify users who request a refund within the previously decided attribution window.
β Click Save Qualification Settings.
βοΈ Important: You must click the Save Qualification Settings button in order to generate a webhook in Stripe.
3.3.2. How To Set Up Your Stripe Webhook
β Once you have clicked on Save Qualification Settings, a pop-up will appear with instructions on how to set up a webhook in Stripe.
To make this as easy as possible, Referral Factory has generated a link that will take you straight to your Stripe webhook settings, with all the relevant settings pre-filled. All you will need to do is add the unique endpoint that is also provided. Please note that Stripe administrator privileges are required to add webhooks.
β Start by clicking the yellow text that reads "Click here to create your Stripe webhook". A new tab will open in Stripe that says "Listen to Stripe events."
β Paste the unique endpoint URL provided for you in the pop-up window under the heading "Endpoint URL".
β Click Add endpoint.
β Success!
βοΈ Please note that these webhooks are campaign-specific. If you would like to use Stripe to qualify users in multiple campaigns, you will need to set up additional webhooks for each campaign you want to track.
3.1.3. How To Map Your User Fields
Complete your configuration by returning to Referral Factory and mapping the user fields.
β Use the drop-down options to match the relevant data between Referral Factory and Stripe.
βοΈ Stripe requires that you map the following fields:
β {First Name}
β {Email}
βοΈ If these fields are not mapped, the integration will not work βοΈ
β Map any additional information by clicking "Send as Metadata" and typing in your desired key.
β You can also attach the information of the person who made the referral as metadata.
β Click Next to save your settings.
3.2. How To Sync Stripe Customers with Referral Factory (and Generate Their Referral Links)
βοΈCustomers that you sync will not be automatically notified or sent their referral link. If you would like to notify them, please use your own marketing channels or Referral Factory's once-off email feature. You can learn more about once-off emails here: π How To Create A Once-Off Email π
You can sync your Stripe customers from three places in the Referral Factory dashboard:
π From the Users Tab.
β Click Add Users.
β Click Sync Your CRM Contacts.
π From the Campaigns tab.
β Click Sync Your Contacts.
π From the Promote section inside the campaign builder.
β Click Generate links for your contacts by syncing them.
β First, map your customer contact's details from Stripe to Referral Factory. Use the dropdown boxes to select Name and Email.
β Click Next.
β Then, enter the key under which you'd like to save the referral link in each customer's metadata. We suggest using "Referral Link"
β Click Next.
β If you would like to sync your Stripe customers on an ongoing basis, switch the toggle to on. In other words, every time you add a new customer in Stripe, they will be automatically added to your referral program and their referral link will be sent back to Stripe.
β Click Start Sync.
β Success!
And this is how the referral link will look inside a customer's metadata in Stripe:
3.3. How To Send The Person Referring (Direct Users)
Should you have a use case for this function, you can also create a customer in Stripe every time someone signs up for a referral link as a direct user or a Person Referring. Please note, however, that there is no way to qualify direct users. So, Referral Factory won't be able to track direct users' spend in Stripe or qualify them.
This function must be configured from inside the campaign builder.
β Select the Campaigns tab from the left-hand menu bar.
β Click Edit Campaign.
β Once you're inside the campaign builder, select Integration from the bottom navigation bar.
β Click Person Referring (configure settings).
β Map your fields. Use the drop-down options to match the relevant data between Referral Factory and Stripe.
β Map any additional information by clicking "Send as Metadata" and typing in your desired key.
4. Uninstall Your Stripe Integration from Referral Factory
β Navigate to the Settings tab of your Referral Factory dashboard.
β Under the Stripe logo, click Disconnect.
βοΈ Once disconnected, no user data will sync between Stripe and Referral Factory or vice versa. However, any data that was synced before will still be available in both systems.