This commit is contained in:
2025-04-01 00:38:54 +02:00
parent d4d4c0c09d
commit 87da06293a
22351 changed files with 5168854 additions and 7538 deletions

View File

@@ -0,0 +1,37 @@
<?php
/**
* Class Przelewy24HookHelper
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* Class Przelewy24HookHelper
*
* This class contain methods for hooks.
*/
class Przelewy24HookHelper
{
/**
* Check if store is configured.
*
* Some hooks cannot be run before configuration.
*
* @param string $suffix
*
* @return bool
*/
public static function isStoreConfiguredForSuffix($suffix)
{
return
(int) Configuration::get('P24_MERCHANT_ID' . $suffix) > 0
&& (int) Configuration::get('P24_SHOP_ID' . $suffix) > 0
&& !empty(Configuration::get('P24_SALT' . $suffix))
;
}
}