eShop is an accessible shopping cart plugin for WordPress, packed with various features.

The integration method is used to integrate PayPal in eShop with your Post Affiliate Pro.

1.

Integration with PayPal (step 1)

Login to your FTP, navigate to wp-content/plugins/eshop/paypal/ and edit file eshop-paypal.class.php

Find line

return $echo;
and add this code above it:

/* Post Affiliate Pro integration snippet */
  $echo = str_replace("name="notify_url"","name="notify_url" id="pap_ab78y5t4a"",$echo);
  $echo .= '<script type="text/javascript">
	document.write(unescape("%3Cscript id=%27pap_x2s6df8d%27 src=%27" + (("https:" == document.location.protocol) ? "https://" : "http://") + "URL_TO_PostAffiliatePro/scripts/trackjs.js%27 type=%27text/javascript%27%3E%3C/script%3E"));
</script>
<script type="text/javascript">'."
PostAffTracker.setAppendValuesToField('&pap_custom=');
PostAffTracker.writeCookieToCustomField('pap_ab78y5t4a');
</script>";
/* /Post Affiliate Pro integration snippet */

To make it all working, you have to enable the PayPal plugin in your Post Affiliate Pro merchant panel.

2.

Integration with PayPal (step 2)

The next and the last step is to find line
_function validate_ipn() {_
in the same file. Paste this code right below it:

/* Post Affiliate Pro integration snippet */
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,
"http://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 */

Do not forget to integrate the click tracking code to your Word Press.