Table of Content
- Extension Installation Guide
- Configuration
- PayPal Advanced Credit and Debit Card Payment Method in Frontend
- PayPal Advanced Credit and Debit Card Order Details in Order View Backend
- Refund Online for PayPal Advanced Credit and Debit Card Orders
- Extension Installation
- For Magento Marketplace Customers
- Find the Composer name and version of the extension in the extension’s composer.json file.
- Login to your SSH and run:
- For Magento Marketplace Customers
-
-
- composer require meetanshi/magento-2-paypal-payments-advanced --ignore-platform-reqs
-
-
- Enter your authentication keys. Your public key is your username; your private key is your password.
- Wait for Composer to finish updating your project dependencies and make sure there aren’t any errors.
- To verify that the extension installed properly, run the command:
- php bin/magento module:status Meetanshi_Paypaliframe --ignore-platform-reqs
-
- By default, the extension is probably disabled.
- Enable the extension and clear static view files:
-
- php bin/magento module:enable Meetanshi_Paypaliframe --clear-static-content
- php bin/magento setup:upgrade
- For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
- For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
- php bin/magento cache:flush
- php bin/magento module:status Meetanshi_Paypaliframe --ignore-platform-reqs
- 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.0.x to 2.1.x - php bin/magento setup:static-content:deploy
- For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
- php bin/magento cache:flush
- Configuration
Login to Magento 2, move to Stores à Configuration à Sales à Payment Methods à Paypal Standard Payment Gateway (by Meetanshi), where you can find various settings to configure the payment method.
- Enabled: Enable PayPal Advanced Credit and Debit Card Payment method from here.
Basic Settings:
- Title: Enter title for the PayPal Advanced Credit and Debit Card payment method to show in the frontend.
- Show PayPal Logo: Select YES to show PayPal logo on the checkout page in frontend.
- Payment Action: Select one of the payment actions for the payment capture.
- Authorize: Authorizes and validates card for the order amount. The admin has to manually capture the amount (by generating invoice using “Capture Online” option) within the authorization hold period which is 29 days for PayPal.
- Authorize and Capture: Authorizes and captures the order amount immediately.
- Sandbox Mode: Set YES to enable sandbox mode for the payment gateway.
- Client ID: Enter the client ID provided by PayPal while registration.
- Secret Key: Enter the secret key provided by PayPal while registration.
- Login to https://developer.paypal.com/ with your credentials. From the dashboard, click on “My Apps & Credentials”. Here, you can create a new app or click on the existing app to get the API credentials.
-
- Clicking on the app will show both the client ID and secret key. Copy them and paste into the relevant fields in Magento 2 extension configuration. Scroll down and make sure to tick “Advanced Credit and Debit Card Payments” check box.
Advanced Settings:
- New Order Status: Set status for the new orders placed through PayPal Advanced Credit and Debit Card method.
- Debug: Select YES to enable debug.
- Instructions: Enter instructions to show on the checkout page in the frontend.
- Minimum Order Total: Enter minimum order total to allow use of the payment method.
- Maximum Order Total: Enter maximum order total to allow use of the payment method.
- Sort Order: Enter sort order of the payment method.
Country Specific Settings:
- Payment from Applicable Countries: Select all or selected countries to allow payments using PayPal Advanced Credit and Debit Card payment method.
- Payment from Selected Countries: If you have set selected countries from the above option, select the countries to allow payments using PayPal Advanced Credit and Debit Card payment method.
- PayPal Advanced Credit and Debit Card Payment Method in Frontend
Once the payment method is configured, it can be seen enabled in the frontend. Simply add products to cart and go to the check out, you can see the PayPal Advanced Credit and Debit Card payment method enabled. Select it, enter the card details and click “Place Order” to finish payment and place the order successfully.
- PayPal Advanced Credit and Debit Card Order Details in Customer’s My Account Section
Immediately after the order is placed, the PayPal Advanced Credit and Debit Card order details can be seen in order view tab under the customer’s My Account section.
- PayPal Advanced Credit and Debit Card Order Details in Order View Backend
Apart from the customer’s My Account section, the admin can see PayPal Advanced Credit and Debit Card order details from the Sales à Orders à Order View section in the backend.
- Refund Online for PayPal Advanced Credit and Debit Card Orders
If the customer initiates a refund, admin can refund online for PayPal Advanced Credit and Debit Card orders from the invoice as shown in the below image.