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 Express Checkout with Post Affiliate Pro using IPN callbacks to track sales and generate commissions. Add specific code to PayPal buttons and forward IPN callbacks to PAP scripts without affecting existing scripts.
The faster, safer way to send money, make an online payment, receive money or set up a merchant account.
PayPal Express Checkout integrates using IPN callback even if the callback is used by other system (e.g. shopping cart).
Now add the following code into EVERY PayPal button form:
<input type="hidden" name="custom" value="" id="pap_dx8vc2s5">
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
</script>
This will ensure that referrer will be stored to the custom field.
Example of updated PayPal form:
<!-- Begin PayPal Button -->
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="paypalemail@yoursite.com">
<input type="hidden" name="undefined_quantity" value="1">
<input type="hidden" name="item_number" value="Product Name">
<input type="hidden" name="amount" value="19.95">
<input type="hidden" name="image_url" value="https://yoursite.com/images/paypaltitle.gif">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="http://www.yoursite.com/paypalthanks.html">
<input type="hidden" name="cancel_return" value="http://www.yoursite.com">
<input type="hidden" name="custom" value="" id="pap_dx8vc2s5">
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript"></script>
<input type="image" src="http://images.paypal.com/images/x-click-but5.gif" border="0" name="submit">
</form>
<!-- End PayPal Button -->
Now the IPN callback is pointed to your script. This callback has to be forwarded also to PAP paypal.php script, which url is https://URL_TO_PostAffiliatePro/plugins/PayPal/paypal.php .
In case, your paypal processing script is in PHP, you can use following code to accomplish that. You can place it at the beginning of your processing file.
/* PAP integration */
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://URL_TO_PostAffiliatePro/plugins/PayPal/paypal.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $_POST);
curl_exec($ch);
/* end of PAP integration */
This will ensure that whole IPN callback will be forwarded without affecting your original script
This is all that is required. Now whenever there’s sale, PayPal Express Checkout will use its IPN function to call our sale tracking script, and system will generate commission for the affiliate.
This integration allows you to connect PayPal Express Checkout with Post Affiliate Pro using IPN callbacks, enabling seamless tracking of sales and automatic commission generation for affiliates.
Simply add the provided code to your PayPal button form and forward the IPN callback to the Post Affiliate Pro script. This ensures all PayPal transactions are properly tracked and commissions are assigned to affiliates.
Yes, this method works even if your PayPal IPN is used by another system, such as a shopping cart. The IPN callback can be forwarded to both your script and Post Affiliate Pro for accurate sales tracking.
Basic coding knowledge is helpful, especially for forwarding the IPN callback using PHP or similar scripts, but the provided examples make the process straightforward.
Lucia is a talented content editor who ensures the seamless publication of content across multiple platforms.
Experience seamless integration with PayPal Express Checkout and empower your affiliate marketing with automated sales tracking and commission generation.
Would you like to improve your affiliate software even more? Check out the PayPal (IPN used by other script) integration for Post Affiliate Pro.
Would you like to improve your affiliate software even more? Check out the PayPal Express Checkout (IPN & custom field) 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...