Skip to content
Magento 2 · 13 min read

How to Set Up PayPal on Magento 2 in 2026: Complete Guide

Setting up PayPal on Magento 2 looks like a five-minute job: open the payment methods configuration, find the PayPal section, paste in your credentials and you’re done. The catch is that this section is the legacy PayPal module in the core, built around the old NVP/SOAP APIs, and in 2026 it is no longer the route I recommend for a new store.

In this guide I explain which PayPal integrations exist today for Magento Open Source 2.4.x, which one to pick if you sell from Italy, how to configure it in sandbox, how to enable “Pay in 3” (Paga in 3 rate) and the mistakes I see most often in the projects I work on.

1. The three ways to get PayPal on Magento 2

Today on Magento 2 you have basically three “official” options, plus the third-party modules from the various gateways (which often include PayPal among their methods).

IntegrationWho builds itTechnologyWhen it makes sense
PayPal built into the core (Express Checkout, Payments Standard, Payflow…)Adobe, Magento_Paypal moduleLegacy NVP/SOAP APIsOnly for existing stores that work fine and that you plan to migrate
PayPal Complete PaymentsPayPal (official extension on the Adobe Marketplace)Current REST APIs and JS SDKThe option I recommend for most Italian stores
Payment ServicesAdobe (extension based on PayPal)REST APIs through Adobe Commerce servicesIf you already use Adobe services or sell from one of the fully supported countries

Core PayPal: why I consider it legacy

The core module lives in Stores → Configuration → Sales → Payment Methods and for Italy it essentially offers PayPal Express Checkout and PayPal Payments Standard, authenticating with an API username, password and signature. It still works, but it relies on the NVP/SOAP APIs that PayPal itself classifies as legacy, and PayPal has told merchants that support for Website Payments Standard and Express Checkout ends after December 31, 2025, urging them to move to Complete Payments integrations.

In practice: if you have a store that uses the core Express Checkout and collects payments without trouble, there’s no need to panic, but put the migration on your calendar. If you’re opening a store now, don’t start from there: you’d be building on an integration that is being phased out, and you wouldn’t have access to the newest methods (card fields embedded in the page, Apple Pay, Google Pay).

Payment Services: watch the country

Payment Services is Adobe’s extension built on top of PayPal Complete Payments and it is also available for Magento Open Source. What you need to know is that full support (Advanced onboarding, with card fields, Apple Pay, Google Pay and so on) is only active in five countries: United States, Canada, United Kingdom, Australia and France. Other countries, Italy included, get the Standard onboarding, a limited subset covering only the Express Checkout buttons. For an Italian merchant it is therefore a partial solution today.

PayPal Complete Payments: the recommended choice

The PayPal Complete Payments extension is published by PayPal on the Adobe Commerce Marketplace, it is free (MIT license), compatible with Magento Open Source 2.4, and it’s the one PayPal points to in its upgrade guide for Adobe Commerce. It uses the current REST APIs and puts PayPal buttons, Pay Later, credit and debit cards, Apple Pay, a vault for saved payment methods and 3D Secure in a single module. The rest of this guide is based on it.

2. Before installing: accounts and sandbox

  • PayPal Business account in the company’s name, with the country set to Italy and the euro as main currency.
  • Staging environment of the store, separate from production: payment tests are not run on the live site.
  • Sandbox accounts on developer.paypal.com: a test business (the “store”) and a test personal account (the “customer”). If you’ve never created them, you’ll find the steps in my article on how to create a PayPal sandbox account.
  • Access keys for repo.magento.com in the auth.json file, if you install the extension via Composer from the Marketplace.

3. Installing the extension

Add the extension to your Marketplace account (it’s free) from the official page and run composer require with the package name you’ll find in the installation section of that page. Then the procedure is the standard one for any Magento 2 module:

bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy it_IT en_US
bin/magento cache:flush

If the store still uses the core PayPal Express Checkout, don’t enable both methods together on the same store view: you’d get two PayPal buttons at checkout and behavior that is hard to diagnose. On staging, disable the old method first, then configure the new one.

