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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
refactor(dynamic_routing): remove delete_merchant for DE (#9076)
Ankit Kumar Guptaec5a955158d1
diff --git a/crates/router/src/core/admin.rs b/crates/router/src/core/admin.rsindex 7d625a7839..3e41150e05 100644--- a/crates/router/src/core/admin.rs+++ b/crates/router/src/core/admin.rs@@ -1220,25 +1220,6 @@ pub async fn merchant_account_delete(is_deleted = is_merchant_account_deleted && is_merchant_key_store_deleted;}- // Call to DE here- #[cfg(all(feature = "dynamic_routing", feature = "v1"))]- {- if state.conf.open_router.dynamic_routing_enabled && is_deleted {- merchant_account- .default_profile- .as_ref()- .async_map(|profile_id| {- routing::helpers::delete_decision_engine_merchant(&state, profile_id)- })- .await- .transpose()- .map_err(|err| {- logger::error!("Failed to delete merchant in Decision Engine {err:?}");- })- .ok();- }- }-let state = state.clone();authentication::decision::spawn_tracked_job(async move {