diff --git a/src/lemonway/classes/Iban.php b/src/lemonway/classes/Iban.php index 6d5b399..3b6f0bd 100644 --- a/src/lemonway/classes/Iban.php +++ b/src/lemonway/classes/Iban.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ class IbanCore extends ObjectModel @@ -113,7 +113,8 @@ class IbanCore extends ObjectModel */ public static function getCustomerIbans($id_customer) { - $sql = 'SELECT * FROM `' . _DB_PREFIX_ . 'lemonway_iban` iban WHERE iban.`id_customer` = ' . $id_customer; + $sql = 'SELECT * FROM `' . _DB_PREFIX_ . 'lemonway_iban` iban ' . + 'WHERE iban.`id_customer` = ' . pSQL($id_customer); $sql .= ' ORDER BY iban.`date_add` DESC'; $res = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql); diff --git a/src/lemonway/classes/MoneyOut.php b/src/lemonway/classes/MoneyOut.php index f20b860..02853c0 100644 --- a/src/lemonway/classes/MoneyOut.php +++ b/src/lemonway/classes/MoneyOut.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ class MoneyOut extends ObjectModel @@ -115,8 +115,8 @@ public static function getCustomerMoneyout($id_customer, $is_admin = false, $lim $field_owner = 'id_employee'; } - $sql = 'SELECT * FROM `' . _DB_PREFIX_ . 'lemonway_moneyout` wt WHERE wt.`' . $field_owner . '` = '; - $sql .= $id_customer . ' ORDER BY wt.`date_add` DESC'; + $sql = 'SELECT * FROM `' . _DB_PREFIX_ . 'lemonway_moneyout` wt WHERE wt.`' . pSQL($field_owner) . '` = '; + $sql .= (int)pSQL($id_customer) . ' ORDER BY wt.`date_add` DESC'; if ($limit > 0) { $sql .= " LIMIT 0, " . pSQL((int)$limit); diff --git a/src/lemonway/classes/Wallet.php b/src/lemonway/classes/Wallet.php index 22ae726..bf29287 100644 --- a/src/lemonway/classes/Wallet.php +++ b/src/lemonway/classes/Wallet.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ class WalletCore extends ObjectModel @@ -229,7 +229,8 @@ public function getFieldsWithoutValidation() public function getByCustomerId($id_customer) { - $query = 'SELECT * FROM `' . _DB_PREFIX_ . 'lemonway_wallet` lw WHERE lw.`id_customer` = ' . (int)$id_customer; + $query = 'SELECT * FROM `' . _DB_PREFIX_ . 'lemonway_wallet` lw ' . + 'WHERE lw.`id_customer` = ' . (int)pSQL($id_customer); $result = Db::getInstance()->getRow($query); if (!$result) { diff --git a/src/lemonway/classes/index.php b/src/lemonway/classes/index.php index c57519d..03ba3c2 100644 --- a/src/lemonway/classes/index.php +++ b/src/lemonway/classes/index.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); diff --git a/src/lemonway/controllers/admin/AdminMoneyOutController.php b/src/lemonway/controllers/admin/AdminMoneyOutController.php index e9c521e..d78dd3a 100644 --- a/src/lemonway/controllers/admin/AdminMoneyOutController.php +++ b/src/lemonway/controllers/admin/AdminMoneyOutController.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ require_once _PS_MODULE_DIR_ . 'lemonway/classes/MoneyOut.php'; diff --git a/src/lemonway/controllers/admin/index.php b/src/lemonway/controllers/admin/index.php index c57519d..03ba3c2 100644 --- a/src/lemonway/controllers/admin/index.php +++ b/src/lemonway/controllers/admin/index.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); diff --git a/src/lemonway/controllers/front/confirmation.php b/src/lemonway/controllers/front/confirmation.php index 20142be..1d96e9e 100644 --- a/src/lemonway/controllers/front/confirmation.php +++ b/src/lemonway/controllers/front/confirmation.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ class LemonwayConfirmationModuleFrontController extends ModuleFrontController diff --git a/src/lemonway/controllers/front/index.php b/src/lemonway/controllers/front/index.php index c57519d..03ba3c2 100644 --- a/src/lemonway/controllers/front/index.php +++ b/src/lemonway/controllers/front/index.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); diff --git a/src/lemonway/controllers/front/redirect.php b/src/lemonway/controllers/front/redirect.php index f710858..d8c0bd5 100644 --- a/src/lemonway/controllers/front/redirect.php +++ b/src/lemonway/controllers/front/redirect.php @@ -1,50 +1,43 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ class LemonwayRedirectModuleFrontController extends ModuleFrontController { protected $supportedLangs = array( - 'no', - 'jp', - 'ko', - 'sp', - 'fr', - 'xz', - 'ge', - 'it', - 'br', - 'da', - 'fi', - 'sw', - 'po', - 'fl', - 'ci', - 'pl', - 'ne', - 'ru' + 'da' => 'da', + 'de' => 'ge', + 'en' => 'en', + 'es' => 'sp', + 'fi' => 'fi', + 'fr' => 'fr', + 'it' => 'it', + 'ko' => 'ko', + 'no' => 'no', + 'pt' => 'po', + 'sv' => 'sw' ); protected $defaultLang = 'en'; @@ -181,7 +174,8 @@ public function postProcess() $message = Tools::getValue('response_msg'); $module_name = $this->module->displayName; $currency_id = (int)$this->context->currency->id; - $amount = number_format((float)$cart->getOrderTotal(true, 3), 2, '.', ''); + //$amount = number_format((float)$cart->getOrderTotal(true, 3), 2, '.', ''); + $amount = number_format(((float)$op->CRED + (float)$op->COM), 2, '.', ''); $this->module->validateOrder($cart->id, $payment_status, $amount, $module_name, $message, array( ), $currency_id, false, $secure_key); @@ -228,8 +222,8 @@ protected function useCard() */ protected function getLang() { - if (in_array($this->context->language->iso_code, $this->supportedLangs)) { - return $this->context->language->iso_code; + if (array_key_exists($this->context->language->iso_code, $this->supportedLangs)) { + return $this->supportedLangs[$this->context->language->iso_code]; } return $this->defaultLang; diff --git a/src/lemonway/controllers/front/validation.php b/src/lemonway/controllers/front/validation.php index f81552d..572adef 100644 --- a/src/lemonway/controllers/front/validation.php +++ b/src/lemonway/controllers/front/validation.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ class LemonwayValidationModuleFrontController extends ModuleFrontController @@ -47,7 +47,7 @@ public function postProcess() /** * If the module is not active anymore, no need to process anything. */ - if ($this->module->active == false) { + if (!$this->module->active) { die; } @@ -66,7 +66,7 @@ public function postProcess() Tools::redirect($this->context->link->getModuleLink('lemonway', 'confirmation', array( 'action' => $action, 'secure_key' => Tools::getValue('secure_key'), - 'cart_id'=>$cart_id + 'cart_id'=> $cart_id ), true)); } elseif ($this->isPost()) { //Is instant payment notification //wait for GET redirection finish in front @@ -106,7 +106,7 @@ public function postProcess() $payment_status = Configuration::get('PS_OS_PAYMENT'); $message = Tools::getValue('response_msg'); - if (($customer_id =Context::getContext()->customer->id) && $register_card) { + if (($customer_id = Context::getContext()->customer->id) && $register_card) { $card = $this->module->getCustomerCard($customer_id); if (!$card) { $card = array(); diff --git a/src/lemonway/controllers/index.php b/src/lemonway/controllers/index.php index c57519d..03ba3c2 100644 --- a/src/lemonway/controllers/index.php +++ b/src/lemonway/controllers/index.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); diff --git a/src/lemonway/index.php b/src/lemonway/index.php index c57519d..03ba3c2 100644 --- a/src/lemonway/index.php +++ b/src/lemonway/index.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); diff --git a/src/lemonway/lemonway.php b/src/lemonway/lemonway.php index 11fb734..0f3dbdf 100644 --- a/src/lemonway/lemonway.php +++ b/src/lemonway/lemonway.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ if (!defined('_PS_VERSION_')) { @@ -53,7 +53,7 @@ public function __construct() { $this->name = 'lemonway'; $this->tab = 'payments_gateways'; - $this->version = '1.2.3'; + $this->version = '1.2.4'; $this->author = 'SIRATECK'; $this->need_instance = 0; @@ -177,6 +177,10 @@ protected function addStatus( */ public function install() { + if (Shop::isFeatureActive()) { + Shop::setContext(Shop::CONTEXT_ALL); + } + if (extension_loaded('curl') == false) { $this->_errors[] = $this->l('You have to enable the cURL extension on your server to install this module'); return false; @@ -193,7 +197,10 @@ public function install() Configuration::updateValue('LEMONWAY_IS_TEST_MODE', false); //METHOD CONFIGURATION - Configuration::updateValue('LEMONWAY_CSS_URL', 'https://www.lemonway.fr/mercanet_lw.css'); + Configuration::updateValue( + 'LEMONWAY_CSS_URL', + 'https://webkit.lemonway.fr/css/mercanet/mercanet_lw_custom.css' + ); Configuration::updateValue('LEMONWAY_ONECLIC_ENABLED', false); include(dirname(__FILE__) . '/sql/install.php'); @@ -551,11 +558,17 @@ protected function postProcess() $form_values = $this->getConfigFormValues(); foreach (array_keys($form_values) as $key) { - if ($key == 'LEMONWAY_API_PASSWORD' && trim(Tools::getValue($key)) == "") { + $value = Tools::getValue($key); + + if ($key == 'LEMONWAY_API_PASSWORD' && trim($value) == "") { continue; } - Configuration::updateValue($key, Tools::getValue($key)); + if ($key != 'LEMONWAY_API_PASSWORD') { + $value = trim($value); + } + + Configuration::updateValue($key, $value); } } @@ -643,7 +656,7 @@ public function getCustomerCard($id_customer) { if (is_null($this->current_card)) { $query = 'SELECT * FROM `' . _DB_PREFIX_ . 'lemonway_oneclic` lo WHERE lo.`id_customer` = ' - . (int)$id_customer; + . (int)pSQL($id_customer); $this->current_card = Db::getInstance()->getRow($query); } @@ -661,6 +674,13 @@ public function insertOrUpdateCard($id_customer, $data) $data['date_add'] = date('Y-m-d H:i:s'); } + // Escape data + foreach ($data as $key => $value) { + $data[$key] = pSQL($value); + } + $data['id_customer'] = (int)$data['id_customer']; + $data['id_card'] = (int)$data['id_card']; + Db::getInstance()->insert('lemonway_oneclic', $data, false, true, Db::REPLACE); } @@ -681,7 +701,7 @@ public function getWalletDetails($wallet) public function getWkToken($id_cart) { return Db::getInstance()->getValue( - 'SELECT `wktoken` FROM `' . _DB_PREFIX_ . 'lemonway_wktoken` lw WHERE lw.`id_cart` = ' . (int)$id_cart + 'SELECT `wktoken` FROM `' . _DB_PREFIX_ . 'lemonway_wktoken` lw WHERE lw.`id_cart` = ' . (int)pSQL($id_cart) ); } @@ -700,13 +720,13 @@ public function saveWkToken($id_cart) $wkToken = $this->generateUniqueCartId($id_cart); //Default update query - $query = 'UPDATE `' . _DB_PREFIX_ . 'lemonway_wktoken` SET `wktoken` = \'' . $wkToken . "' WHERE `id_cart` = " - . (int)pSQL($id_cart); + $query = 'UPDATE `' . _DB_PREFIX_ . 'lemonway_wktoken` SET `wktoken` = \'' . pSQL($wkToken) . + "' WHERE `id_cart` = " . (int)pSQL($id_cart); //If cart haven't wkToken we insert it if (!$this->checkIfCartHasWkToken($id_cart)) { $query = 'INSERT INTO `' . _DB_PREFIX_ . 'lemonway_wktoken` (`id_cart`,`wktoken`) VALUES (\'' - . (int)pSQL($id_cart) . '\',\'' . $wkToken . '\') '; + . (int)pSQL($id_cart) . '\',\'' . pSQL($wkToken) . '\') '; } Db::getInstance()->execute($query); diff --git a/src/lemonway/services/ApiResponse.php b/src/lemonway/services/ApiResponse.php index d1415fc..cbf63a3 100644 --- a/src/lemonway/services/ApiResponse.php +++ b/src/lemonway/services/ApiResponse.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ require_once 'models/LwError.php'; @@ -32,8 +32,10 @@ public function __construct($xmlResponse) { $this->lwXml = $xmlResponse; if (isset($xmlResponse->E)) { - $this->lwError = new LwError($xmlResponse->E->Code, $xmlResponse->E->Msg . - " (" . $xmlResponse->E->Error . ")"); + $this->lwError = new LwError( + $xmlResponse->E->Code, + $xmlResponse->E->Msg . " (" . $xmlResponse->E->Error . ")" + ); } } diff --git a/src/lemonway/services/LemonWayConfig.php b/src/lemonway/services/LemonWayConfig.php index 96048ec..402f44b 100644 --- a/src/lemonway/services/LemonWayConfig.php +++ b/src/lemonway/services/LemonWayConfig.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ class LemonWayConfig diff --git a/src/lemonway/services/LemonWayKit.php b/src/lemonway/services/LemonWayKit.php index 62e525b..4bae242 100644 --- a/src/lemonway/services/LemonWayKit.php +++ b/src/lemonway/services/LemonWayKit.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ require_once 'models/Iban.php'; @@ -42,13 +42,13 @@ class LemonWayKit private static function accessConfig() { return array( - 'directKitUrl' => LemonWayConfig::getDirectkitUrl(), - 'webkitUrl' => LemonWayConfig::getWebkitUrl(), + 'directKitUrl' => LemonWayConfig::getDirectkitUrl(), + 'webkitUrl' => LemonWayConfig::getWebkitUrl(), 'isTestMode' => LemonWayConfig::isTestMode(), - 'wlLogin' => LemonWayConfig::getApiLogin(), - 'wlPass' => LemonWayConfig::getApiPassword(), - 'language' => 'en' - ); // @TODO get good language and filter with available languages in lw. + 'wlLogin' => LemonWayConfig::getApiLogin(), + 'wlPass' => LemonWayConfig::getApiPassword(), + 'language' => 'en' + ); // @TODO get language and filter with available languages in lw. } public function registerWallet($params) @@ -381,7 +381,14 @@ private function sendRequest($methodName, $params, $version) case 200: //General parsing //Cleanup XML - $response = (string)str_replace('', '', $response); + $response = (string)str_replace( + '' . + '', + '', + $response + ); $response = (string)str_replace('', '', $response); libxml_use_internal_errors(true); $xml = new \SimpleXMLElement($response); @@ -459,11 +466,10 @@ public function printCardForm($moneyInToken, $cssUrl = '', $language = 'en') "src=\"" . $root . "$1\"", $server_output ); + return $server_output; - break; default: throw new Exception($returnCode); - break; } } } diff --git a/src/lemonway/services/index.php b/src/lemonway/services/index.php index c57519d..03ba3c2 100644 --- a/src/lemonway/services/index.php +++ b/src/lemonway/services/index.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); diff --git a/src/lemonway/services/models/Extra.php b/src/lemonway/services/models/Extra.php index d0c6d92..47ef3ae 100644 --- a/src/lemonway/services/models/Extra.php +++ b/src/lemonway/services/models/Extra.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ /** diff --git a/src/lemonway/services/models/Iban.php b/src/lemonway/services/models/Iban.php index 39716c7..f721ba5 100644 --- a/src/lemonway/services/models/Iban.php +++ b/src/lemonway/services/models/Iban.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ class Iban diff --git a/src/lemonway/services/models/KycDoc.php b/src/lemonway/services/models/KycDoc.php index a77731f..c873e0e 100644 --- a/src/lemonway/services/models/KycDoc.php +++ b/src/lemonway/services/models/KycDoc.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ class KycDoc diff --git a/src/lemonway/services/models/LwError.php b/src/lemonway/services/models/LwError.php index e7539b5..8509ddf 100644 --- a/src/lemonway/services/models/LwError.php +++ b/src/lemonway/services/models/LwError.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ class LwError diff --git a/src/lemonway/services/models/LwModel.php b/src/lemonway/services/models/LwModel.php index 4964a29..49cccc3 100644 --- a/src/lemonway/services/models/LwModel.php +++ b/src/lemonway/services/models/LwModel.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ class LwModel diff --git a/src/lemonway/services/models/Operation.php b/src/lemonway/services/models/Operation.php index be7b16e..bf6b76d 100644 --- a/src/lemonway/services/models/Operation.php +++ b/src/lemonway/services/models/Operation.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ class Operation diff --git a/src/lemonway/services/models/SddMandate.php b/src/lemonway/services/models/SddMandate.php index 42ce4e4..87b96d2 100644 --- a/src/lemonway/services/models/SddMandate.php +++ b/src/lemonway/services/models/SddMandate.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ class SddMandate diff --git a/src/lemonway/services/models/Wallet.php b/src/lemonway/services/models/Wallet.php index bd6fb8f..c2c51e2 100644 --- a/src/lemonway/services/models/Wallet.php +++ b/src/lemonway/services/models/Wallet.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ class Wallet diff --git a/src/lemonway/services/models/index.php b/src/lemonway/services/models/index.php index c57519d..03ba3c2 100644 --- a/src/lemonway/services/models/index.php +++ b/src/lemonway/services/models/index.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); diff --git a/src/lemonway/sql/index.php b/src/lemonway/sql/index.php index c57519d..03ba3c2 100644 --- a/src/lemonway/sql/index.php +++ b/src/lemonway/sql/index.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); diff --git a/src/lemonway/sql/install.php b/src/lemonway/sql/install.php index 52eadc4..1e71227 100644 --- a/src/lemonway/sql/install.php +++ b/src/lemonway/sql/install.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ $sql = array(); diff --git a/src/lemonway/sql/uninstall.php b/src/lemonway/sql/uninstall.php index 6e2402a..b99ca2b 100644 --- a/src/lemonway/sql/uninstall.php +++ b/src/lemonway/sql/uninstall.php @@ -1,33 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -/** -* In some cases you should not drop the tables. -* Maybe the merchant will just try to reset the module -* but does not want to loose all of the data associated to the module. + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ $sql = array(); diff --git a/src/lemonway/translations/index.php b/src/lemonway/translations/index.php index c57519d..98e480d 100644 --- a/src/lemonway/translations/index.php +++ b/src/lemonway/translations/index.php @@ -1,6 +1,6 @@ -* @copyright 2007-2016 PrestaShop SA +* @copyright 2007-2017 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ diff --git a/src/lemonway/upgrade/index.php b/src/lemonway/upgrade/index.php index c57519d..03ba3c2 100644 --- a/src/lemonway/upgrade/index.php +++ b/src/lemonway/upgrade/index.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); diff --git a/src/lemonway/upgrade/upgrade-1.1.0.php b/src/lemonway/upgrade/upgrade-1.1.0.php index 2346c22..4964e4d 100644 --- a/src/lemonway/upgrade/upgrade-1.1.0.php +++ b/src/lemonway/upgrade/upgrade-1.1.0.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ if (!defined('_PS_VERSION_')) { diff --git a/src/lemonway/upgrade/upgrade-1.1.1.php b/src/lemonway/upgrade/upgrade-1.1.1.php index 7a5db30..f143129 100644 --- a/src/lemonway/upgrade/upgrade-1.1.1.php +++ b/src/lemonway/upgrade/upgrade-1.1.1.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ if (!defined('_PS_VERSION_')) { diff --git a/src/lemonway/views/css/back.css b/src/lemonway/views/css/back.css index 90847e6..8bd8b84 100644 --- a/src/lemonway/views/css/back.css +++ b/src/lemonway/views/css/back.css @@ -1,26 +1,26 @@ /** -* 2007-2016 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ /** diff --git a/src/lemonway/views/css/front.css b/src/lemonway/views/css/front.css index 6fb105c..a903e18 100644 --- a/src/lemonway/views/css/front.css +++ b/src/lemonway/views/css/front.css @@ -1,26 +1,26 @@ /** -* 2007-2016 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ /** @@ -56,10 +56,6 @@ margin-right:10px; } -#Lemonway_payment_form #Lemonway_payment_form_container { - /*padding: 10px; - background-color: #FBFBFB;*/ -} #Lemonway_payment_form #Lemonway_payment_form_container { background-color: #FBFBFB; display: block; @@ -74,18 +70,4 @@ padding: 33px 40px 34px 99px; letter-spacing: -1px; position: relative; -} - -/*#Lemonway_payment_form #Lemonway_payment_form_container:after { - display: block; - content: "\f054"; - position: absolute; - right: 15px; - margin-top: -11px; - top: 50%; - font-family: "FontAwesome"; - font-size: 25px; - height: 22px; - width: 14px; - color: #777777; -}*/ +} \ No newline at end of file diff --git a/src/lemonway/views/css/index.php b/src/lemonway/views/css/index.php index c57519d..03ba3c2 100644 --- a/src/lemonway/views/css/index.php +++ b/src/lemonway/views/css/index.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); diff --git a/src/lemonway/views/img/index.php b/src/lemonway/views/img/index.php index c57519d..03ba3c2 100644 --- a/src/lemonway/views/img/index.php +++ b/src/lemonway/views/img/index.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); diff --git a/src/lemonway/views/index.php b/src/lemonway/views/index.php index c57519d..03ba3c2 100644 --- a/src/lemonway/views/index.php +++ b/src/lemonway/views/index.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); diff --git a/src/lemonway/views/js/back.js b/src/lemonway/views/js/back.js index a1fe4fe..1cbd75f 100644 --- a/src/lemonway/views/js/back.js +++ b/src/lemonway/views/js/back.js @@ -1,29 +1,26 @@ /** -* 2007-2016 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -* -* Don't forget to prefix your containers with your own identifier -* to avoid any conflicts with others containers. + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ $(function() { diff --git a/src/lemonway/views/js/front.js b/src/lemonway/views/js/front.js index b11e82d..dd71cb8 100644 --- a/src/lemonway/views/js/front.js +++ b/src/lemonway/views/js/front.js @@ -1,27 +1,24 @@ /** -* 2007-2016 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -* -* Don't forget to prefix your containers with your own identifier -* to avoid any conflicts with others containers. + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ diff --git a/src/lemonway/views/js/index.php b/src/lemonway/views/js/index.php index c57519d..03ba3c2 100644 --- a/src/lemonway/views/js/index.php +++ b/src/lemonway/views/js/index.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); diff --git a/src/lemonway/views/templates/admin/api_configuration.tpl b/src/lemonway/views/templates/admin/api_configuration.tpl index b753f1b..31adf0e 100644 --- a/src/lemonway/views/templates/admin/api_configuration.tpl +++ b/src/lemonway/views/templates/admin/api_configuration.tpl @@ -1,27 +1,27 @@ -{* -* 2007-2016 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} +{** + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA + *}
diff --git a/src/lemonway/views/templates/admin/configure.tpl b/src/lemonway/views/templates/admin/configure.tpl index c930d28..1829344 100644 --- a/src/lemonway/views/templates/admin/configure.tpl +++ b/src/lemonway/views/templates/admin/configure.tpl @@ -1,36 +1,34 @@ -{* -* 2007-2016 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} +{** + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA + *}
{include file='./api_configuration.tpl'}
-
diff --git a/src/lemonway/views/templates/admin/index.php b/src/lemonway/views/templates/admin/index.php index c57519d..03ba3c2 100644 --- a/src/lemonway/views/templates/admin/index.php +++ b/src/lemonway/views/templates/admin/index.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); diff --git a/src/lemonway/views/templates/admin/method_configuration.tpl b/src/lemonway/views/templates/admin/method_configuration.tpl deleted file mode 100644 index 5805b57..0000000 --- a/src/lemonway/views/templates/admin/method_configuration.tpl +++ /dev/null @@ -1,30 +0,0 @@ -{* -* 2007-2016 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} - -
-

