This section outlines the steps to install Clearpay plugin using Composer.
- Open Command Line Interface and navigate to the Magento directory on your server
- In CLI, run the below command to install Clearpay module:
composer require clearpay/module-clearpay - At the Composer request, enter your Magento marketplace credentials (public key - username, private key - password)
- Make sure that Composer finished the installation without errors
- In CLI, run the Magento setup upgrade:
php bin/magento setup:upgrade - In CLI, run the Magento Dependencies Injection Compile:
php bin/magento setup:di:compile - In CLI, run the Magento Static Content deployment:
php bin/magento setup:static-content:deploy - Login to Magento Admin and navigate to System/Cache Management
- Flush the cache storage by selecting Flush Cache Storage
This section outlines the steps to install the Clearpay plugin for the first time.
Note: [MAGENTO] refers to the root folder where Magento is installed.
- Download the Magento-Clearpay plugin - Available as a .zip or tar.gz file from the Clearpay GitHub directory.
- Unzip the file
- Create directory Clearpay/Clearpay in:
[MAGENTO]/app/code/ - Copy the files to 'Clearpay/Clearpay' folder
- Open Command Line Interface
- In CLI, run the below command to enable Clearpay module:
php bin/magento module:enable Clearpay_Clearpay - In CLI, run the Magento setup upgrade:
php bin/magento setup:upgrade - In CLI, run the Magento Dependencies Injection Compile:
php bin/magento setup:di:compile - In CLI, run the Magento Static Content deployment:
php bin/magento setup:static-content:deploy - Login to Magento Admin and navigate to System/Cache Management
- Flush the cache storage by selecting Flush Cache Storage
Complete the below steps to configure the merchant’s Clearpay Merchant Credentials in Magento Admin.
Note: Prerequisite for this section is to obtain a Clearpay Merchant ID and Secret Key from Clearpay.
- Navigate to Magento Admin/Stores/Configuration/Sales/Payment Methods/Clearpay
- Enter the Merchant ID and Merchant Key.
- Enable Clearpay plugin using the Enabled checkbox.
- Configure the Clearpay API Mode (Sandbox Mode for testing on a staging instance and Production Mode for a live website and legitimate transactions).
- Save the configuration.
- Click the Update Limits button to retrieve the Minimum and Maximum Clearpay Order values.
This section outlines the steps to upgrade the currently installed Clearpay plugin version using composer.
Notes:
Prerequisite for this section is that the module should be installed using composer. Please see section 1.1 for guidelines to install Clearpay module using composer.
[MAGENTO] refers to the root folder where Magento is installed.
- Open Command Line Interface and navigate to the Magento directory on your server
- In CLI, run the below command to update Clearpay module:
composer update clearpay/module-clearpay - Make sure that Composer finished the update without errors
- In CLI, run the Magento setup upgrade:
php bin/magento setup:upgrade - In CLI, run the Magento Dependencies Injection Compile:
php bin/magento setup:di:compile - In CLI, run the Magento Static Content deployment:
php bin/magento setup:static-content:deploy - Login to Magento Admin and navigate to System/Cache Management
- Flush the cache storage by selecting Flush Cache Storage
This section outlines the steps to upgrade the currently installed Clearpay plugin version.
The process of upgrading the Clearpay plugin version involves the complete removal of Clearpay plugin files.
Note: [MAGENTO] refers to the root folder where Magento is installed.
- Remove Files in: [MAGENTO]/app/code/Clearpay/Clearpay
- Download the Magento-Clearpay plugin - Available as a .zip or tar.gz file from the Clearpay GitHub directory.
- Unzip the file
- Copy the files in folder to:
[MAGENTO]/app/code/Clearpay/Clearpay - Open Command Line Interface
- In CLI, run the below command to enable Clearpay module:
php bin/magento module:enable Clearpay_Clearpay - In CLI, run the Magento setup upgrade:
php bin/magento setup:upgrade - In CLI, run the Magento Dependencies Injection Compile:
php bin/magento setup:di:compile - In CLI, run the Magento Static Content deployment:
php bin/magento setup:static-content:deploy - Login to Magento Admin and navigate to System/Cache Management
- Flush the cache storage by selecting Flush Cache Storage