Skip to content

Commit

Permalink
Merge pull request #21 from qenta-cee/dev
Browse files Browse the repository at this point in the history
Rebranding to Qenta
  • Loading branch information
jakubpolomsky authored May 21, 2021
2 parents 334eeaf + 3042514 commit 7acaa71
Show file tree
Hide file tree
Showing 276 changed files with 1,043 additions and 1,786 deletions.
Empty file added .gitignore
Empty file.
7 changes: 1 addition & 6 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
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.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
Expand All @@ -58,4 +53,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
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -336,4 +336,4 @@ This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
Public License instead of this License.
29 changes: 15 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
# Wirecard Checkout Page plugin for PrestaShop
# QENTA Checkout Page plugin for OpenCart

[![License](https://img.shields.io/badge/license-GPLv2-blue.svg)](https://raw.githubusercontent.com/wirecard/prestashop-wcp/master/LICENSE)
[![PrestaShop](https://img.shields.io/badge/PrestaShop-v1.7.5.0-green.svg)](https://www.prestashop.com/)
[![PHP v5.6](https://img.shields.io/badge/php-v5.6-yellow.svg)](http://www.php.net)
[![PHP v7.0](https://img.shields.io/badge/php-v7.0-yellow.svg)](http://www.php.net)
[![PHP v7.1](https://img.shields.io/badge/php-v7.1-yellow.svg)](http://www.php.net)
[![License](https://img.shields.io/badge/license-GPLv2-blue.svg)](https://raw.githubusercontent.com/qenta-cee/opencart-qcp/master/LICENSE)
[![PrestaShop](https://img.shields.io/badge/PrestaShop-v1.7.5.1-green.svg)](https://www.prestashop.com/)
[![PHP v7.2](https://img.shields.io/badge/php-v7.2-yellow.svg)](https://www.php.net)
[![PHP v7.3](https://img.shields.io/badge/php-v7.3-yellow.svg)](https://www.php.net)
[![PHP v7.4](https://img.shields.io/badge/php-v7.4-yellow.svg)](https://www.php.net)

Wirecard Checkout Page plugin for PrestaShop.

Our [Online Guides](https://guides.wirecard.at/) provide further information on payment methods and additional features. Please observe our [terms of use](https://guides.wirecard.at/shop_plugins:info#terms_of_use) regarding plugins.
----

QENTA Checkout Page plugin for OpenCart.

Our [Online Guides](https://guides.qenta.com/) provide further information on payment methods and additional features. Please observe our [terms of use](https://guides.qenta.com/shop_plugins/info/#TermsOfUse) regarding plugins.

## Installation
Our [Online Guides](https://guides.wirecard.at/shop_plugins:prestashop_wcp:start "Installation details") also provide technical documentation, installation and configuration instructions for the plugin.
Our [Online Guides](https://guides.qenta.com/shop_plugins/prestashop_qcp/start "Installation details") also provide technical documentation, installation and configuration instructions for the extension.


## Wirecard Checkout Page
Wirecard Checkout Page is designed to meet the ambitious demands of merchants offering a wide range of payment methods while at the same time fulfilling PCI DSS compliance.
## QPAY Checkout Page
QPAY Checkout Page is designed to meet the ambitious demands of merchants offering a wide range of payment methods while at the same time fulfilling PCI DSS compliance.

Wirecard Checkout Page offers:
QPAY Checkout Page offers:
- National and international payment methods: credit cards, debit cards, online banking payments, mobile payment solutions and other alternative payment methods.
- One interface for all payment methods.
- Intuitive user interface in more than 25 languages and 120 currencies.
Expand All @@ -27,5 +30,3 @@ Wirecard Checkout Page offers:
- PCI DSS 3 compliant, no PCI certification necessary for merchants.
- Easy to add new payment methods, additional features, languages and currencies, etc.
- Web interface for managing payments (approvals, cancelations, credits, etc.).
- Benefit from Wirecard Bank´s license to conclude credit card acceptance contracts (acquiring) and issue credit cards.
- With Wirecard Collecting only a single contract is required for payouts within various payment methods.
13 changes: 13 additions & 0 deletions qentaceecheckoutpage/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<module>
<name>qentaceecheckoutpage</name>
<displayName><![CDATA[Qenta Checkout Page]]></displayName>
<version><![CDATA[3.0.0]]></version>
<description><![CDATA[Qenta Checkout Page payment module]]></description>
<author><![CDATA[Qenta]]></author>
<tab><![CDATA[payments_gateways]]></tab>
<confirmUninstall><![CDATA[Are you sure you want to delete these details?]]></confirmUninstall>
<is_configurable>1</is_configurable>
<need_instance>1</need_instance>
<limited_countries></limited_countries>
</module>
18 changes: 18 additions & 0 deletions qentaceecheckoutpage/controllers/front/breakoutIFrame.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php
/**
* Shop System Plugins
* - Terms of use can be found under
* https://guides.qenta.com/shop_plugins:info
* - License can be found under:
* https://github.com/qenta-cee/prestashop-qcp/blob/master/LICENSE
*/

class QentaCEECheckoutPageBreakoutIFrameModuleFrontController extends ModuleFrontController
{
public $ssl = true;

public function display()
{
echo $this->module->breakoutIFrame();
}
}
18 changes: 18 additions & 0 deletions qentaceecheckoutpage/controllers/front/confirm.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php
/**
* Shop System Plugins
* - Terms of use can be found under
* https://guides.qenta.com/shop_plugins:info
* - License can be found under:
* https://github.com/qenta-cee/prestashop-qcp/blob/master/LICENSE
*/

class QentaCEECheckoutPageConfirmModuleFrontController extends ModuleFrontController
{
public $ssl = true;

public function display()
{
echo $this->module->confirmResponse();
}
}
17 changes: 17 additions & 0 deletions qentaceecheckoutpage/controllers/front/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
/**
* Shop System Plugins
* - Terms of use can be found under
* https://guides.qenta.com/shop_plugins:info
* - License can be found under:
* https://github.com/qenta-cee/prestashop-qcp/blob/master/LICENSE
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");

header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

header("Location: ../");
exit;
55 changes: 55 additions & 0 deletions qentaceecheckoutpage/controllers/front/payment.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php
/**
* Shop System Plugins
* - Terms of use can be found under
* https://guides.qenta.com/shop_plugins:info
* - License can be found under:
* https://github.com/qenta-cee/prestashop-qcp/blob/master/LICENSE
*/

class QentaCEECheckoutPagePaymentModuleFrontController extends ModuleFrontController
{
public function postProcess()
{
$cart = $this->context->cart;

if (
$cart->id_customer == 0
|| $cart->id_address_delivery == 0
|| $cart->id_address_invoice == 0
|| !$this->module->active
) {
Tools::redirect('index.php?controller=order&step=1');
}

// Check that this payment option is still available in case the customer
// changed his address just before the end of the checkout process
$authorized = false;
foreach (Module::getPaymentModules() as $module) {
if ($module['name'] == 'qentaceecheckoutpage') {
$authorized = true;
break;
}
}

if (!$authorized) {
die($this->module->l('This payment method is not available.', 'validation'));
}

$customer = new Customer($cart->id_customer);

if (!Validate::isLoadedObject($customer)) {
Tools::redirect('index.php?controller=order&step=1');
}

try {
$additionalData = array();
if (Tools::strlen(Tools::getValue('financialInstitution', ''))) {
$additionalData['financialinstitution'] = Tools::getValue('financialInstitution');
}
$this->module->initiatePayment(Tools::getValue('paymentType'), $additionalData);
} catch (Zend_Exception $e) {
echo $this->module->displayError($e->getMessage());
}
}
}
32 changes: 32 additions & 0 deletions qentaceecheckoutpage/controllers/front/paymentIFrame.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php
/**
* Shop System Plugins
* - Terms of use can be found under
* https://guides.qenta.com/shop_plugins:info
* - License can be found under:
* https://github.com/qenta-cee/prestashop-qcp/blob/master/LICENSE
*/

class QentaCEECheckoutPagePaymentIFrameModuleFrontController extends ModuleFrontController
{
public $ssl = true;
public $display_column_left = false;

/**
* @see FrontController::initContent()
*/
public function initContent()
{
$this->ssl = true;
$this->display_column_left = false;
parent::initContent();

$this->context->smarty->assign(array(
'redirectUrl' => $this->context->cookie->qpayRedirectUrl,
'windowName' => $this->module->getWindowName()
));

$this->setTemplate('module:qentaceecheckoutpage/views/templates/front/payment_iframe.tpl');
unset($this->context->cookie->qpayRedirectUrl);
}
}
18 changes: 18 additions & 0 deletions qentaceecheckoutpage/controllers/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php
/**
* Shop System Plugins
* - Terms of use can be found under
* https://guides.qenta.com/shop_plugins:info
* - License can be found under:
* https://github.com/qenta-cee/prestashop-qcp/blob/master/LICENSE
*/

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");

header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

header("Location: ../");
exit;
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
*/

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',
'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' => 'WirecardCEE_QMore',
'MODULE_VERSION' => '3.3.0',
'DEPENDENCIES' => array(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@


return Array(
'FRONTEND_URL' => 'https://checkout.wirecard.com/page/init-server.php',
'TOOLKIT_URL' => 'https://checkout.wirecard.com/page/toolkit.php',
'FRONTEND_URL' => 'https://api.qenta.com/page/init-server.php',
'TOOLKIT_URL' => 'https://api.qenta.com/page/toolkit.php',
'MODULE_NAME' => 'WirecardCEE_QPay',
'MODULE_VERSION' => '3.3.0',
'DEPENDENCIES' => Array(),
Expand Down
17 changes: 17 additions & 0 deletions qentaceecheckoutpage/library/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
/**
* Shop System Plugins
* - Terms of use can be found under
* https://guides.qenta.com/shop_plugins:info
* - License can be found under:
* https://github.com/qenta-cee/prestashop-qcp/blob/master/LICENSE
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");

header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

header("Location: ../");
exit;
47 changes: 47 additions & 0 deletions qentaceecheckoutpage/library/wirecardcee_autoload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php
/**
* Shop System Plugins
* - Terms of use can be found under
* https://guides.qenta.com/shop_plugins:info
* - License can be found under:
* https://github.com/qenta-cee/prestashop-qcp/blob/master/LICENSE
*/

spl_autoload_register('wirecardceecheckoutpage_autoload');

function wirecardceecheckoutpage_autoload($class)
{
$namespaces = array('WirecardCEE', 'Wirecard', 'React');
$namespace = null;
$modelNamespace = 'WirecardCheckoutPage';
$paymentNamespace = 'WirecardCheckoutPagePayment';

foreach ($namespaces as $ns) {

if (strncmp($ns, $class, Tools::strlen($ns)) !== 0) {
continue;
} else {
$namespace = $ns;
break;
}
}
if ($namespace === null) {
return;
}

if (strcmp($class, $modelNamespace) > 0) {
$classWithUnderscore = 'Wirecard_CheckoutPage_';
if ((strcmp($paymentNamespace, Tools::substr($class, Tools::strlen($paymentNamespace))) >= 0)
&& ((Tools::substr($class, Tools::strlen($paymentNamespace))) != '')
) {
$classWithUnderscore .= 'Payment_' . Tools::substr($class, Tools::strlen($paymentNamespace));
} else {
$classWithUnderscore .= Tools::substr($class, Tools::strlen($modelNamespace));
}
$class = $classWithUnderscore;
}

$file = str_replace(array('\\', '_'), '/', $class) . '.php';

require_once $file;
}
Binary file added qentaceecheckoutpage/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 7acaa71

Please sign in to comment.