If you have the Stripe Checkout for your website and you are looking to set up your own affiliate program, this can be easily done. If you do not already have an affiliate software system you can sign up for one of the OSI Affiliate Software Plans.


If you're not using an embedded Stripe Checkout button, refer to this article instead:

Stripe Integration instructions

After you have your Affiliate Software account set up the integration into Stripe is really easy. Simply follow the steps below.

Step 1: Log in to your OSI Affiliate admin control panel


Step 2: Click on Set Up Software


Step 3: Click on "Link Software to My Store".


Step 4: Select "Stripe Payment Gateway" from the drop-down list.


Step 5: Click "Connect to Stripe" button


Step 6: Go to the Referral programs section of your admin.  

Step 7. Now select the program that you want to enable recurring commissions for.


Select Show advanced settings, Turn on recurring commissions by selecting "Yes" and set your commission amount or percentage to be "Match Email"


Step 8: Log in to your Stripe account and select your desired sub-account and click the "Connect my Stripe" account button.


Note: Since there is no longer a code snippet section they should just add this line of code on the page where they put the stripe link, get the link to the product shown below.


<script type="text/javascript" src="https://www.ositracker.com/js/url-params.js"></script> 



Step 9: In your Stripe account, click on Developers -> Webhooks


Step 10: Click on "Add Endpoint"



Step 11: In the endpoint URL field, add https://YOUR-SUBDOMAIN.ositracker.com/Stripe/checkout, replace YOUR-SUBDOMAIN with your real OSI Affiliate Software subdomain, then select your current API and then for the events, select "checkout.session.completed" and then click "Add Endpoint".


Step 12: Click API Keys


Now select "Create secret key" and then copy it to a temp file or location as you will need it in a future step.


Step 13: Go back to your OSI Admin control panel and click Set up Software -> Settings and then select "Show advanced settings"


Step 14: Check the box "Include Parameters in Affiliate URL" and then click update.


Step 15: On the settings page click "Third Party Integrations"


Step 16: Select Stripe


Step 17: Paste in the Secret key that you previously copied from your Stripe API section above and click Submit



Your Stripe Checkout integration has now been completed. Feel free to test by clicking an affiliate link and doing a purchase with your Stripe Checkout button.