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(ucs): map authentication_data into cybersource SetupMandate request (#12872)
Amitsingh Tanwarfda1d8162441
diff --git a/Cargo.lock b/Cargo.lockindex 0068dd11c2..fa9b5fd573 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -2264,7 +2264,7 @@ dependencies = [[[package]]name = "config_patch_derive"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.07.08.1#e90e5a7b1c121c543511ee571bb579b676c393d1"+source = "git+https://github.com/juspay/connector-service?tag=2026.07.10.1#51237c677236384f806534e9e0105cc3deedc566"dependencies = ["proc-macro2","quote",@@ -3982,7 +3982,7 @@ checksum = "32619942b8be646939eaf3db0602b39f5229b74575b67efc897811ded1db4e57"[[package]]name = "grpc-api-types"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.07.08.1#e90e5a7b1c121c543511ee571bb579b676c393d1"+source = "git+https://github.com/juspay/connector-service?tag=2026.07.10.1#51237c677236384f806534e9e0105cc3deedc566"dependencies = ["axum 0.8.4","bytes 1.10.1",@@ -6836,7 +6836,7 @@ dependencies = ["regex-cache","serde","serde_derive",- "strum 0.26.3",+ "strum 0.25.0","thiserror 1.0.69",]@@ -8178,7 +8178,7 @@ dependencies = [[[package]]name = "rust-grpc-client"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.07.08.1#e90e5a7b1c121c543511ee571bb579b676c393d1"+source = "git+https://github.com/juspay/connector-service?tag=2026.07.10.1#51237c677236384f806534e9e0105cc3deedc566"dependencies = ["grpc-api-types",]@@ -11013,7 +11013,7 @@ checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9"[[package]]name = "ucs_cards"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.07.08.1#e90e5a7b1c121c543511ee571bb579b676c393d1"+source = "git+https://github.com/juspay/connector-service?tag=2026.07.10.1#51237c677236384f806534e9e0105cc3deedc566"dependencies = ["bytes 1.10.1","error-stack 0.4.1",@@ -11029,7 +11029,7 @@ dependencies = [[[package]]name = "ucs_common_enums"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.07.08.1#e90e5a7b1c121c543511ee571bb579b676c393d1"+source = "git+https://github.com/juspay/connector-service?tag=2026.07.10.1#51237c677236384f806534e9e0105cc3deedc566"dependencies = ["serde","strum 0.26.3",@@ -11040,7 +11040,7 @@ dependencies = [[[package]]name = "ucs_common_utils"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.07.08.1#e90e5a7b1c121c543511ee571bb579b676c393d1"+source = "git+https://github.com/juspay/connector-service?tag=2026.07.10.1#51237c677236384f806534e9e0105cc3deedc566"dependencies = ["anyhow","base64 0.21.7",diff --git a/crates/external_services/Cargo.toml b/crates/external_services/Cargo.tomlindex 7f0c1f09db..e671caa36c 100644--- a/crates/external_services/Cargo.toml+++ b/crates/external_services/Cargo.toml@@ -82,7 +82,7 @@ http = "0.2.12"url = { version = "2.5.4", features = ["serde"] }quick-xml = { version = "0.31.0", features = ["serialize"] }-unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.07.08.1", package = "rust-grpc-client" }+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.07.10.1", package = "rust-grpc-client" }open-feature = { version = "0.2.5", optional = true }superposition_provider = { version = "0.114.0", optional = true}superposition_types = "0.114.0"diff --git a/crates/external_services/src/grpc_client/unified_connector_service.rs b/crates/external_services/src/grpc_client/unified_connector_service.rsindex 16d22f4720..0731473e0e 100644--- a/crates/external_services/src/grpc_client/unified_connector_service.rs+++ b/crates/external_services/src/grpc_client/unified_connector_service.rs@@ -820,9 +820,7 @@ impl UnifiedConnectorServiceClient {build_unified_connector_service_grpc_headers(connector_auth_metadata, grpc_headers)?;*request.metadata_mut() = metadata;- self.payment_service_client- .clone()- .setup_recurring(request)+ Box::pin(self.payment_service_client.clone().setup_recurring(request)).await.map_err(|error| {error_stack::Report::new(UnifiedConnectorServiceError::from_grpc_error(diff --git a/crates/hyperswitch_interfaces/Cargo.toml b/crates/hyperswitch_interfaces/Cargo.tomlindex ed42ce6a73..198929e41c 100644--- a/crates/hyperswitch_interfaces/Cargo.toml+++ b/crates/hyperswitch_interfaces/Cargo.toml@@ -33,7 +33,7 @@ time = "0.3.41"tonic = "0.14"url = { version = "2.5.4", features = ["serde"] }-unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.07.08.1", package = "rust-grpc-client" }+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.07.10.1", package = "rust-grpc-client" }tokio = { version = "1.45.1", features = ["macros", "rt-multi-thread"] }# First party cratesdiff --git a/crates/router/Cargo.toml b/crates/router/Cargo.tomlindex 7e06b0734e..126b051574 100644--- a/crates/router/Cargo.toml+++ b/crates/router/Cargo.toml@@ -91,8 +91,8 @@ ring = "0.17.14"rust_decimal = { version = "1.37.1", features = ["serde-with-float", "serde-with-str"] }rust-i18n = { git = "https://github.com/kashif-m/rust-i18n", rev = "f2d8096aaaff7a87a847c35a5394c269f75e077a" }-unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.07.08.1", package = "rust-grpc-client" }-unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", tag = "2026.07.08.1", package = "ucs_cards" }+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.07.10.1", package = "rust-grpc-client" }+unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", tag = "2026.07.10.1", package = "ucs_cards" }rustc-hash = "1.1.0"rustls = "0.22"rustls-pemfile = "2"diff --git a/crates/router/src/core/unified_connector_service/transformers.rs b/crates/router/src/core/unified_connector_service/transformers.rsindex d59dfb3cdb..3a0a19e00d 100644--- a/crates/router/src/core/unified_connector_service/transformers.rs+++ b/crates/router/src/core/unified_connector_service/transformers.rs@@ -2082,7 +2082,12 @@ impladdress: Some(address),auth_type: auth_type.into(),enrolled_for_3ds: false,- authentication_data: None,+ authentication_data: router_data+ .request+ .authentication_data+ .clone()+ .map(payments_grpc::AuthenticationData::foreign_try_from)+ .transpose()?,metadata: router_data.request.metadata@@ -2288,6 +2293,9 @@ impl.map(|additional_payment_data| {payments_grpc::AdditionalPaymentData::foreign_from(additional_payment_data)});++ let auth_type = payments_grpc::AuthenticationType::foreign_try_from(router_data.auth_type)?;+Ok(Self {split_payments: router_data.request@@ -2409,6 +2417,7 @@ impl}}),}),+ auth_type: Some(auth_type.into()),})}}@@ -4438,7 +4447,10 @@ impl transformers::ForeignTryFrom<AuthenticationData> for payments_grpc::Authent.message_version.map(|message_version| message_version.to_string()),ds_transaction_id: authentication_data.ds_trans_id,- trans_status: None,+ trans_status: authentication_data+ .transaction_status+ .map(payments_grpc::TransactionStatus::foreign_from)+ .map(i32::from),acs_transaction_id: authentication_data.acs_trans_id,connector_transaction_id: None,ucaf_collection_indicator: None,@@ -4450,6 +4462,17 @@ impl transformers::ForeignTryFrom<AuthenticationData> for payments_grpc::Authent.cb_network_params.map(payments_grpc::NetworkParams::foreign_try_from).transpose()?,+ created_at: Some(authentication_data.created_at.assume_utc().unix_timestamp()),+ challenge_code: authentication_data.challenge_code,+ challenge_cancel: authentication_data.challenge_cancel,+ challenge_code_reason: authentication_data.challenge_code_reason,+ message_extension: authentication_data+ .message_extension+ .map(|message_extension| message_extension.expose().to_string()),+ authentication_type: authentication_data+ .authentication_type+ .map(payments_grpc::DecoupledAuthenticationType::foreign_from)+ .map(i32::from),})}}@@ -4479,6 +4502,12 @@ impl transformers::ForeignTryFrom<router_request_types::UcsAuthenticationData>ucaf_collection_indicator: authentication_data.ucaf_collection_indicator,exemption_indicator: None,network_params: None,+ created_at: None,+ challenge_code: None,+ challenge_cancel: None,+ challenge_code_reason: None,+ message_extension: None,+ authentication_type: None,})}}@@ -4662,6 +4691,12 @@ impl transformers::ForeignTryFrom<payments_grpc::AuthenticationData>ucaf_collection_indicator,exemption_indicator: _,network_params: _,+ created_at: _,+ challenge_code: _,+ challenge_cancel: _,+ challenge_code_reason: _,+ message_extension: _,+ authentication_type: _,} = response;let trans_status = trans_status.map(payments_grpc::TransactionStatus::try_from)@@ -4734,6 +4769,17 @@ impl ForeignFrom<common_enums::TransactionStatus> for payments_grpc::Transaction}}+impl ForeignFrom<common_enums::DecoupledAuthenticationType>+ for payments_grpc::DecoupledAuthenticationType+{+ fn foreign_from(value: common_enums::DecoupledAuthenticationType) -> Self {+ match value {+ common_enums::DecoupledAuthenticationType::Challenge => Self::Challenge,+ common_enums::DecoupledAuthenticationType::Frictionless => Self::Frictionless,+ }+ }+}+impl ForeignFrom<api_models::payments::ThreeDsCompletionIndicator>for payments_grpc::ThreeDsCompletionIndicator{