Skip to content

Commit

Permalink
Merge pull request #27 from semsudin/rebrand-as-qenta
Browse files Browse the repository at this point in the history
Rebranding to Qenta and testing
  • Loading branch information
Jakub Polomsky authored Nov 8, 2020
2 parents 19c123c + 2eed5c1 commit 9238dde
Show file tree
Hide file tree
Showing 254 changed files with 4,493 additions and 4,494 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# ClientLibrary
# checkout-client-library

[![License](https://img.shields.io/badge/license-GPLv2-blue.svg)](https://raw.githubusercontent.com/wirecard/ClientLibrary/master/LICENSE)
[![License](https://img.shields.io/badge/license-GPLv2-blue.svg)](https://raw.githubusercontent.com/qenta-cee/checkout-client-library/master/LICENSE)
[![PHP v7.2](https://img.shields.io/badge/php-v7.2-green.svg)](http://www.php.net)
[![PHP v7.3](https://img.shields.io/badge/php-v7.3-green.svg)](http://www.php.net)
[![PHP v7.4](https://img.shields.io/badge/php-v7.4-green.svg)](http://www.php.net)

Client library used by QENTA Checkout Page and Seamless plugins for payment processing.

4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"homepage": "https://www.qenta-cee.at",
"support": {
"email": "[email protected]",
"docs": "https://guides.wirecard.com"
"docs": "https://guides.qenta.com"
},
"require": {
"php": "~7.2.5|~7.3.0|~7.4.0",
Expand All @@ -19,7 +19,7 @@
},
"autoload": {
"psr-0": {
"WirecardCEE": "library"
"QentaCEE": "library"
}
},
"prefer-stable" : true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
/**
* Shop System Plugins - Terms of Use
*
* The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
* (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
* The plugins offered are provided free of charge by Qenta Payment CEE GmbH
* (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of
* products and services.
*
* They have been tested and approved for full functionality in the standard configuration
* (status on delivery) of the corresponding shop system. They are under General Public
* License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
* the same terms.
*
* However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
* However, Qenta CEE does not provide any guarantee or accept any liability for any errors
* occurring when used in an enhanced, customized shop system configuration.
*
* Operation in an enhanced, customized configuration is at your own risk and requires a
* comprehensive test phase by the user of the plugin.
*
* Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
* functionality neither does Wirecard CEE assume liability for any disadvantages related to
* the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
* Customers use the plugins at their own risk. Qenta CEE does not guarantee their full
* functionality neither does Qenta CEE assume liability for any disadvantages related to
* the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality
* for customized shop systems or installed plugins of other vendors of plugins within the same
* shop system.
*
Expand All @@ -31,11 +31,11 @@
*/

/**
* @name WirecardCEE_QMore_BackendClient
* @category WirecardCEE
* @package WirecardCEE_QMore
* @name QentaCEE_QMore_BackendClient
* @category QentaCEE
* @package QentaCEE_QMore
*/
class WirecardCEE_QMore_BackendClient extends WirecardCEE_Stdlib_Client_ClientAbstract
class QentaCEE_QMore_BackendClient extends QentaCEE_Stdlib_Client_ClientAbstract
{
/**
* Password
Expand Down Expand Up @@ -247,27 +247,27 @@ class WirecardCEE_QMore_BackendClient extends WirecardCEE_Stdlib_Client_ClientAb
protected $_fingerprintOrderType = 1;

/**
* Creates an instance of an WirecardCEE_QMore_BackendClient object.
* Creates an instance of an QentaCEE_QMore_BackendClient object.
*
* @param array|WirecardCEE_Stdlib_Config $config
* @param array|QentaCEE_Stdlib_Config $config
*/
public function __construct($config = null)
{
$this->_fingerprintOrder = new WirecardCEE_Stdlib_FingerprintOrder();
$this->_fingerprintOrder = new QentaCEE_Stdlib_FingerprintOrder();

//if no config was sent fallback to default config file
if (is_null($config)) {
$config = WirecardCEE_QMore_Module::getConfig();
$config = QentaCEE_QMore_Module::getConfig();
}

if (is_array($config) && isset( $config['WirecardCEEQMoreConfig'] )) {
// we only need the WirecardCEEQMoreConfig here
$config = $config['WirecardCEEQMoreConfig'];
if (is_array($config) && isset( $config['QentaCEEQMoreConfig'] )) {
// we only need the QentaCEEQMoreConfig here
$config = $config['QentaCEEQMoreConfig'];
}

// let's store configuration details in internal objects
$this->oUserConfig = is_object($config) ? $config : new WirecardCEE_Stdlib_Config($config);
$this->oClientConfig = new WirecardCEE_Stdlib_Config(WirecardCEE_QMore_Module::getClientConfig());
$this->oUserConfig = is_object($config) ? $config : new QentaCEE_Stdlib_Config($config);
$this->oClientConfig = new QentaCEE_Stdlib_Config(QentaCEE_QMore_Module::getClientConfig());

// now let's check if the CUSTOMER_ID, SHOP_ID, LANGUAGE and SECRET
// exist in $this->oUserConfig object that we created from config array
Expand All @@ -279,22 +279,22 @@ public function __construct($config = null)

// If not throw the InvalidArgumentException exception!
if (empty( $sCustomerId ) || is_null($sCustomerId)) {
throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.',
throw new QentaCEE_QMore_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.',
__METHOD__));
}

if (empty( $sLanguage ) || is_null($sLanguage)) {
throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.',
throw new QentaCEE_QMore_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.',
__METHOD__));
}

if (empty( $sSecret ) || is_null($sSecret)) {
throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.',
throw new QentaCEE_QMore_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.',
__METHOD__));
}

if (empty( $sPassword ) || is_null($sPassword)) {
throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('PASSWORD passed to %s is invalid.',
throw new QentaCEE_QMore_Exception_InvalidArgumentException(sprintf('PASSWORD passed to %s is invalid.',
__METHOD__));
}

Expand Down Expand Up @@ -333,14 +333,14 @@ public function getFinancialInstitutions($paymentType, $bankCountry = null, $tra

$this->_fingerprintOrder->setOrder($order);

return new WirecardCEE_QMore_Response_Backend_GetFinancialInstitutions($this->_send());
return new QentaCEE_QMore_Response_Backend_GetFinancialInstitutions($this->_send());
}

/**
* Refund
*
* @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
* @return WirecardCEE_QMore_Response_Backend_Refund
* @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException
* @return QentaCEE_QMore_Response_Backend_Refund
*/
public function refund($iOrderNumber, $iAmount, $sCurrency, $basket=null)
{
Expand All @@ -363,14 +363,14 @@ public function refund($iOrderNumber, $iAmount, $sCurrency, $basket=null)
));
$this->_appendBasketFingerprintOrder($basket);

return new WirecardCEE_QMore_Response_Backend_Refund($this->_send());
return new QentaCEE_QMore_Response_Backend_Refund($this->_send());
}

/**
* Refund reversal
*
* @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
* @return WirecardCEE_QMore_Response_Backend_RefundReversal
* @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException
* @return QentaCEE_QMore_Response_Backend_RefundReversal
*/
public function refundReversal($iOrderNumber, $iCreditNumber)
{
Expand All @@ -389,14 +389,14 @@ public function refundReversal($iOrderNumber, $iCreditNumber)
self::CREDIT_NUMBER
));

return new WirecardCEE_QMore_Response_Backend_RefundReversal($this->_send());
return new QentaCEE_QMore_Response_Backend_RefundReversal($this->_send());
}

/**
* Recur payment
*
* @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
* @return WirecardCEE_QMore_Response_Backend_RecurPayment
* @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException
* @return QentaCEE_QMore_Response_Backend_RecurPayment
*/
public function recurPayment(
$iSourceOrderNumber,
Expand Down Expand Up @@ -436,16 +436,16 @@ public function recurPayment(
self::CURRENCY
));

return new WirecardCEE_QMore_Response_Backend_RecurPayment($this->_send());
return new QentaCEE_QMore_Response_Backend_RecurPayment($this->_send());
}

/**
* Returns order details
*
* @param int $iOrderNumber
*
* @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
* @return WirecardCEE_QMore_Response_Backend_GetOrderDetails
* @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException
* @return QentaCEE_QMore_Response_Backend_GetOrderDetails
*/
public function getOrderDetails($iOrderNumber)
{
Expand All @@ -461,14 +461,14 @@ public function getOrderDetails($iOrderNumber)
self::ORDER_NUMBER
));

return new WirecardCEE_QMore_Response_Backend_GetOrderDetails($this->_send());
return new QentaCEE_QMore_Response_Backend_GetOrderDetails($this->_send());
}

/**
* Approve reversal
*
* @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
* @return WirecardCEE_QMore_Response_Backend_ApproveReversal
* @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException
* @return QentaCEE_QMore_Response_Backend_ApproveReversal
*/
public function approveReversal($iOrderNumber)
{
Expand All @@ -484,14 +484,14 @@ public function approveReversal($iOrderNumber)
self::ORDER_NUMBER
));

