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(routing): Fix kgraph to exclude PM auth during construction (#3019)

Sarthak Sonic6cb527f07e2
diff --git a/crates/router/src/core/payments/routing.rs b/crates/router/src/core/payments/routing.rs
index 841b48b944..96cd656151 100644
--- a/crates/router/src/core/payments/routing.rs
+++ b/crates/router/src/core/payments/routing.rs
@@ -523,8 +523,10 @@ pub async fn refresh_kgraph_cache(
.await
.change_context(errors::RoutingError::KgraphCacheRefreshFailed)?;
- merchant_connector_accounts
- .retain(|mca| mca.connector_type != storage_enums::ConnectorType::PaymentVas);
+ merchant_connector_accounts.retain(|mca| {
+ mca.connector_type != storage_enums::ConnectorType::PaymentVas
+ && mca.connector_type != storage_enums::ConnectorType::PaymentMethodAuth
+ });
#[cfg(feature = "business_profile_routing")]
let merchant_connector_accounts = payments_oss::helpers::filter_mca_based_on_business_profile(