Install the Magento 2 plugin for OnlinePay

Overview

This section explains how to integrate OnlinePay with your Magento 2 store using the Magento 2 plugin. The plugin integrates with the OnlinePay Hosted Checkout to provide a seamless payment experience for your customers.

ℹ️

The OnlinePay Magneto 2 plugin is provided via our payment partner, Verifone and is called the Verifone Magento 2

Prerequisites

Download the plugin ZIP file from the link below:

  1. Extract the ZIP file to your magento2/app/code directory. If the code directory does not exist, create it.

  2. Run the following commands from your project directory to install the module:

    bin/magento setup:upgrade
    bin/magento setup:di:compile
    

    ⚠️

    If setup:di:compile command results in an error, do the following:

    1. Open the <project-name>/app/code/Verifone/HostedCheckout/etc/config.xml file in your preferred editor.
    2. Change line 156 to:
      ($cacheId = implode('-', $this->scopePriorityScheme) . "-" . $this->cacheId;).
      This changes the | operator to a -, which resolves the issue.
    3. Re-run the bin/magento setup:di:compile command and the following commands:
    php bin/magento indexer:reindex 
    php bin/magento setup:upgrade 
    php bin/magento setup:static-content:deploy -f 
    php bin/magento cache:flush
    
  3. Log in to your Magento 2 admin panel and navigate to System > Cache Management.

  4. Click Flush Magento Cache to clear the cache and apply the changes.

  5. Navigate back to System, then select Tools > Index Management.

  6. On the Index Management page, select Update on Save, then click Submit to re-index the data.



St. George BankSA Bank of Melbourne

This information is a general statement for information purposes only and should only be used as a guide. While all care has been taken in preparation of this document, no member of the Westpac Group, nor any of their employees or directors gives any warranty of accuracy or reliability nor accepts any liability in any other way, including by reason of negligence for any errors or omissions contained herein, to the extent permitted by law. Unless otherwise specified, the products and services described are available only in Australia.

© St.George, Bank of Melbourne and BankSA – Divisions of Westpac Banking Corporation ABN 33 007 457 141 AFSL and Australian credit licence 233714.