ZOHO Subscriptions integration
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.PAYMENT_ID}
to the URL so the result looks like this:
URL_TO_PostAffiliatePro/plugins/ZohoSubscriptions/webhook.php?paymentid=${CUSTOMER_PAYMENT.PAYMENT_ID}
Finally, choose ‘Default Payload‘ in BODY section and save your webhook.
Product ID tracking
In case you want to track your orders by product ID, you have to take an extra step as it is not possible to read it directly from webhook data. However, it is possible to add product ID into the webhook URL so in the ACTION section of the webhook add a new parameter and name it ‘productId‘. Then choose variable ${CUSTOMER_PAYMENT.PRODUCT_ID} from placeholders. This will always set the sold product ID to the data sent to your ZohoSubscriptions plugin.
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;
PostAffTracker.setAccountId('Account_ID');
var sale = PostAffTracker.createAction('registration');
sale.setProductID('Registration');
sale.setCampaignID('11111111');
sale.setOrderID(email);
sale.setData1(email);
PostAffTracker.register();
}
</script>
Your ZOHO Subscriptions form is integrated now.
Explore seamless integrations with Post Affiliate Pro to enhance your affiliate marketing strategies. Discover solutions for e-commerce, email marketing, payments, and more, with easy integrations for platforms like 1&1 E-Shop, 2Checkout, Abicart, and many others. Optimize your affiliate network with these powerful tools.
Integrate GoPay with Post Affiliate Pro to effortlessly register sale commissions using the API. Learn how to set the SuccessURL parameter, send special data, and ensure smooth commission registration. Enhance your affiliate marketing with a tailored dashboard and explore its benefits by scheduling a call with us today!
Effortlessly integrate your e-commerce site with Post Affiliate Pro and boost your affiliate program's success. Our expert team ensures seamless integration with your payment processor, handling technical issues along the way. Enjoy a free trial and free integration service, saving you time and maximizing your ROI. Join now and experience top-notch affiliate management with over 500 integration options.