first commit

This commit is contained in:
2025-01-06 20:47:25 +01:00
commit 3bdbd78c2f
25591 changed files with 3586440 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?php
/**
* Class Przelewy24HookHelper
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*/
/**
* 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))
;
}
}