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
fix(payouts): remove duplicate private_key headers for CertificateAuth connectors in UCS (#14132)
Aniket Burmancb10f5810f0f
diff --git a/crates/router/src/core/unified_connector_service.rs b/crates/router/src/core/unified_connector_service.rsindex e2dbfbef12..15004d04ca 100644--- a/crates/router/src/core/unified_connector_service.rs+++ b/crates/router/src/core/unified_connector_service.rs@@ -2793,13 +2793,8 @@ fn build_connector_auth_metadata(auth_type: consts::UCS_AUTH_MULTI_KEY.to_string(),api_key: Some(certificate.clone()),key1: Some(private_key.clone()),- // UCS's "multi-auth-key" header parsing unconditionally requires x-key2- // and x-api-secret to be present. Connectors reaching this branch (e.g.- // Santander) only supply certificate/private_key, so duplicate- // private_key here purely to satisfy UCS's presence check; the connector- // implementation itself never reads key2/api_secret.- key2: Some(private_key.clone()),- api_secret: Some(private_key.clone()),+ key2: None,+ api_secret: None,auth_key_map: None,merchant_id: Secret::new(merchant_id.to_string()),connector_config,