–Hidden comment

Use attributes in format region_from and region_to= to change the languages showing in language switcher.
Available regions are:
europe_from europe_to
asia_from asia_to
mideast_from mideast_to
america_from america_to

Example:
europe_from=0 europe_to=22 will put all languages (ordered in language switcher settings) from 1 to 21 to Europe region:
asia_from=22 asia_to=25 will put all languages from 23 to 24 (so only 2) into Asia region.

Chargebee

Automate your subscription billing with Chargebee’s plug & play billing software.

Integration with Chargebee is achieved by setting a redirect URL with parameters and placing the sale tracking script into the thank you page using a simple JavaScript logic.

First step

The first step would be to find the needed section where you can set the redirect URL. Login to your Chargebee and navigate to Product Catalog> Plans and edit each plan you want to integrate. Each plan has its own redirect URL, just make sure to use these params in it:

?pap=1&productID={{plan.id}}&customer={{customer.id}}&orderID={{subscription.id}}&price={{invoice.amount}}

In case you support multiple currencies you will need to add currency information to the URL as well:

?pap=1&productID={{plan.id}}&customer={{customer.id}}&orderID={{subscription.id}}&price={{invoice.amount}}&currency={{invoice.currency_code}}

Sale tracking

Put the following code into the redirect URL you defined in each plan:

<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
function getParameterByName(name, url) {
    if (!url) url = window.location.href;
    name = name.replace(/[\[\]]/g, '\\$&');
    var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
        results = regex.exec(url);
    if (!results) return null;
    if (!results[2]) return '';
    return decodeURIComponent(results[2].replace(/\+/g, ' '));
}
if (getParameterByName('pap') == '1') {

PostAffTracker.setAccountId('Account_ID');
var sale = PostAffTracker.createSale();

var subtotal = getParameterByName('price'); // in cents
sale.setTotalCost(subtotal/100);
sale.setProductID(getParameterByName('productID'));
sale.setOrderID(getParameterByName('orderID'));
sale.setData1(getParameterByName('customer'));

if (getParameterByName('currency') != '' && getParameterByName('currency') != null) {
    sale.setCurrency(getParameterByName('currency'));
}

PostAffTracker.register();
}
</script>

Webhooks

Chargebee gives us an option to use webhooks which we can use to track recurring commissions. To setup a webhook, first enable the Chargebee plugin in your merchant panel. Then navigate to your Chargebee account into Settings> Configure Chargebee and find section ‘API keys and webhooks‘ Enter the section and then navigate to Webhooks. Add a new webhook using the button there. USe the following URL for the webhook:

https://URL_TO_PostAffiliatePro/plugins/Chargebee/chargebee.php

Save it and you are done.

It is now integrated. Every time a customer enters the order confirmation page, the tracking code is called, and it will register a sale for referring affiliate.

Back to Integrations Create account for FREE
Would you like to improve your affiliate software even more? Check out the OptimizePress and pricing tables with PayPal links integration.

OptimizePress and pricing tables with PayPal links

Would you like to improve your affiliate software even more? Check out the OptimizePress and pricing tables with PayPal links integration.

Learn about the ChargeDesk Affiliate Program's key details, campaign restrictions, rules, commissions, and more before you join.

ChargeDesk Affiliate Program

Learn about the ChargeDesk Affiliate Program's key details, campaign restrictions, rules, commissions, and more before you join.

Would you like to improve your affiliate software even more? Check out the PaySimple integration for Post Affiliate Pro.

PaySimple

The article discusses the integration of Simple PayPal Shopping Cart plugin with the Post Affiliate Pro platform, allowing users to sell products and services directly from their WordPress site. Instructions are provided for editing code and configuring settings for the integration. The article also mentions additional resources and offers a free account to get started with the integration. Contact information and support options are also presented.

Would you like to improve your affiliate software even more? Check out the PayWhirl integration for Post Affiliate Pro.

PayWhirl

PayWhirl is a tool for managing recurring payments, and integrating it with PostAffiliate Pro is done through the "Custom Tracking Scripts" app. To track sales, a code needs to be added to the conversion tab with the appropriate PostAffiliate Pro account details. To track recurring payments, a webhook must be set up for charge.succeeded events. Finally, activate the tracking plugin in the merchant panel's configuration and set up the desired details to save into the extra data fields of the commission.

Our website uses cookies. By continuing we assume your permission to deploy cookies as detailed in our privacy and cookies policy.

×

Schedule a one-on-one call and discover how Post Affiliate Pro can benefit your business.

We’re available on multiple dates

Schedule a call