first commit
This commit is contained in:
31
plugins/stSantanderRatyPlugin/config/config.php
Normal file
31
plugins/stSantanderRatyPlugin/config/config.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
// stPluginHelper::addConfigValue('stPaymentType', 'stSantaderPlugin', array('name' => 'stSantander', 'description' => 'Płatność eRaty Santander Consumer Bank'));
|
||||
|
||||
if (floatval(phpversion()) >= 7.1)
|
||||
{
|
||||
stPaymentTypeConfiguration::register('eRaty Santander Consumer Bank', stSantanderRatyPaymentType::class, [
|
||||
'show_payment_info' => [
|
||||
'product' => true,
|
||||
'shopping_cart' => true,
|
||||
],
|
||||
'payment_info.width' => 950,
|
||||
'payment_info.height' => 760,
|
||||
'installment_payment' => true,
|
||||
]);
|
||||
}
|
||||
|
||||
if (SF_APP == 'frontend')
|
||||
{
|
||||
stPluginHelper::addEnableModule('stSantanderRatyFrontend', 'frontend');
|
||||
stPluginHelper::addRouting('stSantanderRatyFrontend', '/eraty-santander/:action/*', 'stSantanderRatyFrontend', 'list', 'frontend');
|
||||
$dispatcher->connect('stUserDataActions.validateAddBasketUser', array('stSantanderListener', 'validateAddBasketUser'));
|
||||
stSocketView::addComponent('stPayment_show_stSantander_info', 'stSantanderRatyFrontend', 'calculateInBasket');
|
||||
stSecurity::addCSPException('*.eraty.pl');
|
||||
stSecurity::addCSPException('static.hotjar.com');
|
||||
}
|
||||
elseif (SF_APP == 'backend')
|
||||
{
|
||||
stPluginHelper::addEnableModule('stSantanderRatyBackend', 'backend');
|
||||
stPluginHelper::addRouting('stSantanderRatyBackend', '/eraty-santander/:action/*', 'stSantanderRatyBackend', 'config', 'backend');
|
||||
}
|
||||
Reference in New Issue
Block a user