Magento 2 Opayo Direct Payment

Table of Contents

  1. Extension Installation Guide
  2. Configuration
  3. Opayo Direct Payment Method in Frontend
  4. Opayo Direct Payment Details in Order View Backend
  5. Opayo Direct Payment Method for Backend Order

 

  1. 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:
      • composer require meetanshi/magento-2-opayo-direct-payment
    • 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_Sagepay
          • By default, the extension is probably disabled.
          • Enable the extension and clear static view files:
      • php bin/magento module:enable Meetanshi_Sagepay --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

 

    • 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

 

  1. Configuration
    For configuring the extension, login to Magento 2, move to Stores à Configuration à Sales à Payment Methods à Opayo Direct Payment – Meetanshi where you can find various settings to enable the extension.
  • Enabled: Set “YES” to enable the Opayo direct payment method.
  • Title: Set the title for the payment method to be displayed in the frontend.
  • Vault Enabled: Set YES to enable vault to allow customers save cards for future transactions.
  • Vault Title: Enter vault title to show in the frontend.
  • Show Opayo Logo: Set YES to show Opayo logo on checkout page.
  • Sandbox mode: Set “YES” to enable the sandbox mode for testing purpose.
  • Vendor Name: Add vendor name received while registration with Opayo Gateway.
  • Integration Key: Enter integration key received while registration with Opayo.
  • Integration Password: Add live API password received while registration with Opayo Gateway. Login to Opayo admin panel and go to Administrator and you will find Vendor name and Encryption Password.
  • 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 90 days for Opayo Payment.
    • Authorize and Capture: Authorizes and captures the order amount immediately.
  • New Order Status: Set status for the new order placed through this payment method.
  • Apply 3D Secure: Select a condition-based option to apply 3D secure.
  • Apply AVS CVC Check: Select a condition-based option to apply AVS CVC check.
  • Credit Card Types: Select credit card types to allow customers while paying for their orders using Opayo direct payment method.
  • Payment from Applicable Countries: Select all or selected countries to allow payments using Opayo direct payment method.
  • Payment from Selected Countries: If you have set selected countries from the above option, select the countries to allow payments using Opayo direct payment.
  • 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 total to allow the use of the payment method.
  • Maximum Order Total: Enter the maximum order total to allow the use of the payment method.
  • Sort Order: Enter the sort order of the payment method.

  1. Opayo Direct Payment Method in Frontend
    Once the extension is configured, it can be seen enabled in the frontend. Simply add products to cart and go to the checkout, you can see the Opayo direct payment method enabled. Select it, enter the card details and click “Place Order” to finish payment and place the order successfully. The customers can tick the box here to save the card for future transactions.

 

  • Frictionless Flow Authentication
    On the checkout page, based on the 3D secure option selection, either frictionless flow or 3DS 1 authentication is enabled. Below is the screenshot of 3DS 2.

  • 3DS 1 Authentication
    On the checkout page, based on the 3D secure option selection, either frictionless flow or 3DS 1 authentication is enabled. Below is the screenshot of 3DS 1.

 

  • Opayo Direct Payment Details in My Account Section
    Immediately after the order is placed, Opayo direct payment details can be seen in My Orders tab under the customer’s My Account section.

 

  • Opayo Payment Stored Cards
    If the vault is enabled and the customers have ticked the box from the checkout page to save the cards for the future transactions, they can see Opayo stored cards in their My Account section under “Stored Payment Methods” tab.

  • New Order Placement using Stored Cards
    If the vault is enabled and the customer has ticked the box from the checkout page to save the card for the future transactions, he can use the stored card to pay for the new order in future.

  1. Opayo Direct Payment Details in Order View Backend

Apart from the customer’s My Account section, the admin can also see Opayo payment details from the Sales à Orders à Order View section in the backend.

 

  1. Opayo Direct Payment Method for Backend Order
    Just as the frontend, Opayo payment method also works with the backend orders. Admin needs to create a new order, select the customer, add products, enter the address details and select Opayo direct method, add card details and click “Submit Order” to place order from the backend using the Opayo payment method.

 

  • New Backend Order Placement using Stored Cards
    If the customer has stored cards for the future transactions, the admin can use the stored cards while creating a new order from the backend. The admin needs to create a new order, select the customer, add products, enter the address details and select Opayo stored card, and click “Submit Order” to place order from the backend using the Opayo direct payment stored cards.