- Create your own module's template :) -

-
\ No newline at end of file diff --git a/src/lemonway/views/templates/admin/money_out/index.php b/src/lemonway/views/templates/admin/money_out/index.php index c57519d..03ba3c2 100644 --- a/src/lemonway/views/templates/admin/money_out/index.php +++ b/src/lemonway/views/templates/admin/money_out/index.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); diff --git a/src/lemonway/views/templates/admin/money_out/wallet_infos.tpl b/src/lemonway/views/templates/admin/money_out/wallet_infos.tpl index 0d00707..90ee2c8 100644 --- a/src/lemonway/views/templates/admin/money_out/wallet_infos.tpl +++ b/src/lemonway/views/templates/admin/money_out/wallet_infos.tpl @@ -1,27 +1,27 @@ -{* -* 2007-2016 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} +{** + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA + *}
{l s='Holder' mod='lemonway'} {$holder|escape:'htmlall':'UTF-8'}
{l s='Wallet' mod='lemonway'}: {$wallet|escape:'htmlall':'UTF-8'}
diff --git a/src/lemonway/views/templates/front/error.tpl b/src/lemonway/views/templates/front/error.tpl index 09c0d77..a6e9c47 100644 --- a/src/lemonway/views/templates/front/error.tpl +++ b/src/lemonway/views/templates/front/error.tpl @@ -1,27 +1,27 @@ -{* -* 2007-2016 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} +{** + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA + *}

