Magento 2
Preparation
To integrate the 2C2P payment gateway with Magento, you will need a sandbox account or a test account.
Support for Magento 2 Framework
version 2.2.x
version 2.3.x
version 2.4.x
Installation
- Download the 2C2P module files here.
- Unzip the downloaded files.
- Copy the files to a directory under your Magento application.
Configuration
To run Magento-2 commands, make sure that:
- PHP Dependency Manager - Composer is installed on your machine.
- The 2C2P module files have been copied to the correct directory
- Access the command prompt as an administrator.
- Go to your Magento-2 installation directory and run the following command: php bin/magento setup:upgrade
![Screenshot-1.png 977](https://files.readme.io/c83f1a2-Screenshot-1.png)
- In your Magento settings, go to System > Cache Management
![Screenshot-1.png 294](https://files.readme.io/3b0e1b9-Screenshot-1.png)
- Use the Select All option
![Screenshot-1.png 1295](https://files.readme.io/b74d868-Screenshot-1.png)
-
Click on Flush Magento Cache, and then select Flush Cache Storage.
-
Go to Stores > Configuration
![Screenshot-1.png 262](https://files.readme.io/23459a3-Screenshot-1.png)
- Select Sales > Payment Methods from the sidebar.
![Screenshot-1.png 302](https://files.readme.io/3a71636-Screenshot-1.png)
To enable the 2C2P module and configure the different attributes, refer to the guide below.
![Screenshot-1.png 736](https://files.readme.io/fb130e8-Screenshot-1.png)
Reference
Name | Description | Comment |
---|---|---|
Enable/Status | Enable or disable the module | If disabled, the 2C2P payment option will not appear on your checkout page. |
Title | Title to be displayed for the 2C2P payment option. | Sets the title to be displayed at the checkout page. |
Merchant ID | Merchant ID provided by 2C2P | This can be found in the my2C2P portal. |
Secret Key | Secret Key for authentication | This can be found in the my2C2P portal. |
Mode | Select the module mode | For testing, choose Sandbox. For live usage, choose Production. |
Stored Card Payment | Enable or disable stored card payments | Tick the checkbox to allow storage of card details for subsequent payments |
123 Payment Expiry | Set the payment slip validity for the 123 alternative payment method. | The unit is in hours, and must be a value between 8 - 720. |
Language | Select the language for the payment gateway. | The default language is English. |
Interface
After enabling the module, 2C2P will be one of the payment options available for customers. If stored card payments have been enabled, customers will also be able to select any cards they have previously stored.
![Screenshot-7.png 758](https://files.readme.io/9d7e3fc-Screenshot-7.png)
To proceed with payment, customers will be redirected to 2C2P's payment page. If stored card payments have been enabled, customers will also see the option to save their card for future transactions.
![Screenshot-8.png 607](https://files.readme.io/46ad984-Screenshot-8.png)
The payment results page will be displayed after a completed transaction.
![Screenshot-9.png 702](https://files.readme.io/6826bf2-Screenshot-9.png)
Updated almost 3 years ago