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: use proper masked deserialize method to deserialize ucs response (#10566)

Hrithikeshd42c447bd8d7
diff --git a/crates/router/src/core/unified_connector_service.rs b/crates/router/src/core/unified_connector_service.rs
index 97b1d4b9ba..2a51998408 100644
--- a/crates/router/src/core/unified_connector_service.rs
+++ b/crates/router/src/core/unified_connector_service.rs
@@ -1741,7 +1741,7 @@ where
.unwrap_or(200);
// Log the actual gRPC response
- let grpc_response_body = serde_json::to_value(&grpc_response).unwrap_or_else(
+ let grpc_response_body = masking::masked_serialize(&grpc_response).unwrap_or_else(
|_| serde_json::json!({"error": "failed_to_serialize_grpc_response"}),
);