Skip to content

Commit

Permalink
Blik fix
Browse files Browse the repository at this point in the history
  • Loading branch information
krzGablo committed Mar 11, 2024
1 parent 78d92de commit dbf588e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Model/ApiFacade/OpenApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function createBlikZeroTransaction(array $data): array
return $this->updateRedirectUrl($transaction);
}

public function blik(string $blikCode, string $transactionId): array
public function blik(string $transactionId, string $blikCode): array
{
$additional_payment_data = [
'channelId' => 64,
Expand All @@ -81,7 +81,7 @@ public function createBlikZero(array $data): array
{
$transaction = $this->createBlikZeroTransaction($data);

return $this->blik($data['blikPaymentData']['blikToken'], $transaction['transactionId']);
return $this->blik($transaction['transactionId'], $data['blikPaymentData']['blikToken']);
}

public function makeRefund(InfoInterface $payment, float $amount): array
Expand Down

0 comments on commit dbf588e

Please sign in to comment.