Skip to content

Commit

Permalink
tpayPaymentConfig fix
Browse files Browse the repository at this point in the history
  • Loading branch information
krzGablo committed Mar 18, 2024
1 parent a6cc6d9 commit d091369
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Model/ApiFacade/CardTransaction/CardOpen.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];

Expand Down

0 comments on commit d091369

Please sign in to comment.