Skip to content

Commit 920a058

Browse files
author
Daniil Tkachev
committed
PSPAYPAL-877 -draft- Fix saved Paypal payments
1 parent de66b9f commit 920a058

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Controller/PaymentController.php

-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ public function validatePayment()
205205
Registry::getSession()->setVariable("selectedVaultPaymentSourceIndex", $paymentSourceIndex);
206206
}
207207

208-
209208
return parent::validatePayment();
210209
}
211210

src/Service/ModuleSettings.php

+4
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,10 @@ public function isVaultingAllowedForPayment(string $paymentId): bool
641641
$basket
642642
);
643643

644+
if ($paymentList === null) {
645+
$paymentList = [];
646+
}
647+
644648
return $paymentEnabled &&
645649
$this->getIsVaultingActive() &&
646650
$vaultingType &&

0 commit comments

Comments
 (0)