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): read connector_reference_id instead of merchant_transaction_id (#13383)

Amitsingh Tanwar140513548624
diff --git a/Cargo.lock b/Cargo.lock
index f38445755a..ca185a378f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2284,7 +2284,7 @@ dependencies = [
[[package]]
name = "config_patch_derive"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?tag=2026.07.21.0#0198c47eae01e7d8a8733223349067df3103174e"
+source = "git+https://github.com/juspay/connector-service?tag=2026.07.28.0#5f6dd4a2ecddbd159ca7a78b51baf5a59f147d80"
dependencies = [
"proc-macro2",
"quote",
@@ -4156,7 +4156,7 @@ checksum = "32619942b8be646939eaf3db0602b39f5229b74575b67efc897811ded1db4e57"
[[package]]
name = "grpc-api-types"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?tag=2026.07.21.0#0198c47eae01e7d8a8733223349067df3103174e"
+source = "git+https://github.com/juspay/connector-service?tag=2026.07.28.0#5f6dd4a2ecddbd159ca7a78b51baf5a59f147d80"
dependencies = [
"axum 0.8.4",
"bytes 1.10.1",
@@ -8472,7 +8472,7 @@ dependencies = [
[[package]]
name = "rust-grpc-client"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?tag=2026.07.21.0#0198c47eae01e7d8a8733223349067df3103174e"
+source = "git+https://github.com/juspay/connector-service?tag=2026.07.28.0#5f6dd4a2ecddbd159ca7a78b51baf5a59f147d80"
dependencies = [
"grpc-api-types",
]
@@ -11326,7 +11326,7 @@ checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9"
[[package]]
name = "ucs_cards"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?tag=2026.07.21.0#0198c47eae01e7d8a8733223349067df3103174e"
+source = "git+https://github.com/juspay/connector-service?tag=2026.07.28.0#5f6dd4a2ecddbd159ca7a78b51baf5a59f147d80"
dependencies = [
"bytes 1.10.1",
"error-stack 0.4.1",
@@ -11342,7 +11342,7 @@ dependencies = [
[[package]]
name = "ucs_common_enums"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?tag=2026.07.21.0#0198c47eae01e7d8a8733223349067df3103174e"
+source = "git+https://github.com/juspay/connector-service?tag=2026.07.28.0#5f6dd4a2ecddbd159ca7a78b51baf5a59f147d80"
dependencies = [
"serde",
"strum 0.26.3",
@@ -11353,7 +11353,7 @@ dependencies = [
[[package]]
name = "ucs_common_utils"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?tag=2026.07.21.0#0198c47eae01e7d8a8733223349067df3103174e"
+source = "git+https://github.com/juspay/connector-service?tag=2026.07.28.0#5f6dd4a2ecddbd159ca7a78b51baf5a59f147d80"
dependencies = [
"anyhow",
"base64 0.21.7",
diff --git a/crates/external_services/Cargo.toml b/crates/external_services/Cargo.toml
index 71c8cf599d..2a5801e7e6 100644
--- a/crates/external_services/Cargo.toml
+++ b/crates/external_services/Cargo.toml
@@ -92,7 +92,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.21.0", package = "rust-grpc-client" }
+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.07.28.0", package = "rust-grpc-client" }
open-feature = { version = "0.2.5", optional = true }
bytes = { version = "1.10.1", optional = true }
superposition_provider = { version = "0.115.5", optional = true }
diff --git a/crates/hyperswitch_interfaces/Cargo.toml b/crates/hyperswitch_interfaces/Cargo.toml
index b3fde8d537..9fcf6346e1 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.21.0", package = "rust-grpc-client" }
+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.07.28.0", package = "rust-grpc-client" }
tokio = { version = "1.45.1", features = ["macros", "rt-multi-thread"] }
# First party crates
diff --git a/crates/hyperswitch_interfaces/src/unified_connector_service/transformers.rs b/crates/hyperswitch_interfaces/src/unified_connector_service/transformers.rs
index 25a07b216b..9cd7e3a946 100644
--- a/crates/hyperswitch_interfaces/src/unified_connector_service/transformers.rs
+++ b/crates/hyperswitch_interfaces/src/unified_connector_service/transformers.rs
@@ -459,7 +459,7 @@ impl ForeignTryFrom<(payments_grpc::PaymentServiceGetResponse, AttemptStatus)>
status_code,
attempt_status,
connector_transaction_id: connector_transaction_id.get_optional_response_id(),
- connector_response_reference_id: response.merchant_transaction_id,
+ connector_response_reference_id: response.connector_reference_id,
network_decline_code: response.error.as_ref().and_then(|error| {
error.issuer_details.as_ref().and_then(|id| {
id.network_details
@@ -522,7 +522,7 @@ impl ForeignTryFrom<(payments_grpc::PaymentServiceGetResponse, AttemptStatus)>
connector_metadata,
network_txn_id: response.network_transaction_id.clone(),
network_txn_link_id: response.network_txn_link_id.clone(),
- connector_response_reference_id: response.merchant_transaction_id,
+ connector_response_reference_id: response.connector_reference_id,
incremental_authorization_allowed: response.incremental_authorization_allowed,
authentication_data: None,
charges: response.splits.map(common_types::payments::ConnectorChargeResponseData::foreign_try_from).transpose()?,
diff --git a/crates/router/Cargo.toml b/crates/router/Cargo.toml
index 3634c5a323..1561b41849 100644
--- a/crates/router/Cargo.toml
+++ b/crates/router/Cargo.toml
@@ -235,8 +235,8 @@ rust_decimal = { version = "1.37.1", features = [
] }
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.21.0", package = "rust-grpc-client" }
-unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", tag = "2026.07.21.0", package = "ucs_cards" }
+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.07.28.0", package = "rust-grpc-client" }
+unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", tag = "2026.07.28.0", 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.rs
index 673c0e944c..5d4446e65a 100644
--- a/crates/router/src/core/unified_connector_service/transformers.rs
+++ b/crates/router/src/core/unified_connector_service/transformers.rs
@@ -120,6 +120,9 @@ fn build_ucs_order_details(
unit_discount_amount: detail
.unit_discount_amount
.map(|amount| amount.get_amount_as_i64()),
+ discount_name: None,
+ discount_percentage: None,
+ discount_type: None,
})
.collect()
})