Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix: remove redundant call to populate_payment_data function (#3054)

Hrithikesh53df543b7f14
diff --git a/Cargo.lock b/Cargo.lock
index cb38c0b70b..d2e8d9dd5d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1708,7 +1708,6 @@ dependencies = [
"thiserror",
"time",
"tokio 1.32.0",
- "utoipa",
]
[[package]]
diff --git a/crates/common_utils/Cargo.toml b/crates/common_utils/Cargo.toml
index 3a41b111b3..3619c93d77 100644
--- a/crates/common_utils/Cargo.toml
+++ b/crates/common_utils/Cargo.toml
@@ -38,7 +38,6 @@ strum = { version = "0.24.1", features = ["derive"] }
thiserror = "1.0.40"
time = { version = "0.3.21", features = ["serde", "serde-well-known", "std"] }
tokio = { version = "1.28.2", features = ["macros", "rt-multi-thread"], optional = true }
-utoipa = { version = "3.3.0", features = ["preserve_order"] }
# First party crates
common_enums = { version = "0.1.0", path = "../common_enums" }
diff --git a/crates/router/src/core/payments.rs b/crates/router/src/core/payments.rs
index 16fda276f6..21a2866c9f 100644
--- a/crates/router/src/core/payments.rs
+++ b/crates/router/src/core/payments.rs
@@ -953,10 +953,6 @@ where
payment_data,
)
.await?;
- operation
- .to_domain()?
- .populate_payment_data(state, payment_data, merchant_account)
- .await?;
let mut router_data = payment_data
.construct_router_data(