OptimizePress / OptimizeMember (WordPress module)

A plugin and theme for creating landing pages and membership sites, without having to know how to code.

OptimizePress is the new way to create high converting landing pages, sales pages and membership portals.

The integration method integrates PayPal directly.


PayPal module integration

The first step is to modify the paypal module so each payment is integrated with the tracking cookie. Navigate to wp-content/plugins/optimizeMember/includes/classes/ and find the file sc-paypal-button-e.inc.php.. Now open it and find the line (at the end) saying:
return $code;

Insert the following code above that line:

/* Post Affiliate Pro integration snippet */
$code = str_replace('name="notify_url"','name="notify_url" id="pap_ab78y5t4a"',$code);
$code .= '<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
  <script type="text/javascript">'."
  PostAffTracker.writeCookieToCustomField('pap_ab78y5t4a', '', 'pap_custom');
/* /Post Affiliate Pro integration snippet */

Save your work and continue to the second step.


PayPal notification integration

To make PayPal communicate with your Post Affiliate Pro you have to add a special code to the file wp-content/plugins/optimizeMember/includes/classes/paypal-notify.inc.php

Open the file and find this code:


Replace it with this code:

/* Post Affiliate Pro integration snippet */
if(!empty($_GET['optimizemember_paypal_notify'])) {
    /* Post Affiliate Pro integration snippet */
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, "URL_TO_PostAffiliatePro/plugins/PayPal/paypal.php?pap_custom=".$_GET['pap_custom']);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $_POST);
    /* Post Affiliate Pro integration snippet */

/* /Post Affiliate Pro integration snippet */

Save your work and that's it. Your OptimizePress is now integrated.


Activate your PayPal plugin

The final step is to activate your PayPal plugin in your Post Affiliate Pro.

Do not forget to integrate your WordPress with the click tracking code. You can place the click tracking code directly into OptimizePress> Dashboard> Analytics and Tracking into the section Other Tracking Codes.