ZOHO Subscriptions

Handle your customer subscription billing life cycle from end to end. Automate recurring billing, manage subscriptions, send professional tax-compliant invoices, and get paid on time, every time.

To integrate ZOHO Subscriptions with your Post Affiliate Pro we make use of webhooks and Lifetime Commissions plugin.


Enable plugin

The first step would be to enable the ZOHO Subscriptions plugin in your merchant panel. When enabled click the More Info button and copy the URL - you will need it in the next step. Besides ZOHO Subscriptions plugin make sure to enable Lifetime Commissions plugin too.


Add webhook

Login to your ZOHO Subscriptions admin panel and click the top right gear icon to enter Settings menu. Now navigate to Automation> Webhooks and add a new webhook. Choose 'Customer Payment' for Module and you can enable both 'Payment Success' and 'Payment Refund'.
In ACTION secion add the URL you copied from your plugin's More Info button and enter it as the URL. Add 'paymentid' parameter with value _${CUSTOMER_PAYMENT.PAYMENTID} to the URL so the result looks like this:
Finally, choose 'Default Payload' in BODY section and save your webhook.


Order/Registration form integration

To be able to track a commissions from webhook data you have to add a special code to your registration or order form where you collect customer's email address. The special code has to track an action (even for zero commission) so the system might create a relation between the customer and the referring affiliate.
An example of such a code, which automatically tracks a registration action when a submit button with ID 'submitButtonID' is clicked and reads customer email from field 'XemailX' is here:

<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
document.getElementById('submitButtonID').addEventListener("click", function (){papSale()});

function papSale() {
    var email = document.getElementById('XemailX').value;
    if (email == '') return;

    var sale = PostAffTracker.createAction('registration');

Your ZOHO Subscriptions form is integrated now.