first commit
This commit is contained in:
21
modules/payu/upgrade/index.php
Normal file
21
modules/payu/upgrade/index.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* PayU
|
||||
*
|
||||
* @author PayU
|
||||
* @copyright Copyright (c) 2016 PayU
|
||||
* @license http://opensource.org/licenses/LGPL-3.0 Open Software License (LGPL 3.0)
|
||||
*
|
||||
* http://www.payu.com
|
||||
*/
|
||||
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
28
modules/payu/upgrade/upgrade-2.5.0.php
Normal file
28
modules/payu/upgrade/upgrade-2.5.0.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* PayU
|
||||
*
|
||||
* @author PayU
|
||||
* @copyright Copyright (c) 2016 PayU
|
||||
* @license http://opensource.org/licenses/LGPL-3.0 Open Software License (LGPL 3.0)
|
||||
*
|
||||
* http://www.payu.com
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_2_5_0($module)
|
||||
{
|
||||
$module->registerHook('displayOrderDetail');
|
||||
|
||||
if (Db::getInstance()->ExecuteS('SHOW COLUMNS FROM ' . _DB_PREFIX_ . 'order_payu_payments LIKE "ext_order_id"') == false) {
|
||||
Db::getInstance()->Execute('ALTER TABLE ' . _DB_PREFIX_ . 'order_payu_payments ADD ext_order_id VARCHAR(64) NOT NULL AFTER id_session');
|
||||
}
|
||||
|
||||
Configuration::updateValue('PAYU_PAYMENT_STATUS_CANCELED', $module->addNewOrderState('PAYU_PAYMENT_STATUS_CANCELED',
|
||||
array('en' => 'PayU payment canceled', 'pl' => 'Płatność PayU anulowana'), true));
|
||||
|
||||
return true;
|
||||
}
|
||||
26
modules/payu/upgrade/upgrade-3.0.10.php
Normal file
26
modules/payu/upgrade/upgrade-3.0.10.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* PayU
|
||||
*
|
||||
* @author PayU
|
||||
* @copyright Copyright (c) 2018 PayU
|
||||
* @license http://opensource.org/licenses/LGPL-3.0 Open Software License (LGPL 3.0)
|
||||
*
|
||||
* http://www.payu.com
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_3_0_10($module)
|
||||
{
|
||||
return Configuration::updateValue('PAYU_PROMOTE_CREDIT', 1) &&
|
||||
Configuration::updateValue('PAYU_PROMOTE_CREDIT_CART', 1) &&
|
||||
Configuration::updateValue('PAYU_PROMOTE_CREDIT_SUMMARY', 1) &&
|
||||
Configuration::updateValue('PAYU_PROMOTE_CREDIT_PRODUCT', 1) &&
|
||||
$module->registerHook('displayOrderDetail') &&
|
||||
$module->registerHook('displayProductPriceBlock') &&
|
||||
$module->registerHook('displayCheckoutSubtotalDetails') &&
|
||||
$module->registerHook('displayCheckoutSummaryTop');
|
||||
}
|
||||
20
modules/payu/upgrade/upgrade-3.1.0.php
Normal file
20
modules/payu/upgrade/upgrade-3.1.0.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* PayU
|
||||
*
|
||||
* @author PayU
|
||||
* @copyright Copyright (c) 2018 PayU
|
||||
* @license http://opensource.org/licenses/LGPL-3.0 Open Software License (LGPL 3.0)
|
||||
*
|
||||
* http://www.payu.com
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_3_1_0($module)
|
||||
{
|
||||
return Configuration::updateValue('PAYU_SEPARATE_CARD_PAYMENT', 0) &&
|
||||
Configuration::updateValue('PAYU_CARD_PAYMENT_WIDGET', 0);
|
||||
}
|
||||
Reference in New Issue
Block a user