Welcome to the 2C2P Developer Zone

This is the resource where developers can find all the information needed to integrate the services offered by 2C2P with their e commerce system.

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.2
version 2.2.6

Installation

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

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

Go to System -> Cache Management

Use the Select All option

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

Go to Stores -> Configuration

Now select SALES -> Payment Methods from the sidebar.

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

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

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

4. Customer can see the payment result page.

Reference

Name Description Comment
Enable/Status Enable/Disable the plugin If disabled , it will not show 2C2P on the checkout page
Title Title to be displayed to user User will see this title on the checkout page
Mode Request submitted to test server or production server
Merchant ID MID as shown in the 2C2P merchant interface
Secret Key Secret key from the 2C2P merchant interface
StoredCard Payment Enable/Disable Store-card payment Enable the stored card payment when you stick the checkbox.
1-2-3 payment expiry Payment validity duration for 1-2-3 payment Payment validity duration for 1-2-3 Payment, In hours between (8-720).
Language Select Payment gateway supported language. Default language is English.

Updated 6 months ago

Magento 2


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.