Magento 2 PayPal Website Payments Pro

Magento 2 PayPal Website Payments Pro allows store merchants to accept the credit and debit card payments from buyers who do not have a PayPal account.

 

Table of Content

  1. Extension Installation Guide
  2. Configuration
  3. Enable CardinalCommerce for PayPal Website Payments Pro
  4. PayPal Website Payments Pro in Frontend
  5. PayPal Direct Payment Details in Order View Backend
  6. PayPal Website Payments Pro Method for Backend Orders

 

  1. Extension Installation
    • For Magento Marketplace Customers
      • Create a folder structure in Magento root as app/code/Meetanshi/Pdirect
      • Download and extract the zip folder and upload our extension files to the app/code/Meetanshi/Pdirect via FTP.
      • Login to your SSH and run below commands step by step:
    • php bin/magento setup:upgrade
    • For Magento version 2.3.x - php bin/magento setup:static-content:deploy –f
    • php bin/magento cache:flush

 

    • For Meetanshi Customers
  • Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
  • Login to your SSH and run below commands step by step:
    • php bin/magento setup:upgrade
    • For Magento version 2.3.x - php bin/magento setup:static-content:deploy –f
    • php bin/magento cache:flush

Note: The extension is only compatible with Magento 2.3.x versions as the payment method is supported with CardinalCommerce 3-D Secure which is introduced for 2.3.3 and later versions only.

 

  1. Configuration
    For configuring the extension, login to Magento 2, move to Stores à Configuration à Sales à Payment Methods, find the PayPal Website Payments Pro – Meetanshi payment method to configure.
  • Enabled: Enable or disable PayPal Website Payments Pro extension from here.
  • Title: Enter title for the PayPal Website Payments Pro to show in frontend.
  • Show PayPal Logo: Select YES to show PayPal logo on the checkout page in the frontend.
  • Sandbox Mode: Set YES to enable sandbox mode for the payment transaction testing.
  • Username: Enter the username you have got while registration.
  • Password: Enter the API secret you have got while registration.
  • Signature: Enter the merchant token you have got while registration.
     
    • Log in to your PayPal account, go to Account Settings > Account Access > API Access and click on “Update”.

 

  • Select Manage API Credentials under NVP/SOAP API integration (Classic)

 

  • You will land to “View or Remove API Signature”, click “Show” to view API user name, API password and signature.

 

  • Payment Action: Select one of the payment actions for the payment capture.
    • Authorization: Select to place a hold on fund rather capturing the order amount.
    • Sale: Select to request PayPal to process the payment without holding funds. Using this option, the funds transfer from the customer's funding source to your PayPal account balance immediately.
  • New Order Status: Select the status of the new orders placed using this payment method.
  • Credit Card Types: Select the credit card types to allow make payment while using this payment method.
  • Payment from Applicable Countries: Select countries to allow the use of PayPal website payments pro payment method.
  • Debug: Select YES to enable debug.
  • Instructions: Enter additional instructions to show on the checkout page in the frontend.
  • Minimum Order Total: Enter the minimum order amount to allow using this payment method.
  • Maximum Order Total: Enter the maximum order amount to allow using this payment method.
  • Sort Order: Enter sort order of the payment method.

 

  1. Enable CardinalCommerce for PayPal Website Payments Pro
    The extension is compatible with CardinalCommerce 3-D Secure to incorporate 3-D secure protocols. It overcomes the limitation of consumer friction with the traditional 3-D secure and implements a rules-based approach to authentication. CardinalCommerce 3-D secure is introduced with the release of Magento 2.3.3. As the extension is compatible with CardinalCommerce 3-D secure, the Magento stores with versions Magento 2.3.x can only use the module.

    You need to enable CardinalCommerce 3D secure for the extension. Go to Stores > Configuration > Sales > 3D Secure and set YES to the option “Enable for PayPal Website Payments Pro – Meetanshi”.

 

  1. PayPal Website Payments Pro in Frontend
    Once the extension is configured, it can be seen enabled on the frontend. Simply add products to cart and move to checkout, and you can see payment method enabled. Select it, enter the card details and click to finish payment and place order. Even though the PayPal method is selected, customers don’t require a PayPal account and they can simply enter card details to pay for their orders.

 

  • PayPal Website Payments Pro Details in My Account Section
    Immediately after the order is placed, the PayPal card payment details can be seen in order view under My Account section. The payment details include payment method name, response code, transaction ID, card number and card type.

 

  1. PayPal Direct Payment Details in Order View Backend
    Apart from My Account section, the admin can see PayPal payment details in the Sales à Orders à Order View section in the backend.

 

  1. PayPal Website Payments Pro Method for Backend Orders
    Just as frontend, PayPal Website Payments Pro payment method also works with backend orders. Admin can create a new order, select PayPal payment method, add card details and click Submit Order to place an order from backend using PayPal direct payment method.