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:
-
Extract the ZIP file to your
magento2/app/code
directory. If thecode
directory does not exist, create it. -
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:- Open the
<project-name>/app/code/Verifone/HostedCheckout/etc/config.xml
file in your preferred editor. - Change line
156
to:
($cacheId = implode('-', $this->scopePriorityScheme) . "-" . $this->cacheId;)
.
This changes the|
operator to a-
, which resolves the issue. - 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
- Open the
-
Log in to your Magento 2 admin panel and navigate to System > Cache Management.
-
Click Flush Magento Cache to clear the cache and apply the changes.
-
Navigate back to System, then select Tools > Index Management.
-
On the Index Management page, select
Update on Save
, then click Submit to re-index the data.
Updated 10 days ago