Skip to content

Commit

Permalink
ci check
Browse files Browse the repository at this point in the history
  • Loading branch information
ShankarSinghC committed Nov 8, 2024
1 parent d66aaeb commit 3c23c14
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions crates/router/src/core/payments/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4791,29 +4791,15 @@ pub fn is_apple_pay_simplified_flow(
connector_wallets_details: Option<pii::SecretSerdeValue>,
connector_name: Option<&String>,
) -> CustomResult<bool, errors::ApiErrorResponse> {
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!(
Expand Down

0 comments on commit 3c23c14

Please sign in to comment.