
Integrate ShopSite with affiliate software
Would you like to improve your affiliate software even more? Check out the ShopSite integration for Post Affiliate Pro.
Integrate PayWhirl with Post Affiliate Pro by installing the Custom Tracking Scripts app, setting up webhooks, and activating the tracking plugin. This allows tracking of recurring payments and customization of sale tracking codes.
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”.
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:
<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.
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.
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.
PayWhirl is a dynamic subscription management and recurring billing platform designed to simplify how businesses implement subscription-based services. Without the need for extensive coding, PayWhirl seamlessly integrates subscription options into existing websites, making it effortless for businesses to manage subscriptions, automate billing processes, and enhance customer interactions.
Founded in 2013 by innovators Ryan Pfleger, Brandon Swift, and Tyson Crandall, PayWhirl emerged to address the complexities inherent in subscription billing. Recognizing the challenges businesses faced with recurring payments, the founders developed a platform that has since evolved to feature integrations with various e-commerce systems. PayWhirl’s focus on flexibility and user-friendliness has attracted numerous businesses embracing the subscription commerce model.
Who Benefits from PayWhirl?
Key Benefits of Using PayWhirl
PayWhirl offers a range of tiered pricing plans to cater to different business needs:
Pros:
Cons:
For businesses exploring other solutions, several alternatives offer subscription management and billing services:
PayWhirl is a subscription management and recurring billing platform that simplifies how businesses offer and manage subscription-based services, automate billing, and enhance customer experiences without extensive coding.
Install the Custom Tracking Scripts app in PayWhirl, set up sale tracking by inserting the provided script under the 'Conversion' tab, configure webhooks for recurring payments and refunds, and activate the PayWhirl webhook handling plugin in your Post Affiliate Pro account.
Small to medium-sized businesses, e-commerce platforms (especially Shopify), service providers with recurring offerings, and SaaS companies can benefit by automating subscription management and affiliate tracking.
PayWhirl offers simple subscription setup, flexible payment options, automated billing, customer self-service portals, in-depth analytics, and supports multiple payment gateways like Stripe and PayPal.
Yes, alternatives include Recurly, Chargify, Chargebee, Zuora, Stripe Billing, Braintree, Paddle, MoonClerk, Memberful, and Zoho Subscriptions.
Lucia is a talented content editor who ensures the seamless publication of content across multiple platforms.
Discover how integrating PayWhirl with Post Affiliate Pro streamlines subscription management and automates recurring payments for your business.
Would you like to improve your affiliate software even more? Check out the ShopSite integration for Post Affiliate Pro.
Would you like to improve your affiliate software even more? Check out the SamCart integration for Post Affiliate Pro.
Easily integrate InSales with Post Affiliate Pro to create and manage your online store. Enable seamless order and per-product tracking, benefit from lifetime c...