From ca4e7cec1d83b2ccf73be7d0b27fb406f6120178 Mon Sep 17 00:00:00 2001 From: Shankar Singh C Date: Fri, 8 Nov 2024 14:00:32 +0530 Subject: [PATCH] ci check --- crates/router/src/core/payments/helpers.rs | 32 ++++------------------ 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/crates/router/src/core/payments/helpers.rs b/crates/router/src/core/payments/helpers.rs index 5a8bc5cd12bd..acaccccbb17b 100644 --- a/crates/router/src/core/payments/helpers.rs +++ b/crates/router/src/core/payments/helpers.rs @@ -4788,32 +4788,17 @@ pub fn validate_customer_access( pub fn is_apple_pay_simplified_flow( connector_metadata: Option, - connector_wallets_details: Option, connector_name: Option<&String>, ) -> CustomResult { - let connector_apple_pay_wallet_details = - get_applepay_metadata(connector_wallets_details) - .map_err(|error| { - logger::debug!( - "Apple pay connector wallets details parsing failed for {:?} in is_apple_pay_simplified_flow {:?}", - connector_name, - error - ) - }) - .ok(); - - let option_apple_pay_metadata = match connector_apple_pay_wallet_details { - Some(apple_pay_wallet_details) => Some(apple_pay_wallet_details), - None => get_applepay_metadata(connector_metadata) - .map_err(|error| { - logger::debug!( - "Apple pay metadata parsing failed for {:?} in is_apple_pay_simplified_flow {:?}", + let option_apple_pay_metadata = get_applepay_metadata(connector_metadata) + .map_err(|error| { + logger::info!( + "Apple pay metadata parsing for {:?} in is_apple_pay_simplified_flow {:?}", connector_name, error ) - }) - .ok(), - }; + }) + .ok(); // return true only if the apple flow type is simplified Ok(matches!( @@ -4999,7 +4984,6 @@ where let connector_data_list = if is_apple_pay_simplified_flow( merchant_connector_account_type.get_metadata(), - merchant_connector_account_type.get_connector_wallets_details(), merchant_connector_account_type .get_connector_name() .as_ref(), @@ -5027,10 +5011,6 @@ where for merchant_connector_account in profile_specific_merchant_connector_account_list { if is_apple_pay_simplified_flow( merchant_connector_account.metadata.clone(), - merchant_connector_account - .connector_wallets_details - .as_deref() - .cloned(), Some(&merchant_connector_account.connector_name), )? { let connector_data = api::ConnectorData::get_connector_by_name(