Integrate Magento 2.X with Paypal

Appy Pie Connect allows you to automate multiple workflows between Magento 2.X and Paypal

  • No code
  • No Credit Card
  • Lightning Fast Setup
20 Million man hours saved

Award Winning App Integration Platform

About Magento 2.X

Magento 2.x is an open-source e-commerce platform written in PHP. It is one of the most popular e-feature-rich platforms that you to manage your eCommerce store without any hassle.

About Paypal

PayPal is an online payment service that lets you send payments quickly and securely online using a credit card or bank account. It is the quicker, safer way to pay and get paid online, in stores and more.

Paypal Integrations
Paypal Alternatives

Looking for the Paypal Alternatives? Here is the list of top Paypal Alternatives

  • Stripe Integration Stripe
  • Braintree Integration Braintree
  • PayPro Integration PayPro
  • Thryv Integration Thryv

Best Magento 2.X and Paypal Integrations

  • Magento 2.X Integration Paypal Integration

    Magento 2.X + Paypal

    Create Draft Invoice to Paypal from New Sales Order Shipment in Magento 2.X Read More...
    Close
    When this happens...
    Magento 2.X Integration New Sales Order Shipment
     
    Then do this...
    Paypal Integration Create Draft Invoice
  • Magento 2.X Integration Paypal Integration

    Magento 2.X + Paypal

    Send invoice in Paypal when New Sales Order Shipment is created in Magento 2.X Read More...
    Close
    When this happens...
    Magento 2.X Integration New Sales Order Shipment
     
    Then do this...
    Paypal Integration Send invoice
  • Magento 2.X Integration Paypal Integration

    Magento 2.X + Paypal

    Add tracking information in Paypal when New Sales Order Shipment is created in Magento 2.X Read More...
    Close
    When this happens...
    Magento 2.X Integration New Sales Order Shipment
     
    Then do this...
    Paypal Integration Add tracking information
  • Magento 2.X Integration Paypal Integration

    Magento 2.X + Paypal

    Create Order to Paypal from New Sales Order Shipment in Magento 2.X Read More...
    Close
    When this happens...
    Magento 2.X Integration New Sales Order Shipment
     
    Then do this...
    Paypal Integration Create Order
  • Magento 2.X Integration Paypal Integration

    Magento 2.X + Paypal

    Create Draft Invoice to Paypal from New Product in Magento 2.X Read More...
    Close
    When this happens...
    Magento 2.X Integration New Product
     
    Then do this...
    Paypal Integration Create Draft Invoice
  • Magento 2.X Integration {{item.actionAppName}} Integration

    Magento 2.X + {{item.actionAppName}}

    {{item.message}} Read More...
    Close
    When this happens...
    {{item.triggerAppName}} Integration {{item.triggerTitle}}
     
    Then do this...
    {{item.actionAppName}} Integration {{item.actionTitle}}
Connect Magento 2.X + Paypal in easier way

It's easy to connect Magento 2.X + Paypal without coding knowledge. Start creating your own business flow.

    Triggers
  • New Customer

    Triggers when Magento gets a new customer.

  • New Order

    Triggers when a new order is created (with line item support).

  • New Product

    Triggers when a new product is created in Magento.

  • New Sales Order Credit Memo

    Triggers when a new sales order creditmemo is created.

  • New Sales Order Invoice

    Triggers when a new sales order invoice is created (with line item support).

  • New Sales Order Shipment

    Triggers when Magento gets a new sales order shipment (with line item support).

  • Updated Customer

    Triggers when Magento gets a updated customer.

  • Refunded Sale

    Only refunded payments trigger this.

  • Successful Sale

    Only successfully payment data trigger this.

    Actions
  • Create Category

    Create a new category

  • Create Customer

    Create a new customer

  • Create Order

    Create a new catalog order

  • Create Product

    Create a new catalog product

  • Create Sales Order Comment

    Create a new sales order comment

  • Create Sales Order Invoice

    Create a new sales order invoice

  • Create/Update Product

    Create/update a new catalog product

  • Update Product

    Update a catalog product

  • Add tracking information

    Add tracking information with or without tracking numbers

  • Create Draft Invoice

    Creates a draft invoice.

  • Create Order

    Creates an order

  • Send invoice

    Sends or schedules an invoice, by ID, to be sent to a customer.

