–Hidden comment

Use attributes in format region_from and region_to= to change the languages showing in language switcher.
Available regions are:
europe_from europe_to
asia_from asia_to
mideast_from mideast_to
america_from america_to

europe_from=0 europe_to=22 will put all languages (ordered in language switcher settings) from 1 to 21 to Europe region:
asia_from=22 asia_to=25 will put all languages from 23 to 24 (so only 2) into Asia region.

  • Integrations
  • PayPal Express Checkout (IPN used by other script)

PayPal Express Checkout (IPN used by other script)

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).

Note! This is description of integration with PayPal Express Checkout if you use PayPal buttons on your web pages. If you use PayPal as a processing system in your shopping cart, use the method for integrating with shopping cart,not these steps.

PayPal button

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">

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">
 <!-- End PayPal Button -->

Integration 2

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);
/* 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.

Back to Integrations Create account for FREE

Our website uses cookies. By continuing we assume your permission to deploy cookies as detailed in our privacy and cookies policy.


Schedule a one-on-one call and discover how Post Affiliate Pro can benefit your business.

We’re available on multiple dates

Schedule a call