-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from qenta-cee/dev
Rebranding to Qenta
- Loading branch information
Showing
276 changed files
with
1,043 additions
and
1,786 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.