Home Integration Methods aMember v4

aMember v4

aMember version 4 uses a new file structure and new code, so here is a new integration method.
Getting cookie value
First, locate file:

In this file, we will add a special code to the form, so visitor ID is read and sent to processing file. Change this line:
echo $form->render($renderer);
to this code:
Save your work and based on what do you want to integrate, continue in proper step.
Integration with PayPal within aMember - step 1
Now edit this file:
Find function process() and within this function, find line:
Inset this code just below the mentioned line:
With this line, we've added a new parameter called 'custom' to array which will be used to create a request sent to PayPal. Thanks to this, we are sending visitor ID so we can use it later to determine who was the referring affiliate.
Save your work and proceed to step 3.
Integration with PayPal within aMember - step 2
The last step is to handle the IPN notification sent from PayPal and to resend it to your Post Affiliate Pro. Navigate to Configuration> Setup/Configuration> PayPal in your aMember admin panel and activate 'Resend Postback'. If it is already active, just add a new line with this URL:
Save your work and that's it. Do not forget to activate your PayPal IPN handling plugin in Post Affiliate Pro to make it all working.
PayPal and use of Cart feature in aMember
In case you are using aMember Cart feature, you have to do the previous steps and additionally, you have to modify this file application/cart/views/cart/choose-paysys.phtml - find this line:
<input type="hidden" name="a" value="choose-paysys" />
and add the following code below the line:
Save your work and you are done.
Integration of aMember signup
If you want new users to become affiliates automatically, it is possible to synchronize aMember signup form with Post Affiliate Pro. Thanks to the built-in plugin, you can easily set it up in aMember admin back-end.

using payment methods other that paypal

2 years ago joe hayhow
Is the same method used if I'm not using paypal? If I'm using Stripe what should the code be and what files should be edited?

Using payment methods other than paypal

2 years ago Martin
Using payment methods other than paypa needs a different approach for integration. Please contact us directly.