Skip to content

Commit

Permalink
Blik fix
Browse files Browse the repository at this point in the history
  • Loading branch information
krzGablo committed Jan 23, 2024
1 parent 1773509 commit 35e1541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/ApiFacade/Transaction/TransactionApiFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function channels(): array

public function translateGroupToChannel(array $data, bool $redirectToChannel): array
{
if ($redirectToChannel && $this->useOpenApi && $data['group'] && !$data['channel']) {
if ($redirectToChannel && $this->useOpenApi && $data['group'] && !$data['channel'] && TransactionOriginApi::BLIK_CHANNEL != (int) $data['group']) {
foreach ($this->openApi->channels() as $channel) {
$group = $channel->groups[0];
if ($group['id'] == $data['group']) {
Expand Down

0 comments on commit 35e1541

Please sign in to comment.