Magento 2 SecurePay Payment

Magento 2 SecurePay Payment integrates Magento 2 store with Australia's SecurePay payment gateway to accept secure online payments from the customers.

 

Table of Content

  1. Extension Installation Guide
  2. Configuration
  3. SecurePay Payment Method in Frontend
  4. SecurePay Payment Details in Order View Backend
  5. SecurePay 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-securepay-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_Securepay
          • By default, the extension is probably disabled.
          • Enable the extension and clear static view files:
      • php bin/magento module:enable Meetanshi_Securepay --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 à SecurePay Payment - Meetanshi, where you can find various settings to configure the extension.
  • Enabled: Enable SecurePay Payment extension from here.
  • Title: Enter title for the SecurePay payment method to show in the frontend.
  • Show SecurePay Logo: Select YES to show SecurePay logo on the checkout page in frontend.
  • Sandbox Mode: Set YES to enable sandbox mode for the payment gateway.
  • Merchant Code: Follow the steps to get your publishable key from SecurePay.
  • Client ID: Follow the steps to get your client ID from SecurePay.
  • Client Secret: Follow the steps to get your client secret from SecurePay.
  • 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 5 to 10 business days for SecurePay.
    • Authorize and Capture: Authorizes and captures the order amount immediately.
  • New Order Status: Set status for the new orders placed through SecurePay method.
  • Credit Card Types: Select the credit card types to allow using for SecurePay payment method.
  • Payment from Applicable Countries: Select all or selected countries to allow payments using SecurePay.
  • Payment from Selected Countries: If you have set selected countries from the above option, select the countries to allow payments using SecurePay.
  • 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 sort order of the payment method.

Vault Settings:

  • Vault Enabled: Set YES to enable vault to allow customers save cards for future transactions.
  • Vault Title: Enter the vault title to show in the email to customers.
  • New Order Status: Set status for the new orders placed through SecurePay stored cards.

 

  1. SecurePay 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 SecurePay 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.

 

  • SecurePay Payment Details in My Account Section
    Immediately after the order is placed, the SecurePay Payment details can be seen in order view tab under the customer’s My Account section.

 

 

  • SecurePay 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 SecurePay 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.

 

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

 

  1. SecurePay Payment Method for Backend Order
    Just as the frontend, SecurePay payment method also works with the backend orders. Admin needs to create a new order, select the customer, add products, enter the address details, select SecurePay method, add card details and click “Submit Order” to place order from the backend using the SecurePay 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, select SecurePay stored card, and click “Submit Order” to place order from the backend using the SecurePay payment stored cards.