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(core): Bumped UCS dependency to bring latest changes (#10977)

Shubhodip palfff0461cecc3
diff --git a/Cargo.lock b/Cargo.lock
index f364c16988..218c998581 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2129,7 +2129,7 @@ dependencies = [
[[package]]
name = "config_patch_derive"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?rev=7b0308793095fd908fae2fe9bc3fa6ee39f73693#7b0308793095fd908fae2fe9bc3fa6ee39f73693"
+source = "git+https://github.com/juspay/connector-service?rev=3ec2e503a9ba12391f96935fcb7aa24d4d6aa452#3ec2e503a9ba12391f96935fcb7aa24d4d6aa452"
dependencies = [
"proc-macro2",
"quote",
@@ -3800,7 +3800,7 @@ dependencies = [
[[package]]
name = "grpc-api-types"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?rev=7b0308793095fd908fae2fe9bc3fa6ee39f73693#7b0308793095fd908fae2fe9bc3fa6ee39f73693"
+source = "git+https://github.com/juspay/connector-service?rev=3ec2e503a9ba12391f96935fcb7aa24d4d6aa452#3ec2e503a9ba12391f96935fcb7aa24d4d6aa452"
dependencies = [
"axum 0.8.4",
"error-stack 0.5.0",
@@ -7462,7 +7462,7 @@ dependencies = [
[[package]]
name = "rust-grpc-client"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?rev=7b0308793095fd908fae2fe9bc3fa6ee39f73693#7b0308793095fd908fae2fe9bc3fa6ee39f73693"
+source = "git+https://github.com/juspay/connector-service?rev=3ec2e503a9ba12391f96935fcb7aa24d4d6aa452#3ec2e503a9ba12391f96935fcb7aa24d4d6aa452"
dependencies = [
"grpc-api-types",
]
@@ -10252,7 +10252,7 @@ checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9"
[[package]]
name = "ucs_cards"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?rev=7b0308793095fd908fae2fe9bc3fa6ee39f73693#7b0308793095fd908fae2fe9bc3fa6ee39f73693"
+source = "git+https://github.com/juspay/connector-service?rev=3ec2e503a9ba12391f96935fcb7aa24d4d6aa452#3ec2e503a9ba12391f96935fcb7aa24d4d6aa452"
dependencies = [
"bytes 1.10.1",
"error-stack 0.4.1",
@@ -10268,7 +10268,7 @@ dependencies = [
[[package]]
name = "ucs_common_enums"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?rev=7b0308793095fd908fae2fe9bc3fa6ee39f73693#7b0308793095fd908fae2fe9bc3fa6ee39f73693"
+source = "git+https://github.com/juspay/connector-service?rev=3ec2e503a9ba12391f96935fcb7aa24d4d6aa452#3ec2e503a9ba12391f96935fcb7aa24d4d6aa452"
dependencies = [
"serde",
"strum 0.26.3",
@@ -10279,7 +10279,7 @@ dependencies = [
[[package]]
name = "ucs_common_utils"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?rev=7b0308793095fd908fae2fe9bc3fa6ee39f73693#7b0308793095fd908fae2fe9bc3fa6ee39f73693"
+source = "git+https://github.com/juspay/connector-service?rev=3ec2e503a9ba12391f96935fcb7aa24d4d6aa452#3ec2e503a9ba12391f96935fcb7aa24d4d6aa452"
dependencies = [
"anyhow",
"base64 0.21.7",
diff --git a/crates/external_services/Cargo.toml b/crates/external_services/Cargo.toml
index 17877d0d2e..737e4b968d 100644
--- a/crates/external_services/Cargo.toml
+++ b/crates/external_services/Cargo.toml
@@ -69,7 +69,7 @@ reqwest = { version = "0.11.27", features = ["rustls-tls"] }
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", rev = "7b0308793095fd908fae2fe9bc3fa6ee39f73693", package = "rust-grpc-client" }
+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", rev = "3ec2e503a9ba12391f96935fcb7aa24d4d6aa452", package = "rust-grpc-client" }
open-feature = { version = "0.2.5", optional = true }
superposition_provider = { version = "0.88.1", optional = true }
diff --git a/crates/hyperswitch_interfaces/Cargo.toml b/crates/hyperswitch_interfaces/Cargo.toml
index 90e7d67262..21135b0848 100644
--- a/crates/hyperswitch_interfaces/Cargo.toml
+++ b/crates/hyperswitch_interfaces/Cargo.toml
@@ -30,7 +30,7 @@ strum = { version = "0.26", features = ["derive"] }
thiserror = "1.0.69"
time = "0.3.41"
url = { version = "2.5.4", features = ["serde"] }
-unified-connector-service-client = { git = "https://github.com/juspay/connector-service", rev = "7b0308793095fd908fae2fe9bc3fa6ee39f73693", package = "rust-grpc-client" }
+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", rev = "3ec2e503a9ba12391f96935fcb7aa24d4d6aa452", package = "rust-grpc-client" }
unified-connector-service-masking = { git = "https://github.com/juspay/hyperswitch", tag = "2025.11.24.0", package = "masking" }
tokio = { version = "1.45.1", features = ["macros", "rt-multi-thread"] }
diff --git a/crates/router/Cargo.toml b/crates/router/Cargo.toml
index 4fa4f6ff97..7615b83f57 100644
--- a/crates/router/Cargo.toml
+++ b/crates/router/Cargo.toml
@@ -88,8 +88,8 @@ reqwest = { version = "0.11.27", features = ["json", "rustls-tls", "gzip", "mult
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", rev = "7b0308793095fd908fae2fe9bc3fa6ee39f73693", package = "rust-grpc-client" }
-unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", rev = "7b0308793095fd908fae2fe9bc3fa6ee39f73693", package = "ucs_cards" }
+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", rev = "3ec2e503a9ba12391f96935fcb7aa24d4d6aa452", package = "rust-grpc-client" }
+unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", rev = "3ec2e503a9ba12391f96935fcb7aa24d4d6aa452", package = "ucs_cards" }
unified-connector-service-masking = { git = "https://github.com/juspay/hyperswitch", tag = "2025.11.24.0", package = "masking" }
rustc-hash = "1.1.0"
rustls = "0.22"
diff --git a/crates/router/src/core/unified_connector_service/transformers.rs b/crates/router/src/core/unified_connector_service/transformers.rs
index 2aec194e5e..5d6a475fcb 100644
--- a/crates/router/src/core/unified_connector_service/transformers.rs
+++ b/crates/router/src/core/unified_connector_service/transformers.rs
@@ -151,8 +151,7 @@ impl
})
.transpose()?;
- // TODO: Fix the type of address field in UCS request and pass address
- // let address = payments_grpc::PaymentAddress::foreign_try_from(router_data.address.clone())?;
+ let address = payments_grpc::PaymentAddress::foreign_try_from(router_data.address.clone())?;
let amount = router_data.request.amount.ok_or(report!(
UnifiedConnectorServiceError::MissingRequiredField {
@@ -170,7 +169,7 @@ impl
customer_name: None,
email: None,
customer_id: None,
- address: None,
+ address: Some(address),
metadata: None,
connector_metadata: None,
return_url: router_data.request.router_return_url.clone(),
@@ -361,6 +360,11 @@ impl
.map(|payment_channel| payment_channel.into()),
connector_metadata: None,
locale: router_data.request.locale.clone(),
+ tokenization_strategy: router_data
+ .request
+ .tokenization
+ .map(payments_grpc::Tokenization::foreign_from)
+ .map(Into::into),
})
}
}
@@ -523,6 +527,11 @@ impl
payment_channel: None,
billing_descriptor: None,
locale: None,
+ tokenization_strategy: router_data
+ .request
+ .tokenization
+ .map(payments_grpc::Tokenization::foreign_from)
+ .map(Into::into),
})
}
}
@@ -1243,6 +1252,11 @@ impl
enable_partial_authorization: None,
payment_channel: None,
locale: None,
+ tokenization_strategy: router_data
+ .request
+ .tokenization
+ .map(payments_grpc::Tokenization::foreign_from)
+ .map(Into::into),
})
}
}
@@ -1420,6 +1434,11 @@ impl
.transpose()?
.map(|payment_channel| payment_channel.into()),
locale: router_data.request.locale.clone(),
+ tokenization_strategy: router_data
+ .request
+ .tokenization
+ .map(payments_grpc::Tokenization::foreign_from)
+ .map(Into::into),
})
}
}
@@ -1580,6 +1599,7 @@ impl
enable_partial_authorization: None,
payment_channel: None,
locale: None,
+ tokenization_strategy: None,
})
}
}
@@ -1845,6 +1865,12 @@ impl
.map(payments_grpc::AuthenticationData::foreign_try_from)
.transpose()?;
+ let recurring_mandate_payment_data = router_data
+ .recurring_mandate_payment_data
+ .as_ref()
+ .map(payments_grpc::RecurringMandatePaymentData::foreign_try_from)
+ .transpose()?;
+
Ok(Self {
request_ref_id: Some(Identifier {
id_type: Some(payments_grpc::identifier::IdType::Id(
@@ -1888,7 +1914,7 @@ impl
connector_customer_id: router_data.connector_customer.clone(),
address: Some(address),
off_session: router_data.request.off_session,
- recurring_mandate_payment_data: None,
+ recurring_mandate_payment_data,
enable_partial_authorization: router_data
.request
.enable_partial_authorization
@@ -1930,6 +1956,27 @@ impl
}
}
+impl
+ transformers::ForeignTryFrom<
+ &hyperswitch_domain_models::router_data::RecurringMandatePaymentData,
+ > for payments_grpc::RecurringMandatePaymentData
+{
+ type Error = error_stack::Report<UnifiedConnectorServiceError>;
+
+ fn foreign_try_from(
+ data: &hyperswitch_domain_models::router_data::RecurringMandatePaymentData,
+ ) -> Result<Self, Self::Error> {
+ Ok(Self {
+ original_payment_authorized_amount: data.original_payment_authorized_amount,
+ original_payment_authorized_currency: data
+ .original_payment_authorized_currency
+ .map(payments_grpc::Currency::foreign_try_from)
+ .transpose()?
+ .map(|currency| currency.into()),
+ })
+ }
+}
+
impl transformers::ForeignTryFrom<&RouterData<Session, PaymentsSessionData, PaymentsResponseData>>
for payments_grpc::PaymentServiceSdkSessionTokenRequest
{
@@ -4812,6 +4859,15 @@ impl ForeignFrom<&SyncRequestType> for payments_grpc::SyncRequestType {
}
}
+impl ForeignFrom<common_enums::Tokenization> for payments_grpc::Tokenization {
+ fn foreign_from(tokenization: common_enums::Tokenization) -> Self {
+ match tokenization {
+ common_enums::Tokenization::TokenizeAtPsp => Self::TokenizeAtPsp,
+ common_enums::Tokenization::SkipPsp => Self::SkipPsp,
+ }
+ }
+}
+
impl ForeignFrom<payments_grpc::AuthorizationStatus> for AuthorizationStatus {
fn foreign_from(grpc_status: payments_grpc::AuthorizationStatus) -> Self {
match grpc_status {