–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 Paymate Express integration for Post Affiliate Pro.

Paymate Express

The text provides instructions on integrating Paymate Express, a payment service for online transactions, with PostAffiliate Pro. It includes steps for choosing a custom value separator, updating Paymate button code, adding integration code to Paymate button form, and integrating with processing scripts. The text also offers additional resources on integrating with other payment services.

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

aMember with PayPal

This article is discussing how to integrate aMember with PayPal using Post Affiliate Pro. There are three steps involved in the process which include setting up the aMember interface, modifying the signup form files, and modifying the PayPal plugin. The article provides detailed instructions for each step. The integration method discussed is for aMember versions lower than v4 and involves adding a custom field to the signup form to send VisitorID to PayPal payment plugin in aMember. The article also suggests adding the click tracking code to the signup.html file and pointing the affiliate link directly to the signup.php file.

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

aMember v4

The article discusses the integration of aMember v4 software with PayPal and Post Affiliate Pro for accepting membership payments, managing profiles, delivering digital content, and running an affiliate program. The process includes getting the cookie value, adding a custom parameter to the PayPal request, handling IPN notifications, and syncing aMember signup with Post Affiliate Pro. The necessary files and code changes are described in detail with step-by-step instructions.

Would you like to improve your affiliate software even more? Check out the WP eStore (WordPress module) for Post Affiliate Pro.

WP eStore (WordPress module)

Would you like to improve your affiliate software even more? Check out the WP eStore (WordPress module) for Post Affiliate Pro.

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