–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

Example:
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 and custom field used by other script)

PayPal Express Checkout (IPN and custom field 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 and customfield is used by other system (e.g. shopping cart). Because of this youwill have to choose separator which will separate our and 3rd partycookie value. We will use || in this example.

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

Choose separator

Choose separator which will separateour and 3rd party cookie value. We will use || in this example. Youhave to configure Paypal plugin to use this separator. Go to Plugins > Paypal > Configure > Custom Value Separator.

Paypal button

Now add the following code into EVERY PayPal button form. Please make sure that the custom field you have in your button has id=”pap_ab78y5t4a”:

<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.setAppendValuesToField('||');
PostAffTracker.writeCookieToCustomField('pap_ab78y5t4a');
</script>

This will ensure that referrer will be added to the custom field after the specified separator.

Integration with your IPN processing script – part 1

Now the IPN callback is pointed to your script. This callback has to beforwarded also to PAP paypal.php script, which url is http://www.yoursite.com/affiliate/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 */

Integration with your IPN processing script – part 2

The custom parameter is in format 3rdPartySystemValue||PapValue. In order for 3rd party system to work correctly you need to parse 3rdPartySystemValue from the custom parameter. To do this add followingcode right after PayPal IPN verification:

<?php
$separator = '||';
    if ($_POST['custom'] != '') {
      $explodedCustomValue = explode($separator, $_POST['custom'], 2);
          if (count($explodedCustomValue) == 2) {
            $_REQUEST['custom'] = $_POST['custom'] = $explodedCustomValue[0];
      }
    }
?>

This is all that is required. Now whenever there’s sale, PayPal Express Checkout willuse its IPN function to call our sale tracking script, and system willgenerate commission for the affiliate.

Back to Integrations Create account for FREE
Would you like to improve your affiliate software even more? Check out the aMember v4 integration for Post Affiliate Pro.

aMember v4

Affiliate marketing allows for passive income. Success requires finding a niche and the right program. Average earnings are around $51,700 per year.

Would you like to improve your affiliate software even more? Check out the CheddarGetter for Post Affiliate Pro.

CheddarGetter

Learn how to integrate Post Affiliate Pro with BigCommerce and 1ShoppingCart for sale tracking. Set up tracking code and API token.

Would you like to improve your affiliate software even more? Check out the Foxy Cart integration for Post Affiliate Pro.

Foxy Cart

This piece of text provides instructions for integrating different tracking functionalities with the Foxy Cart e-commerce solution.

Would you like to improve your affiliate software even more? Check out the Virtue Mart ​integration for Post Affiliate Pro.

Virtue Mart

The given text provides information about the integration methods for offline and online payments for Virtue Mart version 3 using Post Affiliate Pro affiliate software. It also highlights the availability of various integrations for the software and provides contact details for sales and support.

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