return new WirecardCEE_QMore_Response_Backend_ApproveReversal($this->_send());
return new QentaCEE_QMore_Response_Backend_ApproveReversal($this->_send());
}

/**
* Deposit
*
* @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
* @return WirecardCEE_QMore_Response_Backend_Deposit
* @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException
* @return QentaCEE_QMore_Response_Backend_Deposit
*/
public function deposit($iOrderNumber, $iAmount, $sCurrency, $basket=null)
{
Expand All @@ -514,14 +514,14 @@ public function deposit($iOrderNumber, $iAmount, $sCurrency, $basket=null)
));
$this->_appendBasketFingerprintOrder($basket);

return new WirecardCEE_QMore_Response_Backend_Deposit($this->_send());
return new QentaCEE_QMore_Response_Backend_Deposit($this->_send());
}

/**
* Deposit reversal
*
* @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
* @return WirecardCEE_QMore_Response_Backend_DepositReversal
* @throws QentaCEE_Stdlib_Client_Exception_InvalidResponseException
* @return QentaCEE_QMore_Response_Backend_DepositReversal
*/
public function depositReversal($iOrderNumber, $iPaymentNumber)
{
Expand All @@ -540,37 +540,37 @@ public function depositReversal($iOrderNumber, $iPaymentNumber)
self::PAYMENT_NUMBER
));

