first commit

This commit is contained in:
2024-11-11 18:46:54 +01:00
commit a630d17338
25634 changed files with 4923715 additions and 0 deletions

View 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;

View 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;
}

View 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');
}

View 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);
}