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

feat(ucs): Fixed cybersource post authenticate router data diff (#12679)

Shubhodip pal972c9877c85d
diff --git a/crates/router/src/core/unified_connector_service/transformers.rs b/crates/router/src/core/unified_connector_service/transformers.rs
index ab2fd628ea..c7fbd5ec6c 100644
--- a/crates/router/src/core/unified_connector_service/transformers.rs
+++ b/crates/router/src/core/unified_connector_service/transformers.rs
@@ -4106,7 +4106,22 @@ impl
},
None => (None, None),
},
- None => (None, None),
+ None => (
+ response.connector_feature_data.clone().and_then(|secret| {
+ let exposed = secret.expose();
+ serde_json::from_str(&exposed)
+ .map_err(|e| {
+ tracing::warn!(
+ serialization_error = ?e,
+ metadata = ?response.connector_feature_data,
+ "Failed to parse connector_metadata as JSON value"
+ );
+ e
+ })
+ .ok()
+ }),
+ None,
+ ),
};
let authentication_data = response