From d0913698a616d0874ff5edbda8cf69a4c88035b2 Mon Sep 17 00:00:00 2001 From: kGablo Date: Mon, 18 Mar 2024 10:55:56 +0100 Subject: [PATCH] tpayPaymentConfig fix --- Model/ApiFacade/CardTransaction/CardOpen.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Model/ApiFacade/CardTransaction/CardOpen.php b/Model/ApiFacade/CardTransaction/CardOpen.php index 1a66e4d..172bebb 100755 --- a/Model/ApiFacade/CardTransaction/CardOpen.php +++ b/Model/ApiFacade/CardTransaction/CardOpen.php @@ -76,6 +76,10 @@ public function createTransaction(): array public function payTransaction(string $orderId, array $additionalPaymentInformation, ?string $transactionId = null, ?array $customerToken = null): string { + if (null === $this->tpayPaymentConfig) { + $this->tpayPaymentConfig = $this->tpay->getTpayFormData($orderId); + } + if (isset($additionalPaymentInformation['card_id']) && false !== $additionalPaymentInformation['card_id'] && $this->tpayConfig->getCardSaveEnabled()) { $cardId = (int) $additionalPaymentInformation['card_id'];