31 lines
1.4 KiB
PHP
31 lines
1.4 KiB
PHP
<?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');
|
|
} |