Skip to content

Commit

Permalink
1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitrovv committed Mar 23, 2016
1 parent d4973d0 commit 6ae196a
Show file tree
Hide file tree
Showing 94 changed files with 4,024 additions and 1,274 deletions.
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
E-ComProcessing Gateway Module for X-Cart
===========================================

This is a Payment Module for eMerchantPay that gives you the ability to process payments through E-ComProcessing's Payment Gateway - Genesis.
This is a Payment Module for X-Cart, that gives you the ability to process payments through E-ComProcessing's Payment Gateway - Genesis.

Requirements
------------

* X-Cart 5.2.x (you can get this plugin to work on older 5.X versions simply by tweaking ```Main.php```)
* GenesisPHP 1.2
* [GenesisPHP v1.4](https://github.com/GenesisGateway/genesis_php) - (Integrated in Module)

GenesisPHP Requirements
------------
Expand All @@ -33,4 +33,20 @@ Installation
* Enter your credentials and configure the plugin to your liking
* Go back to ```Store setup -> Payment methods``` and toggle the ```E-ComProcessing``` payment method from ```INACTIVE``` to ```ACTIVE```

Installation (Manual)
------------

* Upload the contents of folder (excluding ```README.md```) to the ```<root>``` folder of your X-Cart installation
* Log into ```X-Cart Administration Area``` with your Administrator account
* Go to ```System Settings``` -> ```Cache Management```, click ```Re-deploy the store``` and wait until the ```Deployment Process``` finishes
* Go to ```Modules``` -> Locate ```E-ComProcessing``` Module and tick ```Enabled``` under the ```E-ComProcessing``` plugin and click ```Save changes```
* Navigate to ```Store setup -> Payment methods```
* Under ```Online methods``` category, click ```Add payment method``` and select ```E-ComProcessing``` from the list
* Enter your credentials and configure the plugin to your liking
* Go back to ```Store setup -> Payment methods``` and toggle the ```E-ComProcessing``` payment method from ```INACTIVE``` to ```ACTIVE```

_Note_: If you have trouble with your credentials or terminal configuration, get in touch with our [support] team

You're now ready to process payments through our gateway.

[support]: mailto:[email protected]
11 changes: 6 additions & 5 deletions classes/XLite/Module/EComProcessing/Genesis/Controller/Admin/EcomprocessingSettings.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
* Copyright (C) 2015 E-Comprocessing™
* Copyright (C) 2016 E-Comprocessing™
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
Expand All @@ -12,10 +12,11 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* @author E-ComProcessing
* @copyright 2015 E-Comprocessing™
* @author E-ComProcessing
* @copyright 2016 E-Comprocessing™
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License, version 2 (GPL-2.0)
*/

namespace XLite\Module\EComProcessing\Genesis\Controller\Admin;

/**
Expand Down Expand Up @@ -44,7 +45,7 @@ class EcomprocessingSettings extends \XLite\Controller\Admin\AAdmin
*/
public function getTitle()
{
return static::t('E-ComProcessing Settings');
return static::t('E-ComProcessing settings');
}

/**
Expand All @@ -63,7 +64,7 @@ protected function getModelFormClass()
/**
* Get method id from request
*
* @return integer
* @return int
*/
public function getMethodId()
{
Expand Down
48 changes: 24 additions & 24 deletions ...s/XLite/Module/EComProcessing/Genesis/Library/Genesis/src/Genesis/API/Constants/Banks.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -34,120 +34,120 @@ class Banks
/**
* Industrial and Commercial Bank of China
*/
const ICBC = 'Industrial and Commercial Bank of China';
const ICBC = 'ICBC';

/**
* China Merchants Bank
*/
const CMBCHINA = 'China Merchants Bank';
const CMBCHINA = 'CMBCHINA';

/**
* Agricultural Bank of China
*/
const ABC = 'Agricultural Bank of China';
const ABC = 'ABC';

/**
* China Construction Bank
*/
const CCB = 'China Construction Bank';
const CCB = 'CCB';

/**
* Bank of Beijing
*/
const BCCB = 'Bank of Beijing';
const BCCB = 'BCCB';

/**
* Bank of Communications
*/
const BOCO = 'Bank of Communications';
const BOCO = 'BOCO';

/**
* Industrial Bank
*/
const CIB = 'Industrial Bank';
const CIB = 'CIB';

/**
* Bank of Nanjing
*/
const NJCB = 'Bank of Nanjing';
const NJCB = 'NJCB';

/**
* China Minsheng Banking Corp Ltd
*/
const CMBC = 'China Minsheng Banking Corp Ltd';
const CMBC = 'CMBC';

/**
* China Everbright Bank
*/
const CEB = 'China Everbright Bank';
const CEB = 'CEB';

/**
* Bank of China
*/
const BOC = 'Bank of China';
const BOC = 'BOC';

/**
* Ping An Bank
*/
const PINGANBANK = 'Ping An Bank';
const PINGANBANK = 'PINGANBANK';

/**
* Bank of East Asia
*/
const HKBEA = 'Bank of East Asia';
const HKBEA = 'HKBEA';

/**
* Bank of Ningbo
*/
const NBCB = 'Bank of Ningbo';
const NBCB = 'NBCB';

/**
* China Citic Bank
*/
const ECITIC = 'China Citic Bank';
const ECITIC = 'ECITIC';

/**
* Shenzhen Development Bank
*/
const SDB = 'Shenzhen Development Bank';
const SDB = 'SDB';

/**
* Guangdong Development Bank
*/
const GDB = 'Guangdong Development Bank';
const GDB = 'GDB';

/**
* Bank of Shanghai
*/
const SHB = 'Bank of Shanghai';
const SHB = 'SHB';

/**
* Shanghai Pudong Development Bank
*/
const SPDB = 'Shanghai Pudong Development Bank';
const SPDB = 'SPDB';

/**
* China Post
*/
const POST = 'China Post';
const POST = 'POST';

/**
* BEIJING RURAL COMMERCIAL BANK
*/
const BJRCB = 'BEIJING RURAL COMMERCIAL BANK';
const BJRCB = 'BJRCB';

/**
* Hua Xia Bank Co Ltd'
*/
const HXB = 'Hua Xia Bank Co Ltd';
const HXB = 'HXB';

/**
* Bank of Hangzhou
*/
const HZBANK = 'Bank of Hangzhou';
const HZBANK = 'HZBANK';

/**
* Shanghai Rural Commercial Bank
*/
const SRCB = 'Shanghai Rural Commercial Bank';
const SRCB = 'SRCB';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php
/*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* @license http://opensource.org/licenses/MIT The MIT License
*/
namespace Genesis\API\Constants;

/**
* Class Endpoints
*
* List of possible Genesis endpoints
*
* @package Genesis\API\Constants
*/
class Endpoints
{
/**
* Domain for E-ComProcessing's Genesis instance
*
* @link http://www.e-comprocessing.com/
*/
const ECOMPROCESSING = 'e-comprocessing.net';

/**
* Domain for eMerchantPay's Genesis instance
*
* @link https://www.emerchantpay.com
*/
const EMERCHANTPAY = 'emerchantpay.net';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php
/*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* @license http://opensource.org/licenses/MIT The MIT License
*/
namespace Genesis\API\Constants;

/**
* Class Environments
*
* List of server environments
*
* @package Genesis\API\Constants
*/
class Environments
{
/**
* Live (Production) environment
*/
const PRODUCTION = 'production';

/**
* Test (Staging) environment
*
* @note NO MONEY ARE BEING TRANSFERRED
*/
const STAGING = 'sandbox';
}
Loading

0 comments on commit 6ae196a

Please sign in to comment.