aMember with PayPal integration
Accept membership payments, manage profiles, deliver digital content, integrate with your blog, CMS, send newsletters, run affiliate program with this software.
This integration method is for aMember versions lower than v4.
This integration method integrates aMember recurring transactions (using PayPal) with Post Affiliate Pro.
1. Setting up aMember interfase
First of all, you need to add a new field in aMember signup form.
Navigate to Utilities> Add fields. Here you can add any new fields, so click “Add field” button. Set name and title to “custom“, choose “SQL” as a field type and set SQL field type to “String VARCHAR(255)”.
Next settings you need to set: Display type to “Text“, set size of it to 40 and finally set all fields for Visibility of the field to don’t display.
Save your setting. New field should be created for a user, also in a database, so you can use it for any custom details. We will use it for sending VisitorId to PayPal payment plugin in aMember.
2. Modifying signup form files
Navigate to templates/ directory and open file signup.html for edit. Locate the line with code “</form>“. Insert this code right before it:
<input type="hidden" name="custom" value="default1" id="f_custom">
Now, insert this code after the line with “</form>“:
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.writeCookieToCustomField('f_custom');
</script>
This code will add VisitorID from cookies, and also from Flash cookies if 1st party cookies were not created because of privacy level, to custom field we created in aMember. This value will be added to the database you can use it anytime later.
3. Modifying the PayPal plugin
Navigate to plugins/payment/paypal_r/ and open the file paypal_r.inc.php for edit. Insert this code right after the line:
function paypal_validate_ipn($vars){
/* PAP4 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 PAP4 integration */
Now find this line (2x times): ‘custom’ => ”,
and change it to this code:
(isset($u['custom']) && ($u['custom'] != ""))?$u['custom']:""
Note that your cookies have to be available at the domain where aMember is installed at in order to track sales. Otherwise you will need to add the click tracking code to the signup.html file and point the affiliate link directly to the signup.php file.
Discover seamless membership management with aMember integration for Post Affiliate Pro. Effortlessly handle payments, profiles, and digital content while running an affiliate program. Enjoy PayPal integration, signup form synchronization, and a trusted reputation, all with a free trial. Explore how it can boost your business today!
Integrate PayPal seamlessly with Post Affiliate Pro using IPN callback to track sales and generate commissions for affiliates. Follow our simple steps to set up the PayPal IPN handling plugin and ensure your transactions are efficiently managed. Discover the benefits of streamlined affiliate management with Post Affiliate Pro today!
Discover seamless integration with aMember v4 and Post Affiliate Pro to manage membership payments, profiles, digital content, and affiliate programs effortlessly. Benefit from PayPal integration and enhance your affiliate software with trusted solutions. Start your free trial today and elevate your business.
Discover seamless PayPro integration with Post Affiliate Pro, the perfect eCommerce platform for selling Software, SaaS, and Cloud Services. Easily track sales by adding tracking code to your thank you page, ensuring secure transactions via HTTPS. Explore more integrations and start your free trial today!
Explore seamless integrations with Post Affiliate Pro to enhance your affiliate marketing strategies. Discover solutions for e-commerce, email marketing, payments, and more, with easy integrations for platforms like 1&1 E-Shop, 2Checkout, Abicart, and many others. Optimize your affiliate network with these powerful tools.