PayPal IPN - the basics
From The AgoraCart Project
a Contribution by Bonnie at ScottcrewWebServices.com with minor edits by Mister Ed:
These instructions are basically the same for any of the PayPal Gateways, whether it be PayPal standard, v2, or IPN.
Where to put the the files:
admin_files directory:
PayPalIPN-user_lib.pl
html/forms directory:
PayPalIPN-orderform.html
add_ons directory (only if using as an additional payment method):
PayPalIPN-order_lib.pl
library directory:
PayPalIPN-mgr_lib.pl
PayPalIPN-order_lib.pl
In the manager -> Program Settings -> Main AgoraCart Store Settings
Set the primary gateway to PayPalIPN and hit submit.
Next, click the "Payment Gateway" link and set up the fields in there.
URL to the PayPal Payment Gateway (should not ever need to be changed).
https://www.paypal.com/cgi-bin/webscr
URL to your IPN Notification script. (Currently agora.cgi handles this).
http://www.mydomain.com/path_to_store/agora.cgi
Return URL after succesful payment at Paypal. (Currently agora.cgi handles this).
http://www.mydomain.com/path_to_store/agora.cgi
For PayPalIPN, the PayPal ID (email address) is pulled from the Main AgoraCart Store Settings, webmaster/admin or the 1st, order email field.
Use your store's URL for the following settings in the Payment Gateway area of the manager:
URL to your IPN Notification script
Return URL after succesful payment at Paypal
You do not need to turn on IPN or PDT in your PayPal profile. These settings are all handled by AgoraCart and passed to PayPal.
In your PayPal Profile at PayPal the Website Payment Preferences should be as follows:
Auto Return: Off
Return URL: (Leave Blank)
Payment Data Transfer: Off
Block Non-encrypted Website Payment: Off
PayPal Account Optional: On