4. Configuration and onboarding

Here too the configuration is in Stores → Configuration → Sales → Payment Methods, in the section dedicated to PayPal Complete Payments. The typical steps are:

  1. Select the Sandbox environment.
  2. Connect the account: either with the guided onboarding (log in with the sandbox business account) or by manually entering the Client ID and Secret of a REST app created in Apps & Credentials on the PayPal developer dashboard.
  3. Enable the methods you need: PayPal buttons, Pay Later, cards, Apple Pay.
  4. Choose the payment action: authorize and capture (immediate payment) is the simplest choice for most stores; authorization only makes sense if you capture at shipping time, but remember that authorizations expire.
  5. Set where to show the quick buttons (product page, minicart, cart) and the Pay Later messages.
  6. Save and flush the cache.

Sandbox and live credentials are completely separate: when you go to production, connect again with the real business account; flipping the environment switch isn’t enough.

5. Pay Later in Italy: “Pay in 3” (Paga in 3 rate)

In Italy PayPal’s Pay Later is called Paga in 3 rate (Pay in 3): the customer splits the purchase into three monthly interest-free payments, for amounts from 20 to 3,000 euros. There are no extra costs for the merchant beyond the normal PayPal fee, and you receive the full amount upfront. The requirements stated by PayPal:

  • merchant based in Italy with a site aimed at the Italian market;
  • transactions in euros;
  • integration for one-time payments (recurring integrations and reference transactions are not eligible);
  • promotional messages must be shown with the official PayPal code, without altering their text.

My advice is to show the Pay Later message at least on the product page and in the cart: that’s where the customer decides, not at the last checkout step. Keep in mind that availability also depends on your industry and account status, and PayPal decides whether each individual customer is eligible.

6. How to test before going live

  • Order with a PayPal account (sandbox personal account) from checkout and from the quick button on the product page.
  • Order with a test card, including a 3D Secure case.
  • Order with a discount code and shipping costs, to check that the totals match.
  • Full and partial refund from an online credit memo in Magento.
  • Check that the order moves to the correct status, that the confirmation email goes out (if you’ve customized them, see my guide on transactional emails in Magento 2) and that the transaction shows up in the PayPal sandbox dashboard.

7. Common mistakes

  • Sandbox credentials in production (or vice versa): the button doesn’t appear or the payment fails with authentication errors.
  • Totals that don’t add up: rounding on discounts, taxes or custom shipping costs makes the order get rejected because the sum of the lines doesn’t match the total. It often happens with third-party modules that add items to the cart.
  • Custom checkouts or third-party one page checkouts: the buttons must be rendered in the right place, and sometimes you need a compatibility module.
  • Content Security Policy: on Magento 2.4.7 and later the CSP is stricter at checkout; if the buttons don’t load, check the browser console for blocked PayPal domains.
  • Apple Pay without domain verification: Apple rejects payments from unregistered domains. The association file must be published in /.well-known/ and every domain must be registered with PayPal.
  • Cache and JS minification: after installation, if the button doesn’t appear, try excluding the PayPal script from bundling and flush the cache and static content.

Checklist

  • Italian PayPal Business account, EUR currency
  • PayPal Complete Payments extension installed on staging
  • Old core Express Checkout disabled
  • Full sandbox tests: PayPal, card, discounts, refunds
  • Pay in 3 enabled, with messages on the product page and in the cart
  • Reconnection with the live account and a first real order as a check

PayPal remains one of the methods Italian customers ask for most, but it shouldn’t be the only one: I cover this more generally in the article on my experience with payment methods on e-commerce sites. If you use WooCommerce there’s a dedicated guide to PayPal on WooCommerce, while if you’re still on Magento 1, read what still holds for PayPal on Magento 1.

If you need to migrate from the old Express Checkout, or the configuration doesn’t behave as expected on your checkout, write to me and we’ll look at it together.

You might also like