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(euclid): remove business_profile routing feature flag (#5430)

Prajjwal Kumare18ea7a7bab2
diff --git a/crates/router/src/core/payment_methods/cards.rs b/crates/router/src/core/payment_methods/cards.rs
index 5f5e59a89a..fd8da0e24f 100644
--- a/crates/router/src/core/payment_methods/cards.rs
+++ b/crates/router/src/core/payment_methods/cards.rs
@@ -2362,7 +2362,6 @@ pub async fn list_payment_methods(
let mut response: Vec<ResponsePaymentMethodIntermediate> = vec![];
// Key creation for storing PM_FILTER_CGRAPH
- #[cfg(feature = "business_profile_routing")]
let key = {
let profile_id = profile_id
.clone()
@@ -2376,9 +2375,6 @@ pub async fn list_payment_methods(
)
};
- #[cfg(not(feature = "business_profile_routing"))]
- let key = { format!("pm_filters_cgraph_{}", &merchant_account.merchant_id) };
-
if let Some(graph) = get_merchant_pm_filter_graph(&state, &key).await {
// Derivation of PM_FILTER_CGRAPH from MokaCache successful
for mca in &filtered_mcas {