Compliance Certifications and Memberships

Highly rated by thousands of customers all over the world

We’ve been featured on

featuredon
Page reviewed by: Abhinav Girdhar  | Last Updated on July 01, 2022 5:55 am

How Magento 2.X & Paypal Integrations Work

  1. Step 1: Choose Magento 2.X as a trigger app and authenticate it on Appy Pie Connect.

    (30 seconds)

  2. Step 2: Select "Trigger" from the Triggers List.

    (10 seconds)

  3. Step 3: Pick Paypal as an action app and authenticate.

    (30 seconds)

  4. Step 4: Select a resulting action from the Action List.

    (10 seconds)

  5. Step 5: Select the data you want to send from Magento 2.X to Paypal.

    (2 minutes)

  6. Your Connect is ready! It's time to start enjoying the benefits of workflow automation.

Integration of Magento 2.X and Paypal

Today in the Internet market, especially in e-commerce, you can see a lot of different payment systems. For example, PayPal is one of them. But what is it?PayPal is an American company which was launched in 1998 by Peter Thiel, Max Levchin, Luke Nosek and Ken Howery. It is a global payments system that supports online money transfers and serves as an electronic alternative to traditional paper methods like checks or money orders.One of the most popular e-commerce platforms, Magento 2, has recently released its version 2.X. However, there is no information about integration of this e-commerce platform with PayPal. So, I decided to make an article about it.Magento is an open source e-commerce software platform written in PHP and distributed under the GNU General Public License (GPL. By using Magento you can easily design, set up and manage a complete shopping cart spution for your business. It provides you with a very flexible way to build products, categories, content and contrp other aspects of your store's appearance and behaviour.Magento 2 is a modern platform for creating e-commerce sites. It combines the flexibility of open source technpogy with the all-in-one capabilities of proprietary software. This means they can create sites quickly and easily without the need for additional third party extensions. Magento 2 also offers merchants competitive advantage over their competitors because it contains more features and functionality than other e-commerce sputions.First of all we need to install Magento 2.X on our server.

  • Download the latest Magento 2.x version from the official site. http://www.magentocommerce.com/download
  • Unpack it and upload all files to the web server via FTP or SSH
  • Create database and import sample data
  • Open config.php file and change $dbhostname into your database hostname
  • Go to admin panel login page http://www.example.com/admin/index.php , enter username "admin" and password "admin", then click on "Login" button (default Magento 2 username and password are "admin" )
  • Go to System > Magento version and check if your version is correct
  • Go to System > Cache Management > Clear Cache to clear cache
  • Go to System > Cache Management > Flush Magento Buffers to flush cache
  • Go to System > Configuration > General > Web Setup and set up your server settings (Server IP address, Server port etc. For example :
  • Go to System > Configuration > General > Design Settings and set up your design settings (Theme name, Timezone etc. For example :
  • Go to System > Configuration > General > Frontend Settings and set up your front end settings (Product image dimensions etc. For example :
  • Install sample data if you want
  • Change Admin user password (to do that go to System > Permissions > Users and change User Name | Password | E-mail info of Administrator user )
  • To enable Paypal payment method you need to install Paypal module from this link https://github.com/magento/payment-sdk-for-magento2#installation . Make sure you have installed composer (http://getcomposer.org/. Then run fplowing command from the terminal . php composer . phar require -- update - with - dependencies "magento/module-payment-sdk:^2.0" . Then logout from Magento admin panel and login again. You should see new payment methods after that.
  • Now you should install some additional sample data via this link https://github.com/magento/magento2-sample-data#installation . To do that just run fplowing command from Terminal . php bin/magento sampledata:install -v 2 . After that go to stores/SampleData/ManualInstallSSCE , open file index.php in any text editor (Notepad++ for example), find lines <?php echo $this->__('Sample Data Installation Complete.'); ?> and delete them completely from this file or comment them out with // at the beginning of each line (so your file will look like this . <?php /* <div class="info"> <p><?php echo $this->__('Sample Data Installation Complete.'); ?> </p> </div>*/ . Because those lines throws error message when you will try to add products to catalog via CSV file later on.
  • Now you can go to Stores > Import in admin panel and install sample data via ZIP archive . Just upload sample data zip archive to your Magento installation directory (i.e. /var/www/html/magento2 . and in admin panel select "import" option, then browse for uploaded archive file, check "Import order" checkbox (only for CSV format), check "Ignore duplicate orders" checkbox and click import button. After import you should see products in your catalog with names like Sample Data_* . You should delete them manually or use Mass Product Edit module from here https://github.com/magento/massproductedit_m1 for mass product deletion . Also don't forget to delete file samples_data_import_orders.csv from var directory because it's created only for import process. If you will try to import it again it will throw errors . So you should delete it manually or use Mass Product Edit module from here https://github.com/magento/massproductedit_m1 for mass product deletion . Also don't forget to delete file samples_data_import_orders.csv from var directory because it's created only for import process. If you will try to import it again it will throw errors . So you should delete it manually or use Mass Product Edit module from here https://github.com/magento/massproductedit_m1 for mass product deletion . Also don't forget to delete file samples_data_import_orders.csv from var directory because it's created only for import process . If you will try to import it again it will throw errors . So you should delete it manually or use Mass Product Edit module from here https://github.com/magento/massproductedit_m1 for mass product deletion . Also don't forget to delete file samples_data_import_orders.csv from var directory because it's created only for import process . If you will try to import it again it will throw errors . So you should delete it manually or use Mass Product Edit module from here https://github.com/magento/massproductedit_m1 for mass product deletion
  • Configure Paypal payment method via System > Configuration > Payments > Paypal Configuration page - https://imageshack.com/a/img923/9150/cKzsYQrjQ . Copy your Api Key, Secret Key and Website URL values from your Paypal account and paste them into corresponding fields on configuration page in admin panel . Also copy valid callback URL from your Paypal account (for example https://www.paypalobjects.com/ips_test/index . and paste into corresponding field on configuration page in admin panel . Then save changes on configuration page in admin panel and go to System > Configuration > Sales > Checkout > Paypal Express Checkout page - https://imageshack.com/a/img922/5369/A0HgJUgRLn . Paste your Api Key, Secret Key , Website URL , Callback URL , UTF8 Strings Encoding Method , UTF8 Strings Decoding Method , Merchant Category , Merchant Status , Use Integrated Merchant Payment Buttons , Valid Country Codes List , Valid Currency List , Valid IP Address List , Currency can be different than store currency , Default currency , Payment Action , Recurring Profile ID , Save address book fields , Store phone number field - https://imageshack.com/a/img924/1652/uZLsFbIbPu . Copy those values from your Paypal account into corresponding fields on checkout page in admin panel . Then save changes on checkout page in admin panel and logout from admin panel . Now your Magento 2 store should be ready for testing with Paypal payment method . To test it go to frontend of your website (example http://www.example.com . and fill in email address into Paypal Express Checkout form (check screenshot below. :
  • You should create paypal sandbox account at http://developer.paypal.com because sandbox account allows you to receive payments without any financial risk! Create sandbox account , copy API Key, Secret

The process to integrate Magento 2.X and Paypal may seem complicated and intimidating. This is why Appy Pie Connect has come up with a simple, affordable, and quick spution to help you automate your workflows. Click on the button below to begin.