This section outlines the steps to install the Clearpay plugin on your Magento instance for the first time.
Magento can be installed in any folder on your server. For the purposes of this document, [MAGENTO]
will refer to the root folder where Magento is installed.
- The Clearpay plugin for Magento 1 is available as a
.zip
ortar.gz
file from the Clearpay GitHub repository - Unzip the file and copy everything in
/src/
to[MAGENTO]/
- Login to the Magento Admin and navigate to "System > Cache Management"
- Flush the cache storage by selecting Flush Cache Storage
Clearpay operates under a list of assumptions based on Magento configurations. To align with these assumptions, the Magento configurations must reflect the below.
-
Website Currency must be set to GBP
Inside the Magento Admin, navigate to "System > Configuration > Currency Setup". Set the base, display and allowed currency as appropriate to match your Clearpay Merchant Account.
-
Postal Code must be mandatory
Inside the Magento Admin, navigate to "System > Configuration > General". Ensure Postal Code is not configured as optional for any country that Clearpay is being applied to.
To configure your Clearpay Merchant Account credentials in the Magento Admin, please complete the steps below. The prerequisite for this section is to obtain a Clearpay Merchant ID and Secret Key from Clearpay.
- Inside the Magento Admin, navigate to "System > Configuration > Sales > Payment Methods > Clearpay"
- Enter the Merchant ID and Merchant Secret Key (provided by Clearpay)
- Enable Clearpay by selecting "Yes" from the Enabled dropdown
- Configure the API Mode - select Sandbox for testing on a staging instance, or Production for a live website with legitimate transactions
- Save the configuration
- Click the Update Payment Limits button to retrieve the Minimum and Maximum Clearpay Order values
- Inside the Magento Admin, navigate to "System > Configuration > Sales > Clearpay"
- Enable Debug Mode to log transactions and additional valuable data
- Configure the display of the Clearpay elements presented on Product Detail Pages (PDP), the cart page and at the checkout
- After saving any changes, navigate to "System > Cache Management"
- Flush the cache storage by selecting Flush Cache Storage
This section outlines the steps to upgrade an existing installation of the Clearpay plugin to a new version.
The process of upgrading the Clearpay plugin for Magento 1 involves the complete removal of all plugin files, followed by copying the new files.
[MAGENTO]
will refer to the root folder where you have installed your version of Magento.
- Remove folder:
[MAGENTO]/app/code/community/Clearpay
- Remove folder:
[MAGENTO]/app/design/adminhtml/default/default/template/clearpay
- Remove file:
[MAGENTO]/app/design/frontend/base/default/layout/clearpay.xml
- Remove folder:
[MAGENTO]/app/design/frontend/base/default/template/clearpay
- Remove file:
[MAGENTO]/app/etc/modules/Clearpay_Clearpay.xml
- Remove folder:
[MAGENTO]/js/Clearpay
- Remove folder:
[MAGENTO]/skin/frontend/base/default/clearpay
- The Clearpay plugin for Magento 1 is available as a
.zip
ortar.gz
file from the Clearpay GitHub repository - Unzip the file and copy everything in
/src/
to[MAGENTO]/
- Login to the Magento Admin and navigate to "System > Cache Management"
- Flush the cache storage by selecting Flush Cache Storage