Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/prestashop-1.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Polomsky committed May 10, 2021
2 parents 9c4bdcd + 14a3318 commit 334eeaf
Show file tree
Hide file tree
Showing 394 changed files with 20,381 additions and 32,516 deletions.
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
# Wirecard Checkout Page plugin for PrestaShop

[![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.5.6.2-green.svg)](https://www.prestashop.com/)
[![PrestaShop](https://img.shields.io/badge/PrestaShop-v1.6.1.9-green.svg)](https://www.prestashop.com/)
[![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)

----
**IMPORTANT INFORMATION**
You are visiting a shop extension which will become obsolete in the near future. It has been replaced by a new one with new features and enhanced functionality.
Please use our new shop extension available on [prestashop.wirecard.com](https://prestashop.wirecard.com), which will be maintained, updated and supported on a regular basis.
If you have any questions, please contact [email protected]

----
[![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)

Wirecard Checkout Page plugin for PrestaShop.

Expand Down
4 changes: 2 additions & 2 deletions wirecardceecheckoutpage/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<module>
<name>wirecardceecheckoutpage</name>
<displayName><![CDATA[Wirecard Checkout Page]]></displayName>
<version><![CDATA[1.5.1]]></version>
<version>2.1.5</version>
<description><![CDATA[Wirecard Checkout Page payment module]]></description>
<author><![CDATA[Wirecard CEE]]></author>
<author>Wirecard</author>
<tab><![CDATA[payments_gateways]]></tab>
<confirmUninstall>Are you sure you want to delete these details?</confirmUninstall>
<is_configurable>1</is_configurable>
Expand Down
14 changes: 11 additions & 3 deletions wirecardceecheckoutpage/controllers/front/payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,15 @@ 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) {
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
// 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'] == 'wirecardceecheckoutpage') {
Expand All @@ -60,7 +64,11 @@ public function postProcess()
}

try {
$this->module->initiatePayment(Tools::getValue('paymentType'));
$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());
}
Expand Down
5 changes: 1 addition & 4 deletions wirecardceecheckoutpage/controllers/front/paymentIFrame.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,12 @@ public function initContent()
$this->display_column_left = false;
parent::initContent();

$cart = $this->context->cart;

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

$this->setTemplate('module:wirecardceecheckoutpage/views/templates/front/payment_iframe.tpl');
unset($this->context->cookie->qpayRedirectUrl);

$this->setTemplate('payment_iframe.tpl');
}
}
126 changes: 0 additions & 126 deletions wirecardceecheckoutpage/css/style.css

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file removed wirecardceecheckoutpage/img/payment_types/ccard.png
Binary file not shown.
Binary file removed wirecardceecheckoutpage/img/payment_types/ekonto.png
Binary file not shown.
Binary file not shown.
Binary file removed wirecardceecheckoutpage/img/payment_types/eps.png
Binary file not shown.
Binary file not shown.
Binary file removed wirecardceecheckoutpage/img/payment_types/idl.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed wirecardceecheckoutpage/img/payment_types/moneta.png
Binary file not shown.
Binary file removed wirecardceecheckoutpage/img/payment_types/mpass.png
Binary file not shown.
Binary file removed wirecardceecheckoutpage/img/payment_types/paypal.png
Binary file not shown.
Binary file removed wirecardceecheckoutpage/img/payment_types/pbx.png
Binary file not shown.
Binary file removed wirecardceecheckoutpage/img/payment_types/poli.png
Binary file not shown.
Binary file not shown.
Binary file removed wirecardceecheckoutpage/img/payment_types/psc.png
Binary file not shown.
Binary file removed wirecardceecheckoutpage/img/payment_types/quick.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
111 changes: 0 additions & 111 deletions wirecardceecheckoutpage/library/Wirecard/CEE/QPay/Address.php

This file was deleted.

Loading

0 comments on commit 334eeaf

Please sign in to comment.