Skip to content

Commit

Permalink
Merge pull request #87 from semsudin/rebrand
Browse files Browse the repository at this point in the history
Qenta rebrand, PHP and Shopware upgrade
  • Loading branch information
jakubpolomsky authored Mar 26, 2021
2 parents 63a47a3 + 4549541 commit fa1f005
Show file tree
Hide file tree
Showing 168 changed files with 2,650 additions and 2,622 deletions.
4 changes: 2 additions & 2 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ threatening, offensive, or harmful.
## Scope

This Code Of Conduct applies to all open source projects published by
Wirecard AG, including the issue tracker of those projects.
Qenta Payment CEE GmbH, including the issue tracker of those projects.

## Enforcement

Expand All @@ -58,4 +58,4 @@ This Code of Conduct is adapted from the [Contributor Covenant][homepage], versi
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org
[email]: mailto:shop-systems-support@wirecard.com
[email]: mailto:support@qenta.com

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
/**
* 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 explicitly do not form part of the Wirecard CEE range
* The plugins offered are provided free of charge by Qenta Payment CEE GmbH
* (abbreviated to Qenta CEE) and explicitly do not form 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 to third parties under
* the same terms.
* However, Wirecard CEE does not provide any guarantee or accept any liability for any
* 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.
* The customer uses the plugin at own risk. Wirecard CEE does not guarantee its full
* functionality neither does Wirecard CEE assume liability for any disadvantage related
* to the use of this plugin. Additionally Wirecard CEE does not guarantee its full
* The customer uses the plugin at own risk. Qenta CEE does not guarantee its full
* functionality neither does Qenta CEE assume liability for any disadvantage related
* to the use of this plugin. Additionally Qenta CEE does not guarantee its full
* functionality for customized shop systems or installed plugins of other vendors of
* plugins within the same shop system.
* The customer is responsible for testing the plugin's functionality within its own shop
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 @@ -31,10 +31,10 @@
*/

return Array(
'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',
'DATA_STORAGE_URL' => 'https://api.qenta.com/seamless/dataStorage',
'FRONTEND_URL' => 'https://api.qenta.com/seamless/frontend',
'BACKEND_URL' => 'https://api.qenta.com/seamless/backend',
'MODULE_NAME' => 'QentaCEE_QMore',
'MODULE_VERSION' => '3.3.0',
'DEPENDENCIES' => array(),
'USE_DEBUG' => false
Expand Down
Loading

0 comments on commit fa1f005

Please sign in to comment.