These docs are for v3.2.6. Click to read the latest docs for v4.3.0.

Magento 2

Preparation

2C2P provides payment solution to your Magento-2 webstore. We allow you to accept payments from Credit/Debit Cards, Alipay, or Alternative/Cash Payments using local counter services. Additional details on the payment process and configuration can be found in the Redirect API section of this page.

2C2P is available in :

  • Singapore
  • Thailand
  • Myanmar
  • Indonesia
  • Malaysia
  • Philippines
  • Hong Kong

In order to connect to 2C2P with the plugin 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

 

New Installation

  • You can download the plugin here.
  • Unzip the downloaded file.
  • Copy the files to a directory under your Magento application.

 

For Update Version

  • Navigate to your database table and locate table "setup_module".
  • Remove "P2c2p_P2c2pPayment" from the table so that it will rerun the installation back.
  • Extract the files and replace the current files in app/code/P2c2p folder

Setup

After you copied the file in the correct directory. Access the command prompt using Administrator. Before make sure you have installed the Php Dependency Manager - Composer on machine to run Magento-2 command.

Type command on Magento-2 installation directory -> php bin/magento setup:upgrade

977

Go to System -> Cache Management

294

Use the Select All option

1295

Open the item Flush Magento Cache. Next click on Flush Cache Storage.

Go to Stores -> Configuration

262

Now select SALES -> Payment Methods from the sidebar.

302

1. You can enable the 2C2P module and update the relevant sections.

736

2. During checkout, Customer can select 2C2P Payment and also select previously stored card's (If enabled stored card payment).

758

3. Customer shall be redirected to 2C2P's payment page, Where they will be able to save their card (Id enabled stored card payment).

607

4. Customer can see the payment result page.

702

Reference

Name Description Comment
Enable/StatusEnable/Disable the pluginIf disabled , it will not show 2C2P on the checkout page
TitleTitle to be displayed to userUser will see this title on the checkout page
ModeRequest submitted to test server or production server
Merchant IDMID as shown in the 2C2P merchant interface
Secret KeySecret key from the 2C2P merchant interface
StoredCard PaymentEnable/Disable Store-card paymentEnable the stored card payment when you stick the checkbox.
1-2-3 payment expiryPayment validity duration for 1-2-3 paymentPayment validity duration for 1-2-3 Payment, In hours between (8-720).
LanguageSelect Payment gateway supported language. Default language is English.