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,35 @@
<?php
/**
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* Class Przelewy24ReastCard
*/
class Przelewy24RestBlik extends Przelewy24RestAbstract implements Przelewy24RestBlikInterface
{
/**
* Execute payment by BLIK code.
*
* @param $token
* @param $blikCode
* @param $urlStatus
*
* @return array
*/
public function executePaymentByBlikCode($token, $blikCode)
{
$path = '/paymentMethod/blik/chargeByCode';
$payload = [
'token' => $token,
'blikCode' => $blikCode,
];
return $this->call($path, $payload, 'POST');
}
}