return new WirecardCEE_QMore_Response_Backend_DepositReversal($this->_send());
return new QentaCEE_QMore_Response_Backend_DepositReversal($this->_send());
}

/**
* TransferFund
*
* @throws WirecardCEE_Stdlib_Exception_InvalidTypeException
* @return WirecardCEE_QMore_Request_Backend_TransferFund
* @throws QentaCEE_Stdlib_Exception_InvalidTypeException
* @return QentaCEE_QMore_Request_Backend_TransferFund
*/
public function transferFund($fundTransferType)
{

switch ($fundTransferType) {
case self::$TRANSFER_FUND_TYPE_EXISTING:
$client = new WirecardCEE_QMore_Request_Backend_TransferFund_Existing($this->oUserConfig);
$client = new QentaCEE_QMore_Request_Backend_TransferFund_Existing($this->oUserConfig);
break;

case self::$TRANSFER_FUND_TYPE_SKIRLLWALLET:
$client = new WirecardCEE_QMore_Request_Backend_TransferFund_SkrillWallet($this->oUserConfig);
$client = new QentaCEE_QMore_Request_Backend_TransferFund_SkrillWallet($this->oUserConfig);
break;

case self::$TRANSFER_FUND_TYPE_MONETA:
$client = new WirecardCEE_QMore_Request_Backend_TransferFund_Moneta($this->oUserConfig);
$client = new QentaCEE_QMore_Request_Backend_TransferFund_Moneta($this->oUserConfig);
break;

case self::$TRANSFER_FUND_TYPE_SEPACT:
$client = new WirecardCEE_QMore_Request_Backend_TransferFund_SepaCT($this->oUserConfig);
$client = new QentaCEE_QMore_Request_Backend_TransferFund_SepaCT($this->oUserConfig);
break;

default:
throw new WirecardCEE_Stdlib_Exception_InvalidTypeException('Invalid fundTransferType');
throw new QentaCEE_Stdlib_Exception_InvalidTypeException('Invalid fundTransferType');
}

$client->setType($fundTransferType);
Expand All @@ -587,7 +587,7 @@ public function transferFund($fundTransferType)
/**
* Backend URL for POST-Requests
*
* @see WirecardCEE_Stdlib_Client_ClientAbstract::_getRequestUrl()
* @see QentaCEE_Stdlib_Client_ClientAbstract::_getRequestUrl()
* @return string
*/
protected function _getRequestUrl()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
/**
* Shop System Plugins - Terms of Use
*
* The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
* (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
* The plugins offered are provided free of charge by Qenta Payment CEE GmbH
* (abbreviated to Qenta CEE) and are explicitly not part of the Qenta CEE range of
* products and services.
*
* They have been tested and approved for full functionality in the standard configuration
* (status on delivery) of the corresponding shop system. They are under General Public
* License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
* the same terms.
*
* However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
* However, Qenta CEE does not provide any guarantee or accept any liability for any errors
* occurring when used in an enhanced, customized shop system configuration.
*
* Operation in an enhanced, customized configuration is at your own risk and requires a
* comprehensive test phase by the user of the plugin.
*
* Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
* functionality neither does Wirecard CEE assume liability for any disadvantages related to
* the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
* Customers use the plugins at their own risk. Qenta CEE does not guarantee their full
* functionality neither does Qenta CEE assume liability for any disadvantages related to
* the use of the plugins. Additionally, Qenta CEE does not guarantee the full functionality
* for customized shop systems or installed plugins of other vendors of plugins within the same
* shop system.
*
Expand All @@ -34,7 +34,7 @@
'DATA_STORAGE_URL' => 'https://checkout.wirecard.com/seamless/dataStorage',
'FRONTEND_URL' => 'https://checkout.wirecard.com/seamless/frontend',
'BACKEND_URL' => 'https://checkout.wirecard.com/seamless/backend',
'MODULE_NAME' => 'WirecardCEE_QMore',
'MODULE_NAME' => 'QentaCEE_QMore',
'MODULE_VERSION' => '3.3.0',
'DEPENDENCIES' => array(),
'USE_DEBUG' => false
Expand Down
Loading

0 comments on commit 9238dde

Please sign in to comment.