This commit is contained in:
2025-03-21 20:24:43 +01:00
parent 224398df90
commit f34c9162d4
12427 changed files with 5329941 additions and 373384 deletions

View File

@@ -0,0 +1,51 @@
<?php
/**
* Class Przelewy24RestBlikEmpty
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* Class Przelewy24RestBlikEmpty
*
* This class is used if it is not possible to deliver working instance.
* Added Logger to actually leave trace what is wrong.
* Full rest integration will deprecate this and corresponding factory class.
*/
class Przelewy24RestBlikEmpty implements Przelewy24RestBlikInterface
{
private $blikCode;
private $token;
/**
* Execute payment by BLIK code.
*
* @param $token
* @param $blikCode
*
* @return object|bool
*/
public function executePaymentByBlikCode($token, $blikCode)
{
$this->blikCode = $blikCode;
$this->token = $token;
$this->logEmptySuffixErrorData();
return false;
}
/**
* Dump object state to log.
*/
private function logEmptySuffixErrorData()
{
PrestaShopLogger::addLog(
'No BlikRest class for suffix, probable misconfiguration details: ' . json_encode(get_object_vars($this))
);
}
}