-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #497 from BoulangerV/MAGE-539-Paydirekt_Giropay_Co…
…nversion MAGE-539: Rename Paydirekt
- Loading branch information
Showing
13 changed files
with
249 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
...ode/community/Payone/Core/Model/System/Config/PaydirektSecuredPreorderGuaranteePeriod.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
/** | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the GNU General Public License (GPL 3) | ||
* that is bundled with this package in the file LICENSE.txt | ||
* | ||
* DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade Payone_Core to newer | ||
* versions in the future. If you wish to customize Payone_Core for your | ||
* needs please refer to http://www.payone.de for more information. | ||
* | ||
* @category Payone | ||
* @package Payone_Core_Model | ||
* @subpackage System | ||
* @copyright Copyright (c) 2012 <[email protected]> - www.noovias.com | ||
* @author Edward Mateja <[email protected]> | ||
* @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3) | ||
* @link http://www.votum.com | ||
*/ | ||
|
||
/** | ||
* | ||
* @category Payone | ||
* @package Payone_Core_Model | ||
* @subpackage System | ||
* @copyright Copyright (c) 2012 <[email protected]> - www.noovias.com | ||
* @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3) | ||
* @link http://www.votum.com | ||
*/ | ||
class Payone_Core_Model_System_Config_PaydirektSecuredPreorderGuaranteePeriod extends Payone_Core_Model_System_Config_Abstract | ||
{ | ||
const MIN_DAYS = 1; | ||
const MAX_DAYS = 15; | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function toArray() | ||
{ | ||
$options = array(); | ||
for ($d = self::MIN_DAYS ; $d <= self::MAX_DAYS ; $d++) { | ||
$options[$d] = $d; | ||
} | ||
|
||
return $options; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
app/code/community/Payone/Core/sql/payone_core_setup/mysql4-upgrade-5.3.2-5.3.3.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
/** | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the GNU General Public License (GPL 3) | ||
* that is bundled with this package in the file LICENSE.txt | ||
* | ||
* DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade Payone_Core to newer | ||
* versions in the future. If you wish to customize Payone_Core for your | ||
* needs please refer to http://www.payone.de for more information. | ||
* | ||
* @category Payone | ||
* @package Payone_Core | ||
* @subpackage sql | ||
* @copyright Copyright (c) 2013 <[email protected]> - www.votum.de | ||
* @author Edward Mateja <[email protected]> | ||
* @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3) | ||
* @link http://www.votum.de | ||
*/ | ||
/** @var $this Mage_Core_Model_Resource_Setup */ | ||
/** @var $installer Mage_Core_Model_Resource_Setup */ | ||
$installer = $this; | ||
$installer->startSetup(); | ||
$tablePaymentMethod = $this->getTable('payone_core/config_payment_method'); | ||
/** @var $helper Payone_Core_Helper_Data */ | ||
$helper = Mage::helper('payone_core'); | ||
$useSqlInstaller = $helper->mustUseSqlInstaller(); | ||
if ($useSqlInstaller) { | ||
$sql = file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'upgrade-5.3.2-5.3.3.sql'); | ||
$installSqlConfig = array( | ||
'{{payone_config_payment_method}}' => $tablePaymentMethod | ||
); | ||
$installSql = str_replace(array_keys($installSqlConfig), array_values($installSqlConfig), $sql); | ||
$installer->run($installSql); | ||
} else { | ||
$connection = $installer->getConnection(); | ||
/** Alter table 'payone_config_payment_method' */ | ||
// Update table payone_config_payment_method | ||
$connection->addColumn( | ||
$tablePaymentMethod, 'wallet_paydirekt_enable_secured_preorder', | ||
'INT(1) COMMENT \'Secured pre-order enabled\'' | ||
); | ||
$connection->addColumn( | ||
$tablePaymentMethod, 'wallet_paydirekt_secured_preorder_guarantee_period', | ||
'INT(5) COMMENT \'Guarantee period for secured pre-order\'' | ||
); | ||
} | ||
$installer->endSetup(); |
8 changes: 8 additions & 0 deletions
8
app/code/community/Payone/Core/sql/payone_core_setup/upgrade-5.3.2-5.3.3.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#----------------------------------------------------------------- | ||
#-- Alter Table payone_config_payment_method | ||
#----------------------------------------------------------------- | ||
ALTER TABLE `{{payone_config_payment_method}}` | ||
ADD `wallet_paydirekt_enable_secured_preorder` INT(1) COMMENT 'Secured pre-order enabled'; | ||
|
||
ALTER TABLE `{{payone_config_payment_method}}` | ||
ADD `wallet_paydirekt_secured_preorder_guarantee_period` INT(5) COMMENT 'Guarantee period for secured pre-order'; |
Oops, something went wrong.