|
PayPal IPN
|
Previous Top Next |
| 1. | Open the Administration Panel, select Store Configuration, and then Payment.
|
|
|
| 2. | Click on the drop-down Payment Gateway box, select PayPal and click Add.
|
|
|
| 3. | Enter the Merchant ID for your PayPal account (e-mail address). PayPal Instant Payments require a verified business account. The PayPal e-mail address must also be the primary e-mail address for the PayPal account.
|
| 4. | The SSL URL to logo image is for the logo that is displayed within the PayPal secure payment forms and receipts. If you don't have access to SSL, leave this blank for the PayPal logo to appear at the upper left of the PayPal pages. You may enter the URL to a logo image that is not SSL, but an annoying message will appear between each PayPal page to alert your customer that there are secure and non-secure files being loaded.
|
|
|
| 5. | Instant Payment Notification (IPN) must be turned on within your PayPal.com account settings for orders to be completed and notices to be sent by AShop after payment is received! Login to your PayPal account and select Profile, then select Instant Payment Notification Preferences. Check the box to activate IPN and enter the URL to your order.php script. For example; http://www.your_domain/ashop/order.php
|
| · | Collecting the customer's phone number when using the PayPal payment option is possible through a setting in the PayPal account. After logging in at paypal.com, click profile, click website payment preferences, select "contact telephone on (optional field)" and finally click save.
|
| · | Set the language in the PayPal payment page by adding an extra field parameter in the admin/gateways/paypal.gw. Add the lc parameter as a hidden field in the section $gw_extrafields. ("lc" is abbreviation for locale.)
|
| Example, to set American English language, add the following.
|
| <input type=\"hidden\" name=\"lc\" value=\"US\">";
|
| Here are a few lc values supported by PayPal:
|
| DE = German
|
| ES = Spanish
|
| FR = French
|
| IT = Italian
|
| JP = Japanese
|
| US = American English
|
| · | The locale in the shipping address sets the language in the PayPal payment page. For example, if you sell shippable products and the customer selects Spain for the country field in the shipping information page, the language (lc value = ES) parameter will automatically be sent to PayPal to select Spanish for the payment page. This value overrides the value that is set in the paypal.gw file. If you want Spanish language in the PayPal payment page for downloadable products you will need to add an extra hidden field named: "lc" with the value: "ES" in the gateways/paypal.gw file. To override this feature and force the language to always be the same, remove the "lc" value for the $gw_country variable in the paypal.gw file. Then, the added hidden field (lc value = ES) will always will set the lc parameter to "ES" regardless of the shipping destination.
|
| Find this line of code: $gw_country = "lc";
|
| Remove the lc setting: $gw_country = "";
|
| · | Curl with SSL - PayPal and some other payment gateways require Curl with SSL to be available. There will be an error during the payment process if Curl with SSL fails. See also: PayPal Curl Error
|