first commit

This commit is contained in:
2024-10-25 14:16:28 +02:00
commit 925276dbb2
33795 changed files with 4780077 additions and 0 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))
);
}
}