Skip to content

Commit

Permalink
1.6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dyd committed Jan 3, 2024
1 parent 17296ee commit 61bfeb2
Show file tree
Hide file tree
Showing 103 changed files with 4,478 additions and 390 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ Before merging the PR make sure the following are checked:

[1]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
[2]: https://github.com/opencart/opencart/wiki/Coding-standards
[3]: https://github.com/phpmd/phpmd
[3]: https://github.com/phpmd/phpmd
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Requirements
------------

* OpenCart 3.0.X - 3.0.3.X (due to architectural changes, this module is __incompatible__ with OpenCart 1.X and 2.0.X)
* [GenesisPHP v1.21.7](https://github.com/GenesisGateway/genesis_php/tree/1.21.7) - (Integrated in Module)
* [GenesisPHP v1.24.0](https://github.com/GenesisGateway/genesis_php/tree/1.24.0) - (Integrated in Module)

GenesisPHP Requirements
------------
Expand All @@ -24,9 +24,9 @@ GenesisPHP Requirements
Installation via Extension Installer
------------
1. Download the __E-Comprocessing Payment Gateway__, extract the contents of the folder
2. Create a compressed ```zip``` file of the folder ```upload``` with name ```ecomprocessing.ocmod.zip``` (excluding ```README.md```)
2. Create a compressed ```zip``` file of the folder ```upload``` with name ```E-Comprocessing.ocmod.zip``` (excluding ```README.md```)
3. Login inside the __OpenCart Admin Panel__
4. Navigate to ```Extensions -> Installer``` and click on button ```Upload``` and choose the ```zip``` file ```ecomprocessing.ocmod.zip```
4. Navigate to ```Extensions -> Installer``` and click on button ```Upload``` and choose the ```zip``` file ```E-Comprocessing.ocmod.zip```
5. Navigate to ```Extensions -> Payments``` and click install on ```E-Comprocessing Checkout```
6. Set the login credentials (```Username```, ```Password```) and adjust the configuration to your needs.

Expand Down Expand Up @@ -99,6 +99,7 @@ Supported Transactions & Payment Methods
* __Online Banking__
* __Interac Combined Pay-in (CPI)__
* __Bancontact__
* __Blik One Click (BLK)__
* __OXXO__
* __P24__
* __Pago Facil__
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ public static function getTaxFromOrderTotals($order_totals) {
public static function getAvailableBankCodes() {
return [
\Genesis\API\Constants\Banks::CPI => 'Interac Combined Pay-in',
\Genesis\API\Constants\Banks::BCT => 'Bancontact'
\Genesis\API\Constants\Banks::BCT => 'Bancontact',
\Genesis\API\Constants\Banks::BLK => 'Blik One Click'
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -561,26 +561,16 @@ class Banks
*/
const PC = 'PC';

/**
* ALTO, Prima, ATM Bersama
*/
const ATMVA = 'ATMVA';

/**
* Bank Central Asia
*/
const BCA_IDR = 'BCA_IDR';
const DK_BCA_IB = 'DK_BCA_IB';

/**
* Bank Rakyat Indonesia
*/
const BRI_IDR = 'BRI_IDR';

/**
* Bank Negara Indonesia
*/
const BNI_IDR = 'BNI_IDR';

const DK_BRI_IB = 'DK_BRI_IB';

/**
* BTN Bank
*/
Expand All @@ -589,12 +579,12 @@ class Banks
/**
* CIMB Clicks Indonesia
*/
const CIMB_IDR = 'CIMB_IDR';
const DK_CIMBCLICKS_IB = 'DK_CIMBCLICKS_IB';

/**
* Danamon Bank
*/
const DMN_IDR = 'DMB_IDR';
const DK_DANAMON_IB = 'DK_DANAMON_IB';

/**
* Mandiri Bank
Expand All @@ -604,7 +594,7 @@ class Banks
/**
* Permata Bank
*/
const PMB_IDR = 'PMB_IDR';
const DK_PERMATANET_IB = 'DK_PERMATANET_IB';

/**
* Virtual Account Bank
Expand Down Expand Up @@ -788,41 +778,27 @@ class Banks
/**
* Bangkok Bank
*/
const BBL_THB = 'BBL_THB';
const TH_PB_BBLPN = 'TH_PB_BBLPN';
const BBL_IB_U = 'BBL_IB_U';

/**
* Kasikorn Bank
* Kasikornbank PAYPLUS
*/
const KKB_THB = 'KKB_THB';
const KBANK_PAYPLUS = 'KBANK_PAYPLUS';

/**
* Krungsri (Bank of Ayudhya Public Company Limited)
* Bank of Ayudhya (Krungsri)
*/
const BAY_THB = 'BAY_THB';
const TH_PB_BAYPN = 'TH_PB_BAYPN';
const BAY_IB_U = 'BAY_IB_U';

/**
* Krung Thai Bank
*/
const KTB_THB = 'KTB_THB';
const TH_PB_KTBPN = 'TH_PB_KTBPN';

/**
* OMISE_TL
*/
const OMISE_TL_PHP = 'OMISE_TL.php';
const KTB_IB_U = 'KTB_IB_U';

/**
* Siam Commercial Bank
*/
const SCB_THB = 'SCB_THB';
const TH_PB_SCBPN = 'TH_PB_SCBPN';

/**
* UOBT
*/
const UOB_THB = 'UOB_THB';
const SCB_IB_U = 'SCB_IB_U';

/**
* Abitab
Expand All @@ -845,7 +821,7 @@ class Banks
const SINGPOST_PHP = 'singpost.php';

/**
* VTC-Pay
* VTC-Pay VPBank
*/
const VTCP_VPBANK = 'VTCP_VPBANK';
/**
Expand Down Expand Up @@ -950,7 +926,7 @@ class Banks
/**
* VTC-Pay SaigonBank
*/
const VTCP_SAIGON_BANK = 'VTCP-SAIGON_BANK';
const VTCP_SAIGONBANK = 'VTCP-SAIGONBANK';

/**
* VTC-Pay SeaABank
Expand Down Expand Up @@ -1007,6 +983,11 @@ class Banks
*/
const SCB = 'ENETS-D_SCB';

/**
* BL
*/
const BLK = 'BLK';

/**
* Retrieve list of all Bank Codes
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,11 @@ final class Errors
*/
const IBAN_BLACKLIST_ERROR = 696;

/**
* Terminal card brand limitation!
*/
const CARD_BRAND_VELOCITY_RESTRICTION_ERROR = 697;

/**
* Consumer with this consumer_id, email combination already exists!
*/
Expand Down Expand Up @@ -627,6 +632,8 @@ public static function getErrorDescription($errorCode)
return 'Please contact the risk team!';
case self::IBAN_BLACKLIST_ERROR:
return 'Transaction declined by risk management, iban blacklisted!';
case self::CARD_BRAND_VELOCITY_RESTRICTION_ERROR:
return 'Terminal card brand limitation!';
case self::REMOTE_ERROR:
return 'Some error occurred on the issuer.';
case self::REMOTE_SYSTEM_ERROR:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<?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.
*
* @author emerchantpay
* @copyright Copyright (C) 2015-2023 emerchantpay Ltd.
* @license http://opensource.org/licenses/MIT The MIT License
*/

namespace Genesis\API\Constants\NonFinancial\KYC;

use Genesis\Utils\Common;

/**
* class VerificationAddressesTypes
* @package Genesis\API\Constants\NonFinancial\KYC
*/
class VerificationAddressesTypes
{
/**
* Verification Address type ID Card
*
* @var string
*/
const ID_CARD = 'id_card';

/**
* Verification Address type Passport
*
* @var string
*/
const PASSPORT = 'passport';

/**
* Verification Address type Driving License
*
* @var string
*/
const DRIVING_LICENSE = 'driving_license';

/**
* Verification Address type Utility bill
*
* @var string
*/
const UTILITY_BILL = 'utility_bill';

/**
* Verification Address type Bank Statement
*
* @var string
*/
const BANK_STATEMENT = 'bank_statement';

/**
* Verification Address type Rent Agreement
*
* @var string
*/
const RENT_AGREEMENT = 'rent_agreement';

/**
* Verification Address type Employer Letter
*
* @var string
*/
const EMPLOYER_LETTER = 'employer_letter';

/**
* Verification Address type Insurance Agreement
*
* @var string
*/
const INSURANCE_AGREEMENT = 'insurance_agreement';

/**
* Verification Address type Tax Bill
*
* @var string
*/
const TAX_BILL = 'tax_bill';

/**
* Verification Address type Envelope
*
* @var string
*/
const ENVELOPE = 'envelope';

/**
* Verification Address type CPR/Smart Card Reader
*
* @var string
*/
const CPR_SMART_CARD_READER = 'cpr_smart_card_reader_copy';

/**
* Read and return all constants as array
*
* @return array
*/
public static function getAll()
{
return Common::getClassConstants(self::class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?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.
*
* @author emerchantpay
* @copyright Copyright (C) 2015-2023 emerchantpay Ltd.
* @license http://opensource.org/licenses/MIT The MIT License
*/

namespace Genesis\API\Constants\NonFinancial\KYC;

use Genesis\Utils\Common;

class VerificationDocumentTypes
{
/**
* Verifications Document type Passport
* @var string
*/
const PASSPORT = 'passport';

/**
* Verifications Document type ID Card
* @var string
*/
const ID_CARD = 'id_card';

/**
* Verifications Document type Driving License
* @var string
*/
const DRIVING_LICENSE = 'driving_license';

/**
* Verifications Document type Credit or Debit card
* @var string
*/
const CC_DEB_CARD = 'credit_or_debit_card';

/**
* Read and return all constants as array
* @return array
*/
public static function getAll()
{
return Common::getClassConstants(self::class);
}
}
Loading

0 comments on commit 61bfeb2

Please sign in to comment.