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(ucs): preserve L2/L3 customer and address data in UCS requests (#15228)

Vani Guptad15fb416da1c
diff --git a/Cargo.lock b/Cargo.lock
index 586021c68d..0fd0093aaa 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2289,7 +2289,7 @@ dependencies = [
[[package]]
name = "config_patch_derive"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?tag=2026.11.06.2#3597e805122646934cc94e82dc1e7f811e25c2c2"
+source = "git+https://github.com/juspay/connector-service?tag=2026.11.12.2#d8de4440b4ea108ab9b1f192699f84d3ace9bc92"
dependencies = [
"proc-macro2",
"quote",
@@ -4198,7 +4198,7 @@ dependencies = [
[[package]]
name = "grpc-api-types"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?tag=2026.11.06.2#3597e805122646934cc94e82dc1e7f811e25c2c2"
+source = "git+https://github.com/juspay/connector-service?tag=2026.11.12.2#d8de4440b4ea108ab9b1f192699f84d3ace9bc92"
dependencies = [
"axum 0.8.4",
"bytes",
@@ -8201,7 +8201,7 @@ dependencies = [
[[package]]
name = "rust-grpc-client"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?tag=2026.11.06.2#3597e805122646934cc94e82dc1e7f811e25c2c2"
+source = "git+https://github.com/juspay/connector-service?tag=2026.11.12.2#d8de4440b4ea108ab9b1f192699f84d3ace9bc92"
dependencies = [
"grpc-api-types",
]
@@ -10834,7 +10834,7 @@ checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9"
[[package]]
name = "ucs_cards"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?tag=2026.11.06.2#3597e805122646934cc94e82dc1e7f811e25c2c2"
+source = "git+https://github.com/juspay/connector-service?tag=2026.11.12.2#d8de4440b4ea108ab9b1f192699f84d3ace9bc92"
dependencies = [
"bytes",
"error-stack 0.4.1",
@@ -10850,7 +10850,7 @@ dependencies = [
[[package]]
name = "ucs_common_enums"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?tag=2026.11.06.2#3597e805122646934cc94e82dc1e7f811e25c2c2"
+source = "git+https://github.com/juspay/connector-service?tag=2026.11.12.2#d8de4440b4ea108ab9b1f192699f84d3ace9bc92"
dependencies = [
"serde",
"strum 0.26.3",
@@ -10861,7 +10861,7 @@ dependencies = [
[[package]]
name = "ucs_common_utils"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?tag=2026.11.06.2#3597e805122646934cc94e82dc1e7f811e25c2c2"
+source = "git+https://github.com/juspay/connector-service?tag=2026.11.12.2#d8de4440b4ea108ab9b1f192699f84d3ace9bc92"
dependencies = [
"anyhow",
"base64 0.21.7",
diff --git a/crates/external_services/Cargo.toml b/crates/external_services/Cargo.toml
index 1c194a4e0e..459d771901 100644
--- a/crates/external_services/Cargo.toml
+++ b/crates/external_services/Cargo.toml
@@ -88,7 +88,7 @@ http = "1.3.1"
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.11.06.2", package = "rust-grpc-client" }
+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.11.12.2", package = "rust-grpc-client" }
open-feature = { version = "0.2.5", optional = true }
bytes = { version = "1.10.1", optional = true }
futures = { version = "0.3.31", optional = true }
diff --git a/crates/hyperswitch_interfaces/Cargo.toml b/crates/hyperswitch_interfaces/Cargo.toml
index f5af790a1b..c6fceb01c4 100644
--- a/crates/hyperswitch_interfaces/Cargo.toml
+++ b/crates/hyperswitch_interfaces/Cargo.toml
@@ -37,7 +37,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.11.06.2", package = "rust-grpc-client" }
+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.11.12.2", package = "rust-grpc-client" }
tokio = { version = "1.45.1", features = ["macros", "rt-multi-thread"] }
# First party crates
diff --git a/crates/router/Cargo.toml b/crates/router/Cargo.toml
index fc88724e4d..77f3da0236 100644
--- a/crates/router/Cargo.toml
+++ b/crates/router/Cargo.toml
@@ -257,8 +257,8 @@ rust_decimal = { version = "1.37.1", features = [
] }
rust-i18n = "3.1.5"
-unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.11.06.2", package = "rust-grpc-client" }
-unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", tag = "2026.11.06.2", package = "ucs_cards" }
+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.11.12.2", package = "rust-grpc-client" }
+unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", tag = "2026.11.12.2", package = "ucs_cards" }
rustc-hash = "1.1.0"
rustls = { version = "0.23", default-features = false, features = [
"aws-lc-rs",
diff --git a/crates/router/src/core/unified_connector_service/transformers.rs b/crates/router/src/core/unified_connector_service/transformers.rs
index 12fae04572..205a6e9a6a 100644
--- a/crates/router/src/core/unified_connector_service/transformers.rs
+++ b/crates/router/src/core/unified_connector_service/transformers.rs
@@ -509,14 +509,42 @@ fn build_ucs_l2_l3_data(l2_l3_data: Option<&L2L3Data>) -> Option<payments_grpc::
vat_invoice_reference_number,
});
- if order_info.is_none() && tax_info.is_none() {
- None
- } else {
- Some(payments_grpc::L2l3Data {
- order_info,
- tax_info,
- })
- }
+ l2_l3_data.map(|data| payments_grpc::L2l3Data {
+ order_info,
+ tax_info,
+ customer_info: data
+ .customer_info
+ .as_ref()
+ .map(|customer| payments_grpc::Customer {
+ id: customer
+ .customer_id
+ .as_ref()
+ .map(|id| id.get_string_repr().to_string()),
+ name: customer
+ .customer_name
+ .as_ref()
+ .map(|name| name.peek().to_owned()),
+ email: customer
+ .customer_email
+ .as_ref()
+ .map(|email| email.peek().to_string().into()),
+ phone_number: customer.customer_phone_number.clone(),
+ phone_country_code: customer.customer_phone_country_code.clone(),
+ ..Default::default()
+ }),
+ shipping_details: data.shipping_details.as_ref().map(|address| {
+ payments_grpc::Address::foreign_from(&api_models::payments::AddressDetails::from(
+ address.clone(),
+ ))
+ }),
+ billing_details: data
+ .billing_details
+ .as_ref()
+ .map(|address| payments_grpc::Address {
+ city: address.address_city.clone().map(Into::into),
+ ..Default::default()
+ }),
+ })
}
pub fn build_upi_wait_screen_data(
@@ -5280,7 +5308,7 @@ impl transformers::ForeignTryFrom<common_enums::PaymentMethodType>
common_enums::PaymentMethodType::NetworkToken => Ok(Self::NetworkToken),
common_enums::PaymentMethodType::OpenBanking => Ok(Self::OpenBanking),
common_enums::PaymentMethodType::Skrill => Ok(Self::Skrill),
- common_enums::PaymentMethodType::Klarna => Ok(Self::Klarna),
+ common_enums::PaymentMethodType::Klarna => Ok(Self::KlarnaBnpl),
common_enums::PaymentMethodType::BhnCardNetwork => Ok(Self::BhnCardNetwork),
common_enums::PaymentMethodType::Bluecode => Ok(Self::Bluecode),
common_enums::PaymentMethodType::Breadpay => Ok(Self::Breadpay),
@@ -5289,7 +5317,7 @@ impl transformers::ForeignTryFrom<common_enums::PaymentMethodType>
common_enums::PaymentMethodType::IndonesianBankTransfer => {
Ok(Self::IndonesianBankTransfer)
}
- common_enums::PaymentMethodType::Mifinity => Ok(Self::Mifinity),
+ common_enums::PaymentMethodType::Mifinity => Ok(Self::MifinityWallet),
common_enums::PaymentMethodType::Payjustnow => Ok(Self::Payjustnow),
common_enums::PaymentMethodType::Paysera => Ok(Self::Paysera),
common_enums::PaymentMethodType::Payshap => Ok(Self::Payshap),
@@ -9230,6 +9258,8 @@ impl transformers::ForeignTryFrom<&RouterData<VoidPostRefund, RefundsData, Refun
.map(Into::into),
merchant_request_id: None,
connector_order_id: Some(router_data.request.connector_transaction_id.clone()),
+ payment_method: None,
+ refund_amount: None,
})
}
}