Skip to content

Commit

Permalink
Updating the condition
Browse files Browse the repository at this point in the history
  • Loading branch information
khushboo-singhvi committed Jan 9, 2025
1 parent 1de3979 commit 67a6fbf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Helper/PaymentResponseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 67a6fbf

Please sign in to comment.