Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Wysocki committed Dec 9, 2024
1 parent 9f06ae2 commit 36397c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Model/ApiFacade/OpenApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,13 @@ public function blik(string $transactionId, array $blikPaymentData): array
'blikPaymentData' => [
'type' => 0,
'blikToken' => $blikPaymentData['blikToken'],
'aliases' => $blikPaymentData['aliases'] ?? [],
],
];

if (isset($blikPaymentData['aliases'])) {
$additional_payment_data['blikPaymentData']['aliases'] = $blikPaymentData['aliases'];
}

$result = $this->tpayApi->transactions()->createInstantPaymentByTransactionId($additional_payment_data, $transactionId);

return $this->updateRedirectUrl($this->waitForBlikAccept($result));
Expand Down

0 comments on commit 36397c4

Please sign in to comment.