PayWhirl integration
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.
Sale tracking
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:
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');
{% for invoice in invoices %}
papSkus = '';
{% for item in invoice.items %}
papSkus += '{{item.sku}}, ';
{% endfor %}
var sale{{ loop.index }} = PostAffTracker.createSale();
if ({{invoice.paid}}) {
sale{{ loop.index }}.setTotalCost({{ invoice.amount_due }} - {{ invoice.shipping_total }} - {{ invoice.tax_total }});
} else {
sale{{ loop.index }}.setTotalCost(0);
}
{% if invoice.subscription_id %}
sale{{ loop.index }}.setOrderID('{{ invoice.subscription_id }}');
{% else %}
sale{{ loop.index }}.setOrderID('{{ invoice.id }}');
{% endif %}
sale{{ loop.index }}.setProductID(papSkus.slice(0, -2));
sale{{ loop.index }}.setData1('{{ customer.email }}');
sale{{ loop.index }}.setCurrency('{{ invoice.currency }}');
sale{{ loop.index }}.setCoupon('{{ invoice.promo_code }}');
{% if loop.index != invoices|length %}
sale{{ loop.index }}.doNotDeleteCookies();
{% endif %}
{% endfor %}
PostAffTracker.register();
</script>
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.
Webhook setup
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:
https://URL_TO_PostAffiliatePro/plugins/PayWhirl/paywhirl.php
The recurring commissions will only track if you use the Recurring Commissions feature or the Lifetime Commissions plugin.
Plugin activation
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.
BusinessDirectory (WordPress module)
Scale Lead is a nutra CPA network offering fixed commissions for affiliates interested in media and marketing. The affiliate program has campaign rules, accepted countries, and policies on explicit, religious, and political content to consider. The program supports text link banners and accepts worldwide link and banner advertisements. The affiliate manager can be contacted through Media and Marketing Mail or LinkedIn, and a free 14-day trial is available. The company also offers Post Affiliate Pro with a message sent to your email address containing login details after installation. The website uses cookies. Contact forms and live chat options are available.
OptimizePress and pricing tables with PayPal links
Integrate PayPal links into pricing tables using OptimizePress for WordPress. Add payment links, track clicks, and optimize sales pages and membership portals.
Integrate SamCart with Post Affiliate Pro to track regular and recurring orders. Follow essential steps for successful integration, including creating custom fields, adding tracking codes, creating integrations, and setting up rules. Activate the SamCart plugin in PAP and add the custom field to products for comprehensive tracking.