Latest news

How To Set Up PayPal Express Checkout in Magento 2? (15 minutes)

No comments


Nowadays, PayPal is considered as the most preferred online payments around the world since its convenience and safety. In Magento 2, your store can allow the customers to make payments through debit, credit cards and PayPal as well.

paypal express checkout in magentoThere are an array of PayPal payment methods; however, in this Magento 2 tutorial, we will give you a detailed instruction of how to set up the PayPal Express Checkout. This payment method might contribute to enhance your sales since it allows the buyers to pay by both credit card and from the security of their PayPal accounts.



  • Step 1: Set up your merchant account on PayPal website

First, go to to log in to your account.

paypal express checkout setup magento 2Second, go to Service Settings => Hosted Checkout Pages => Set Up; and then, set AVS and CSC to No, and Enable Secure Token to Yes => Save the settings.

Third, set up an additional user.

Fourth, go to Required PayPal Setting, set email address. API Authentication Methods, Sandbox Mode and API uses proxy.

Fifth, set Enable this Solution to Yes.

Save all configs to complete and move to the next step.


  • Step 2: Open PayPal Checkout Configuration in Magento back-end

Go to Admin panel, navigate to STORES, click on Configuration (under Settings)

(Admin panel => STORES => Configuration)

On the left menu, expand the SALES section and choose Payment methods in the dropdown.

magento 2 paypal express checkout

Next, choose the country where your business is currently located.

Then, click on Configure in PayPal Express Checkout to start configuration.

configure paypal express magento 2


  • Step 3: Fill in Required Settings

First, enter the email address that was specified in your PayPal merchant account.

Second, set API Authentication Methods to API Signature/ API Certificate.

Third, enter your API Username, API Password and API Signature. The fastest way is to click on get Credentials from PayPal to connect with your PayPal account and get these information.

Fourth, in case you use credentials from Sandbox, set Sandbox mode to Yes.

Fifth, if you utilize a proxy server to connect your Magento store with PayPal then set APU Uses Proxy to Yes. After that, enter Proxy Host and Port.

Sixth, choose Yes for Enable this Solution.

Seventh, if your store allows PayPal Credit for your customers, set Enable PayPal Credit to Yes.

set up paypal checkout magento 2


  • Step 4: Fill in Basic Settings

First, set title for this payment method (you can leave it as default).

Second, set order for PayPal Payment Standard besides other payment methods. (For example, you set order to 0, this method will appear on the first place).

Third, choose a Payment Action among Authorization/ Sale/ Order. To fully understand about the differences among these 3 types, please click here to read

PayPal policies.magento 2 paypal checkout configuration

If you choose Order for Payment Action, it will appear 3 more fields to complete. Then, you have to enter number of days that the primary authorization/ order is valid and the maximum number of authorization for a single order.

paypal express checkout magento 2


  • Step 5: Fill in Advanced Settings

Moving to the Advanced Settings. First, you must set Display on Shopping Cart to Yes.

Second, choose all/ several countries where this payment method is accepted.

Third, set Debug Mode to “Yes” to write communications with the payment system into the log
file. The log file for PayPal Payments Advanced is payments_payflow_advanced.log.

Fourth, set Enable SSL Verification to Yes to enable host authenticity verification.

Fifth, set Transfer Cart Line Items to Yes to show order summary by line item from PayPal website.

Sixth, if you want to display up to 10 shipping option in the order summany, set Transfer Shipping Options to Yes.

Seventh, set Shortcut Buttons Flavor to Dynamic – show an image that can be updated from PayPal or Static – show a fixed image.

Eighth, set Enable PayPal Guest Checkout to Yes in order to allow customers make payment with this PayPal even when they don’t have an PayPal account.

Ninth, set Require Customer’s Billing Address if you find it necessary and vice versa.

Finally, set Billing Agreement Signup to Auto/ Ask Customer/ Never to determine whether the user can sign a billing agreement with your store in PayPal when there is no active billing agreement available in the customer account.

magento paypal express checkout

Save all config to complete.

We have shown you how to set up PayPal Express Checkout in Magento 2. If you have any problems when following this tutorial, be free to ask us by leaving a comment below. See you in the next tutorials!

See More Our Magento “How To” Series:

How To Config Sitemap in Magento 2?

How To Create A Credit Memo In Magento 2?

How To Configure Payment Methods In Magento 2? – Part 1

How To Configure Payment Methods In Magento 2? – Part 2

How To Get SKUs From Orders in Magento?

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
April LeeHow To Set Up PayPal Express Checkout in Magento 2? (15 minutes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *