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: Serialize metadata values to pass all fields (#10568)

Shubhodip palca4f5b6ca225
diff --git a/crates/router/src/core/unified_connector_service/transformers.rs b/crates/router/src/core/unified_connector_service/transformers.rs
index ada1fc779a..006519b23d 100644
--- a/crates/router/src/core/unified_connector_service/transformers.rs
+++ b/crates/router/src/core/unified_connector_service/transformers.rs
@@ -257,7 +257,7 @@ impl
.and_then(|val| val.as_object())
.map(|map| {
map.iter()
- .filter_map(|(k, v)| v.as_str().map(|s| (k.clone(), s.to_string())))
+ .map(|(k, v)| (k.clone(), v.to_string()))
.collect::<HashMap<String, String>>()
})
.unwrap_or_default();