PagSeguro (IPN already used) integration
PagSeguro is a Brazilian-based national e-commerce business allowing payments and money transfers to be made through the Internet.
The integration is done by a built-in plugin which reads PagSeguro data notifications.
Check your notification URL
Navigate to Integrations > Transaction notifications and it there already is a URL defined, it means you have to follow the next steps. First of all, take a note of the URL which you are using right now.
PagSeguro buttons
The next step in case of the integration is to integrate your PagSeguro buttons. Place this extra code into code of every button you want to integrate. Please note the value xxxxxxxxxxxxxxxxx is the notification URL, from the previous step, which you made a note of. Please, replace it in the code:
<input type="hidden" name="notificationURL" value="xxxxxxxxxxxxxxxxx" id="pap_ab78y5t4a">
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.writeCookieToCustomField('pap_ab78y5t4a', '', 'pap_custom');
</script>
The code will automatically append the needed tracking value to your notification script. In the next step we will process it.
Modification of the IPN script
We’ve set the needed tracking value to your notification script URL as a GET parameter. Now, we will process it. Find and edit your notification script. Find the place in the code where ‘notificationCode‘ value is processed. At the same place, use this code:
/* Post Affiliate Pro integration snippet */
file_get_contents('http://URL_TO_PostAffiliatePro/plugins/PagSeguro/pagseguro.php?pap_custom='.$_GET['pap_custom'].'&'.'notificationCode='.$_REQUEST['notificationCode']);
/* /Post Affiliate Pro integration snippet */
This will send necessary data to your PagSeguro plugin in Post Affiliate Pro and handle the notification.
Plugin setup
The final step is to activate and configure your PagSeguro plugin. Login to your Post Affiliate Pro merchant panel and navigate to Plugins section. Activate and then configure the PagSeguro plugin. When configuring, you will need the security token mentioned in step 1.
You are done. Your sales will be tracked now.
Do not forget to integrate your site with the click tracking code to make it all working.

Integrate Instamojo with Post Affiliate Pro seamlessly! Discover how to use India's top-rated payment gateway to boost your eCommerce platform. Get step-by-step guidance on obtaining your API key and Auth Token, enabling tracking, and adding sale tracking code. Trusted by over 1.2 million businesses, Instamojo offers secure, fast payments without setup costs. Start optimizing your payment process today!
PremiumWebCart IPN integration
Discover seamless PremiumWebCart IPN integration with Post Affiliate Pro, enabling efficient transaction tracking and customer detail management. Create custom product links, set up IPN URLs, and enable plugins effortlessly. Optimize your affiliate marketing strategy today with our user-friendly guide and exceptional support. Start your free trial now!
PayPal Express Checkout (IPN and custom field used by other script)
Discover seamless PayPal Express Checkout integration with Post Affiliate Pro, featuring IPN callbacks and custom field handling for efficient affiliate tracking. Enhance your e-commerce operations with detailed setup instructions and maximize your business potential today.
Integrate Segpay with Post Affiliate Pro to effortlessly track recurring payments and refunds. Follow our simple setup guide to enhance your digital payment processing and reduce fraud risk. Transform your business with our trusted, user-friendly affiliate marketing software featuring 24/7 support. Start your free trial today!
WorldPay (IPN used by other script)
Learn to integrate WorldPay with Post Affiliate Pro using IPN and worldpay.php script to generate affiliate commissions seamlessly. Perfect for WorldPay buttons on web pages or shopping carts, including FuturePay recurring commissions. Effortless setup ensures sales trigger affiliate payouts.