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
feat(superposition): add provider merchant_id as dimension filter to SDK config APIs (#14748)
Sahkal Poddar5d6a6f1e6a6f
diff --git a/crates/router/src/core/superposition_sdk_config.rs b/crates/router/src/core/superposition_sdk_config.rsindex 1bb2a873d9..cf69468fa4 100644--- a/crates/router/src/core/superposition_sdk_config.rs+++ b/crates/router/src/core/superposition_sdk_config.rs@@ -288,6 +288,17 @@ pub async fn get_profile_superposition_sdk_config("processor_merchant_id".to_string(),serde_json::Value::String(merchant_account.get_id().get_string_repr().to_string()),);+ dimension_filter.insert(+ "provider_merchant_id".to_string(),+ serde_json::Value::String(+ platform+ .get_provider()+ .get_provider_merchant_id()+ .inner()+ .get_string_repr()+ .to_string(),+ ),+ );dimension_filter.insert("organization_id".to_string(),serde_json::Value::String(merchant_account.get_org_id().get_string_repr().to_string()),@@ -385,6 +396,17 @@ pub async fn get_superposition_sdk_config("processor_merchant_id".to_string(),serde_json::Value::String(merchant_account.get_id().get_string_repr().to_string()),);+ dimension_filter.insert(+ "provider_merchant_id".to_string(),+ serde_json::Value::String(+ platform+ .get_provider()+ .get_provider_merchant_id()+ .inner()+ .get_string_repr()+ .to_string(),+ ),+ );dimension_filter.insert("organization_id".to_string(),serde_json::Value::String(merchant_account.get_org_id().get_string_repr().to_string()),