Payrexx integration
Payrexx enables you to handle worldwide customer payments safely and easily. No website or coding skills required. Immediately accept Visa, Mastercard, PayPal, Apple Pay, Samsung Pay and further 200+ payment methods.
This integration method works with Payrexx payment links and utilizes their webhooks to notify Post Affiliate Pro about the payments.
Setup a webhook
Login to your Payrexx and navigate to Webhooks. Click Add webhook to add a new webhook, name it and set the Webhook URL to the following:
https://URL_TO_PostAffiliatePro/plugins/Payrexx/payrexx.php
Leave Webhook type set to POST Form Data and leave the version on the most recent one.
Enable the tracking plugin
Log in to your Post Affiliate Pro merchant panel and navigate to Configuration > Plugins and activate the Payrexx webhook handling plugin.
Integrate your Payrexx links
Add to the pages where your Payrexx links are published the following code. It must be added below all the Payrexx links:
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
try {
PostAffTracker.setAccountId('Account_ID');
PostAffTracker.track();
}
catch(e){}
window.addEventListener('load', function() {
var payrexxLinks = document.querySelectorAll('a[href*="payrexx.com"]');
for (i=0; i < payrexxLinks.length; i++) {
payrexxLinks[i].id = 'addPapCookie';
}
PostAffTracker.writeCookieToLink('addPapCookie', 'referenceId');
})
</script>