From 67a6fbff888fa376bbdf7e599e71e89aab470742 Mon Sep 17 00:00:00 2001 From: khushboos Date: Thu, 9 Jan 2025 14:48:07 +0100 Subject: [PATCH] Updating the condition --- Helper/PaymentResponseHandler.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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);