PayPal (IPN used by other script)
Would you like to improve your affiliate software even more? Check out the PayPal (IPN used by other script) integration for Post Affiliate Pro.
Integrate PayPal using IPN and custom fields with Post Affiliate Pro to track affiliate sales seamlessly, even when custom fields are used by another script.
The faster, safer way to send money, make an online payment, receive money or set up a merchant account.
PayPal integrates using IPN callback even if the callback and custom field is used by another system (e.g. shopping cart). Because of this you will have to attach the cookie value to the original notification URL and later to re-send it to your Post Affiliate Pro.
The first step is to make sure that each paypal button has the notify_url field. You have to add this code to the notify_url field, in every button:
id="pap_ab78y5t4a"
So the field looks like this:
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">PostAffTracker.setAccountId('Account_ID');
PostAffTracker.writeCookieToCustomField('pap_ab78y5t4a', '', 'pap_custom');
</script>
This way we are sending the tracking cookie value to the processing script so we could use the value when sale is processed.
Now the IPN callback is pointed to your script. This callback has to be forwarded also to Post Affiliate Pro paypal.php script https://URL_TO_PostAffiliatePro/plugins/PayPal/paypal.php.
In case your PayPal processing script is PHP, you can use the following code to accomplish that. You can place it at the beginning of your processing file or beginning of the processing function.
/* Post Affiliate Pro integration snippet */
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://URL_TO_PostAffiliatePro/plugins/PayPal/paypal.php?pap_custom=".$_GET['pap_custom']);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $_POST);
curl_exec($ch);
/* /Post Affiliate Pro integration snippet */
This is it. Your PayPal is now integrated.
This is all that is required. Now whenever there’s a sale, PayPal will use its IPN function to call your script and from there, the IPN data will be redirected to our sale tracking script, so the system will generate a commission for appropriate affiliate.
NOTE: If you have more buttons at one page, you should only insert the id values into each button. The script tag should only be inserted once per page. It can be anywhere in body of the page.
It allows you to integrate PayPal with Post Affiliate Pro using IPN callbacks and custom fields, enabling accurate affiliate tracking even if custom fields are used by other scripts.
Add the notify_url field to your PayPal button and use the provided script to send the tracking cookie value to the processing script for sale tracking.
Modify your IPN processing script to forward the callback to the Post Affiliate Pro paypal.php script, ensuring affiliate commissions are tracked properly.
Yes, insert the ID values into each button, but only include the script tag once per page anywhere in the body.
Lucia is a talented content editor who ensures the seamless publication of content across multiple platforms.
Streamline your affiliate tracking by integrating PayPal IPN and custom fields with Post Affiliate Pro. Enjoy fast setup, accurate tracking, and increased commissions.
Would you like to improve your affiliate software even more? Check out the PayPal (IPN used by other script) integration for Post Affiliate Pro.
Learn how to seamlessly integrate PayPal with Post Affiliate Pro to track sales, generate affiliate commissions, and manage transactions efficiently using IPN c...
Would you like to improve your affiliate software even more? Check out the PayPal Express Checkout (IPN used by other script) for Post Affiliate Pro.