PayWhirl makes it easy to manage recurring payments.
Integration with PayWhirl is done by using a PayWhirl’s built-in App called “Custom Tracking Scripts”.
Install the app
To start with the integration, navigate to your PayWhirl account and then to Apps & Integrations. Find and install an app called Custom Tracking Scripts.
Once installed you will see two different tabs on the settings page. One section will load scripts on EVERY page PayWhirl provides and the other section will only load scripts AFTER CONVERSIONS, when people complete checkout successfully – this is what we will use.
The first step is to give your app a name. You can name it e.g. Post Affiliate Pro
Now, choose the ‘Conversion‘ tab and use the following code in it:
If you scroll down a little you will see a full list of available variables, so if you was to customize the sale tracking code, feel free to do so using the available variables.
To track also recurring payments you’ll need to set up a webhook under Developer > Webhooks where you need to create a webhook for account event charge.succeeded. If you are looking to track refunds as well then create the webhook for charge.refunded as well.
The webhook must be created for the following URL:
The recurring commissions will only track if you use the Recurring Commissions feature or the Lifetime Commissions plugin.
The last step of the integration is to activate the tracking plugin in your Post Affiliate Pro account. Log in to your merchant panel and go to Configuration > Plugins where you need to find and activate the PayWhirl webhook handling plugin. Once the plugin is activated you can configure it to enable/disable refunds tracking and to set what details should be saved into the extra data fields of the commission.
Do not forget to integrate your site with the click tracking code.