Follow the instructions below to integrate OSI Affiliate Software into your ReCharge recurring billing software account so that you may give your affiliates an ongoing recurring commission.


Step 1: Setup Affiliate Program

Edit affiliate program advanced settings & setup Recurring Commission with ‘Match Email’ option.

Step 2: Copy Thank You Page Code

Note down this thank you page code:


<script>

    function hideIF() {

       document.getElementById('IF').style.display = 'none';

    } 

    function getSaleInfo() {

       document.getElementById('st_code').innerHTML='<iframe src="https://YOUR-OSI-SUBDOMAIN.ositracker.com/sales/salejs/amount:{{subtotal_price}}/transaction:{{order_number}}/customer_email:{{email}}" alt="" id=IF width=50 height=50 border="0" frameborder="0" onload="hideIF()">'; 

    } 

    window.onload = getSaleInfo;

</script>

<div id="st_code"></div>


**Replace YOUR-OSI-SUBDOMAIN with your osi subdomain.

Step 3: Create Ruleset & Add Products

Create ruleset & add products to your ReCharge app.

Step 4: Paste Thank You Page Code

Go to “Checkout settings” and paste thank you page code at the “Thank you page” section.

Step 5: Copy API tokens

Note: You need to contact reCharge support team and ask them to enable the API token option.


Then once they enable Go to “API tokens...” under the “Integrations” section.


Note down “API key” (create one if not already). Your API Key is your Access Token. Now click on your API Key name and note down “API Client Secret”.

Note: The API Client Secret will be generated after your create your API Key. Go back to the API key to see the API Client Secret.


And set “Permission” to “Read and Write access”.

Step 6: Paste API tokens

Go to third party Integration under settings. 


Click “ReCharge Integration”


Paste the “Access Token” and “Client Secret”.