diff --git a/Helper/PaymentResponseHandler.php b/Helper/PaymentResponseHandler.php index 845cb1d92..085224baf 100644 --- a/Helper/PaymentResponseHandler.php +++ b/Helper/PaymentResponseHandler.php @@ -221,9 +221,8 @@ public function handlePaymentsDetailsResponse( $ccType = $payment->getAdditionalInformation('cc_type'); if (!empty($paymentsDetailsResponse['additionalData']['paymentMethod']) && - !is_null($ccType) && - $isWalletPaymentMethod && - $isCardPaymentMethod + is_null($ccType) && + ($isWalletPaymentMethod || $isCardPaymentMethod) ) { $ccType = $paymentsDetailsResponse['additionalData']['paymentMethod']; $payment->setAdditionalInformation('cc_type', $ccType);