magento-2
  1. magento-2-setup-paypal-payment

Magento 2 Payment Setup: Set up PayPal Payment

When setting up a Magento 2 store, it's important to offer a variety of payment options to customers. One payment method that is commonly used is PayPal, which is an easy and secure way for customers to make purchases online. This tutorial will guide you through the process of setting up PayPal payment in your Magento 2 store.

Prerequisites

Before we begin, make sure that you have a PayPal account set up and ready to use. You will also need to have your PayPal API credentials available.

Step 1: Configure PayPal in Magento 2 Admin Panel

  1. Log in to your Magento 2 admin panel.

  2. Navigate to Stores > Configuration > Sales > Payment Methods.

  3. Find the PayPal All-in-One Payment Solutions section and expand it.

  4. Update the following settings:

    • Enable this Solution: Select Yes to enable PayPal as a payment method.
    • API Credentials:
      • API Username: Enter your PayPal API username.
      • API Password: Enter your PayPal API password.
      • API Signature: Enter your PayPal API signature.
    • Payment Action: Select either Authorize or Authorize and Capture. This determines whether payments are authorized and captured immediately, or only authorized at first and captured later.
    • Allowed PayPal Countries: Select the countries where PayPal payment is available.
    • Debug Mode: Select Yes to enable debugging.
  5. Click the Save Config button to save your changes.

Step 2: Set up a PayPal Payment Method

  1. In the same Payment Methods section in the Magento 2 admin panel, find the PayPal Express Checkout section and expand it.

  2. Update the following settings:

    • Enabled: Select Yes to enable PayPal as a payment method during checkout.
    • Title: Enter the title that you want to appear for this payment option.
    • Payment from Applicable Countries: Select the countries where PayPal payment is available.
    • Sort Order: Enter the order in which this payment method will appear during checkout.
  3. Click the Save Config button to save your changes.

Step 3: Verify PayPal Integration

  1. Create a test product in your Magento 2 store.
  2. Make a test purchase using PayPal as the payment method.
  3. Log in to your PayPal account and verify that the payment was processed correctly.

Conclusion

Setting up PayPal payment in your Magento 2 store is a relatively straightforward process that can be completed in just a few steps. By offering PayPal as a payment option, you are making it easy and convenient for customers to make purchases on your site. Ensure that you maintain the security and privacy of customer data at all times by following best practices for ecommerce security.

Published on: