X-Cart 5

Preparation


To integrate the 2C2P payment gateway with X-Cart, you will need a sandbox account or a test account.

🚧

Support for X-Cart version 5

Installation

  1. Download the 2C2P module files here.
  2. Unzip the files.
  3. Copy the files to a directory under your X-Cart application.

Configuration


  1. Go to your X-Cart admin panel. Click on System tools > Cache management
197
  1. Select Re-deploy the store and click Start
1174
  1. Activate the 2C2P module:
  • Click on My addons > Installed addons
  • Look for 2C2P Payment and toggle it to On
  • Click on Save Changes.
1179
  1. Add 2C2P to your list of payment methods:
  • Go to Store Setup > Payment methods
  • Go to Online methods and click on Add payment method
  • You will be asked to choose from available payment methods. Search for 2C2P. Make sure your search is set to All countries
  • Once you've found 2C2P Payment, click on Add. You will then be redirected to the 2C2P module settings page.
839

To configure the 2C2P module's different attributes, refer to the guide below.

542

Reference

Name Description Comment
Enable/StatusEnable or disable the moduleIf disabled, the 2C2P payment option will not appear on your checkout page.
TitleTitle to be displayed for the 2C2P payment option.Sets the title to be displayed at the checkout page.
Merchant IDMerchant ID provided by 2C2PThis can be found in the my2C2P portal.
Secret KeySecret Key for authenticationThis can be found in the my2C2P portal.
ModeSelect the module modeFor testing, choose Sandbox. For live usage, choose Production.
Stored Card PaymentEnable or disable stored card paymentsTick the checkbox to allow storage of card details for subsequent payments
123 Payment ExpirySet the payment slip validity for the 123 alternative payment method.The unit is in hours, and must be a value between 8 - 720.
LanguageSelect 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.

790

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.

607

The payment results page will be displayed after a completed transaction.

702