How to set up PayPal in Magento background? This way to organize the simple to share with you.
1, System->config-paypel
1.1 Merchant Country set up the country
1.2 Email associated with PayPal Setup account
1.3 Select a PayPal solution
1.4 Choose website Payments standard–paypal processes all of the your orders and you get paid, the front hook, the other hooks are removed.
1.5 In the following column will website payment standard setting point open:
1.5.1 Payment Action–>sale
1.5.2 Payment Applicable From->all countries
1.5.3 Sandbox Mode->no
1.5.4 Transfer Cart Line Items–yes
1.5.5 Debug Mode–>no
2 Background settings OK, click OK, then refresh the cache, you can pay.
============================================================
Note the problem that may occur: (the problem that is easy to appear when testing)
Because we like to fill in some of the addresses in the test, there will be an error during the test: payment cannot be processed. Because the shipping address provided by the Merchant is invalid, and the merchant requires that your order must be delivered to that address, please contact the merchant.
WORKAROUND: If you are using Web Payment standard then you find paypal/mode/standard.php, which has ' address_override ' = 1, this line changed to ' address_override ' = 0, on it, roughly 158 lines.
Set two, app/code/core/mage/paypal/model/api/standard.php 237 lines
$request [' address_override '] = 1; Set this value to 0, fill in the fake address can also jump past!
Magento Background PayPal settings