- From the CLI, run the following commands to install the Clearpay module.
The right installation command is dependent on your Magento 2 version:Magento version Command to run 2.4.* composer require clearpay/module-clearpay:^5 2.3.* composer require clearpay/module-clearpay:^4 < 2.3.0 composer require clearpay/module-clearpay:^3 - Run Magento install/upgrade scripts:
php bin/magento setup:upgrade
- Compile dependency injection:
php bin/magento setup:di:compile
- Deploy static view files (production mode only):
php bin/magento setup:static-content:deploy
- Flush Magento cache:
php bin/magento cache:flush
- Download the Clearpay module for Magento 2 - Available as a .zip or tar.gz file from the Clearpay GitHub directory.
The right installation module is dependent on your Magento 2 version:Magento version Download 2.4.* Clearpay 2.3.* Clearpay:4.* < 2.3.0 Clearpay:legacy - Unzip the file
- Create directory `Clearpay/Clearpay` in: [MAGENTO]/app/code/
- Copy the files to `Clearpay/Clearpay` folder
- Run Magento install/upgrade scripts:
php bin/magento setup:upgrade
- Compile dependency injection:
php bin/magento setup:di:compile
- Deploy static view files (production mode only):
php bin/magento setup:static-content:deploy
- Flush Magento cache:
php bin/magento cache:flush
Complete the below steps to configure the merchant’s Clearpay Merchant Credentials in Magento Admin. Note: Prerequisite for this section is to obtain an 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.
- Navigate to Magento Admin/System/Tools/Cache Management
- Click Flush Magento Cache button
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 'Install using Composer' 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:
The right installation command is dependent on your Magento 2 version:Magento version Command to run 2.4.* composer require clearpay/module-clearpay:^5 2.3.* composer require clearpay/module-clearpay:^4 < 2.3.0 composer require clearpay/module-clearpay:^3 - Make sure that Composer finished the update without errors
- Run Magento install/upgrade scripts:
php bin/magento setup:upgrade
- Compile dependency injection:
php bin/magento setup:di:compile
- Deploy static view files (production mode only):
php bin/magento setup:static-content:deploy
- Flush Magento cache:
php bin/magento cache:flush
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.
- 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.
The right Clearpay module upgradation is dependent on your Magento 2 version:Magento version Download 2.4.* Clearpay:latest 2.3.* Clearpay:4.* < 2.3.0 Clearpay:legacy - Unzip the file
- Copy the files in folder to: [MAGENTO]/app/code/Clearpay/Clearpay
- Open Command Line Interface
- In CLI, run the command to enable Clearpay module:
php bin/magento module:enable Clearpay_Clearpay
- Run Magento install/upgrade scripts:
php bin/magento setup:upgrade
- Compile dependency injection:
php bin/magento setup:di:compile
- Deploy static view files (production mode only):
php bin/magento setup:static-content:deploy
- Flush Magento cache:
php bin/magento cache:flush
- From the CLI, run the following commands to uninstall Clearpay module:
bin/magento module:uninstall Clearpay_Clearpay
- Run Magento install/upgrade scripts:
php bin/magento setup:upgrade
- Compile dependency injection:
php bin/magento setup:di:compile
- Deploy static view files (production mode only):
php bin/magento setup:static-content:deploy
- Flush Magento cache:
php bin/magento cache:flush
Module supports GraphQL and REST API. See GraphQL and Rest API