From 5ace65810b6747b22ce37c04fc7e174c12cc9b35 Mon Sep 17 00:00:00 2001 From: swangi-kumari Date: Mon, 23 Dec 2024 13:56:56 +0530 Subject: [PATCH] refactor: clippy --- crates/router/src/core/payments/transformers.rs | 8 -------- crates/router/src/core/relay/utils.rs | 1 - 2 files changed, 9 deletions(-) diff --git a/crates/router/src/core/payments/transformers.rs b/crates/router/src/core/payments/transformers.rs index a609c56feefb..e532abaa7ea6 100644 --- a/crates/router/src/core/payments/transformers.rs +++ b/crates/router/src/core/payments/transformers.rs @@ -485,14 +485,6 @@ pub async fn construct_payment_router_data_for_capture<'a>( .as_ref() .map(|description| description.get_string_repr()) .map(ToOwned::to_owned), - // TODO: evaluate why we need to send merchant's return url here - // This should be the return url of application, since application takes care of the redirection - return_url: payment_data - .payment_intent - .return_url - .as_ref() - .map(|description| description.get_string_repr()) - .map(ToOwned::to_owned), // TODO: Create unified address address: hyperswitch_domain_models::payment_address::PaymentAddress::default(), auth_type: payment_data.payment_attempt.authentication_type, diff --git a/crates/router/src/core/relay/utils.rs b/crates/router/src/core/relay/utils.rs index 0753be1ec435..946f8df7d64e 100644 --- a/crates/router/src/core/relay/utils.rs +++ b/crates/router/src/core/relay/utils.rs @@ -78,7 +78,6 @@ pub async fn construct_relay_refund_router_data<'a, F>( payment_method: common_enums::PaymentMethod::default(), connector_auth_type, description: None, - return_url: None, address: hyperswitch_domain_models::payment_address::PaymentAddress::default(), auth_type: common_enums::AuthenticationType::default(), connector_meta_data: None,