Skip to content

Commit

Permalink
Merge pull request #560 from Adyen/develop
Browse files Browse the repository at this point in the history
Update 4.1.2
  • Loading branch information
goran-stamenkovski-logeecom authored Sep 30, 2024
2 parents cb4ef53 + ae14197 commit b8bf955
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Service/PaymentMethodsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function getPaymentMethods(SalesChannelContext $context, $orderId = ''):
return CacheValueCompressor::uncompress($paymentMethodsResponseCache->get());
}

$responseData = [];
$responseData = new PaymentMethodsResponse();
try {
$paymentsApiService = new PaymentsApi(
$this->clientService->getClient($context->getSalesChannelId())
Expand Down
2 changes: 1 addition & 1 deletion src/Subscriber/PaymentSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public function onShoppingCartLoaded(PageLoadedEvent $event)
$giftcards = [];
if ($paymentMethod && $paymentMethod->getActive()) {
$giftcards = $this->paymentMethodsFilterService->filterAdyenPaymentMethodsByType(
$paymentMethods->getPaymentMethods(),
$paymentMethods->getPaymentMethods() ?? [],
'giftcard'
);
}
Expand Down

0 comments on commit b8bf955

Please sign in to comment.