*/ /** * Dodanie informacji o istnieniu płatności */ stPluginHelper::addConfigValue('stPaymentType', 'stPrzelewy24Plugin', array('name' => 'stPrzelewy24', 'description' => 'Płatność przez serwis przelewy24.pl')); /** * Włączanie modułu */ stPluginHelper::addEnableModule('stPrzelewy24Backend', 'backend'); stPluginHelper::addEnableModule('stPrzelewy24Frontend', 'frontend'); /** * Dodawania routingu */ stPluginHelper::addRouting('stPrzelewy24Plugin', '/przelewy24/:action/*', 'stPrzelewy24Backend', 'config', 'backend'); stPluginHelper::addRouting('stPrzelewy24Plugin', '/przelewy24/:action/*', 'stPrzelewy24Frontend', 'index', 'frontend'); /** * Wyłącznie modułu w trybie open */ stLicenseTypeHelper::addCommercialModule('stPrzelewy24Plugin'); /** * Dodanie wyjątku CSP m.in. do ikonek platnosci pobieranych z adresu https://static.przelewy24.pl */ if (SF_APP == 'frontend'){ stSecurity::addCSPException('*.przelewy24.pl'); }