diff --git a/crates/router/src/connector/bankofamerica/transformers.rs b/crates/router/src/connector/bankofamerica/transformers.rs index af64f400b7b3..b987a6717a16 100644 --- a/crates/router/src/connector/bankofamerica/transformers.rs +++ b/crates/router/src/connector/bankofamerica/transformers.rs @@ -2436,10 +2436,7 @@ impl TryFrom<&domain::Card> for PaymentInformation { fn try_from(ccard: &domain::Card) -> Result { let card_type = match ccard.card_network.clone().and_then(get_boa_card_type) { Some(card_network) => Some(card_network.to_string()), - None => ccard - .get_card_issuer() - .ok() - .map(String::from), + None => ccard.get_card_issuer().ok().map(String::from), }; Ok(Self::Cards(Box::new(CardPaymentInformation { card: Card { diff --git a/crates/router/src/connector/cybersource/transformers.rs b/crates/router/src/connector/cybersource/transformers.rs index e0530d7d834f..32f2cbdd78be 100644 --- a/crates/router/src/connector/cybersource/transformers.rs +++ b/crates/router/src/connector/cybersource/transformers.rs @@ -127,10 +127,7 @@ impl TryFrom<&types::SetupMandateRouterData> for CybersourceZeroMandateRequest { .and_then(get_cybersource_card_type) { Some(card_network) => Some(card_network.to_string()), - None => ccard - .get_card_issuer() - .ok() - .map(String::from), + None => ccard.get_card_issuer().ok().map(String::from), }; ( PaymentInformation::Cards(Box::new(CardPaymentInformation { @@ -1160,10 +1157,7 @@ impl .and_then(get_cybersource_card_type) { Some(card_network) => Some(card_network.to_string()), - None => ccard - .get_card_issuer() - .ok() - .map(String::from), + None => ccard.get_card_issuer().ok().map(String::from), }; let security_code = if item @@ -1341,10 +1335,7 @@ impl .and_then(get_cybersource_card_type) { Some(card_network) => Some(card_network.to_string()), - None => ccard - .get_card_issuer() - .ok() - .map(String::from), + None => ccard.get_card_issuer().ok().map(String::from), }; let payment_information = PaymentInformation::Cards(Box::new(CardPaymentInformation { @@ -1826,10 +1817,7 @@ impl TryFrom<&CybersourceRouterData<&types::PaymentsAuthorizeRouterData>> .and_then(get_cybersource_card_type) { Some(card_network) => Some(card_network.to_string()), - None => ccard - .get_card_issuer() - .ok() - .map(String::from), + None => ccard.get_card_issuer().ok().map(String::from), }; let payment_information = PaymentInformation::Cards(Box::new(CardPaymentInformation { @@ -2556,10 +2544,7 @@ impl TryFrom<&CybersourceRouterData<&types::PaymentsPreProcessingRouterData>> .and_then(get_cybersource_card_type) { Some(card_network) => Some(card_network.to_string()), - None => ccard - .get_card_issuer() - .ok() - .map(String::from), + None => ccard.get_card_issuer().ok().map(String::from), }; Ok(PaymentInformation::Cards(Box::new( CardPaymentInformation {