{l s='An error occurred' mod='lemonway'}:

diff --git a/src/lemonway/views/templates/front/index.php b/src/lemonway/views/templates/front/index.php index c57519d..03ba3c2 100644 --- a/src/lemonway/views/templates/front/index.php +++ b/src/lemonway/views/templates/front/index.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); diff --git a/src/lemonway/views/templates/front/redirect.tpl b/src/lemonway/views/templates/front/redirect.tpl index 7919550..3a0a2ed 100644 --- a/src/lemonway/views/templates/front/redirect.tpl +++ b/src/lemonway/views/templates/front/redirect.tpl @@ -1,28 +1,28 @@ -{* -* 2007-2016 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} - +{** + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA + *} +
diff --git a/src/lemonway/views/templates/hook/confirmation.tpl b/src/lemonway/views/templates/hook/confirmation.tpl index 7dedba0..1c94ede 100644 --- a/src/lemonway/views/templates/hook/confirmation.tpl +++ b/src/lemonway/views/templates/hook/confirmation.tpl @@ -1,27 +1,27 @@ -{* -* 2007-2016 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} +{** + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA + *} {if (isset($status) == true) && ($status == 'ok')}

{l s='Your order on %s is complete.' sprintf=$shop_name mod='lemonway'}

diff --git a/src/lemonway/views/templates/hook/index.php b/src/lemonway/views/templates/hook/index.php index c57519d..03ba3c2 100644 --- a/src/lemonway/views/templates/hook/index.php +++ b/src/lemonway/views/templates/hook/index.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); diff --git a/src/lemonway/views/templates/hook/payment.tpl b/src/lemonway/views/templates/hook/payment.tpl index 3556710..c88ef63 100644 --- a/src/lemonway/views/templates/hook/payment.tpl +++ b/src/lemonway/views/templates/hook/payment.tpl @@ -1,27 +1,27 @@ -{* -* 2007-2016 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} +{** + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA + *}
diff --git a/src/lemonway/views/templates/index.php b/src/lemonway/views/templates/index.php index c57519d..03ba3c2 100644 --- a/src/lemonway/views/templates/index.php +++ b/src/lemonway/views/templates/index.php @@ -1,27 +1,27 @@ -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA + * 2007-2017 PrestaShop + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade PrestaShop to newer + * versions in the future. If you wish to customize PrestaShop for your + * needs please refer to http://www.prestashop.com for more information. + * + * @author PrestaShop SA + * @copyright 2007-2017 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + * International Registered Trademark & Property of PrestaShop SA */ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');