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(ucs): pass worldpayxml 3ds jwt credentials in the connector config (#13866)

Pa15b74f51d204d
diff --git a/Cargo.lock b/Cargo.lock
index 280bb16484..7370c9fc25 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1559,7 +1559,7 @@ dependencies = [
"bitflags 2.9.0",
"cexpr",
"clang-sys",
- "itertools 0.11.0",
+ "itertools 0.10.5",
"log 0.4.27",
"prettyplease",
"proc-macro2",
@@ -2287,7 +2287,7 @@ dependencies = [
[[package]]
name = "config_patch_derive"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?tag=2026.08.31.1#b7ea7bd23aaf3b1d66f288cf053c6adf7174b3d6"
+source = "git+https://github.com/juspay/connector-service?tag=2026.09.01.1#10f9bfb7d33bb69bd2f5794720e74aa01dfdb679"
dependencies = [
"proc-macro2",
"quote",
@@ -4261,7 +4261,7 @@ checksum = "32619942b8be646939eaf3db0602b39f5229b74575b67efc897811ded1db4e57"
[[package]]
name = "grpc-api-types"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?tag=2026.08.31.1#b7ea7bd23aaf3b1d66f288cf053c6adf7174b3d6"
+source = "git+https://github.com/juspay/connector-service?tag=2026.09.01.1#10f9bfb7d33bb69bd2f5794720e74aa01dfdb679"
dependencies = [
"axum 0.8.4",
"bytes 1.10.1",
@@ -7536,8 +7536,8 @@ version = "0.14.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "343d3bd7056eda839b03204e68deff7d1b13aba7af2b2fd16890697274262ee7"
dependencies = [
- "heck 0.5.0",
- "itertools 0.11.0",
+ "heck 0.4.1",
+ "itertools 0.10.5",
"log 0.4.27",
"multimap",
"petgraph",
@@ -7558,7 +7558,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a56d757972c98b346a9b766e3f02746cde6dd1cd1d1d563472929fdd74bec4d"
dependencies = [
"anyhow",
- "itertools 0.11.0",
+ "itertools 0.10.5",
"proc-macro2",
"quote",
"syn 2.0.101",
@@ -7571,7 +7571,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "27c6023962132f4b30eb4c172c91ce92d933da334c59c23cddee82358ddafb0b"
dependencies = [
"anyhow",
- "itertools 0.11.0",
+ "itertools 0.10.5",
"proc-macro2",
"quote",
"syn 2.0.101",
@@ -8581,7 +8581,7 @@ dependencies = [
[[package]]
name = "rust-grpc-client"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?tag=2026.08.31.1#b7ea7bd23aaf3b1d66f288cf053c6adf7174b3d6"
+source = "git+https://github.com/juspay/connector-service?tag=2026.09.01.1#10f9bfb7d33bb69bd2f5794720e74aa01dfdb679"
dependencies = [
"grpc-api-types",
]
@@ -11421,7 +11421,7 @@ checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9"
[[package]]
name = "ucs_cards"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?tag=2026.08.31.1#b7ea7bd23aaf3b1d66f288cf053c6adf7174b3d6"
+source = "git+https://github.com/juspay/connector-service?tag=2026.09.01.1#10f9bfb7d33bb69bd2f5794720e74aa01dfdb679"
dependencies = [
"bytes 1.10.1",
"error-stack 0.4.1",
@@ -11437,7 +11437,7 @@ dependencies = [
[[package]]
name = "ucs_common_enums"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?tag=2026.08.31.1#b7ea7bd23aaf3b1d66f288cf053c6adf7174b3d6"
+source = "git+https://github.com/juspay/connector-service?tag=2026.09.01.1#10f9bfb7d33bb69bd2f5794720e74aa01dfdb679"
dependencies = [
"serde",
"strum 0.26.3",
@@ -11448,7 +11448,7 @@ dependencies = [
[[package]]
name = "ucs_common_utils"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?tag=2026.08.31.1#b7ea7bd23aaf3b1d66f288cf053c6adf7174b3d6"
+source = "git+https://github.com/juspay/connector-service?tag=2026.09.01.1#10f9bfb7d33bb69bd2f5794720e74aa01dfdb679"
dependencies = [
"anyhow",
"base64 0.21.7",
diff --git a/crates/external_services/Cargo.toml b/crates/external_services/Cargo.toml
index a3b5ed5d86..9c2b6ec48d 100644
--- a/crates/external_services/Cargo.toml
+++ b/crates/external_services/Cargo.toml
@@ -94,7 +94,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.08.31.1", package = "rust-grpc-client" }
+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.09.01.1", 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 aeb7f6aee3..ba1da2fab1 100644
--- a/crates/hyperswitch_interfaces/Cargo.toml
+++ b/crates/hyperswitch_interfaces/Cargo.toml
@@ -35,7 +35,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.08.31.1", package = "rust-grpc-client" }
+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.09.01.1", 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 e8deaaf6b4..5fdb0b66eb 100644
--- a/crates/hyperswitch_interfaces/src/unified_connector_service/transformers.rs
+++ b/crates/hyperswitch_interfaces/src/unified_connector_service/transformers.rs
@@ -1849,6 +1849,27 @@ impl ForeignTryFrom<payments_grpc::RedirectForm> for RedirectForm {
order_id: nmi.order_id,
})
}
+ Some(payments_grpc::redirect_form::FormType::WorldpayxmlDdc(ddc)) => {
+ Ok(Self::WorldpayxmlDDCForm {
+ bin: ddc.bin,
+ jwt: ddc
+ .jwt
+ .ok_or(UnifiedConnectorServiceError::MissingRequiredField {
+ field_name: "jwt".into(),
+ })?
+ .expose(),
+ })
+ }
+ Some(payments_grpc::redirect_form::FormType::WorldpayxmlChallenge(challenge)) => {
+ Ok(Self::WorldpayxmlRedirectForm {
+ jwt: challenge
+ .jwt
+ .ok_or(UnifiedConnectorServiceError::MissingRequiredField {
+ field_name: "jwt".into(),
+ })?
+ .expose(),
+ })
+ }
Some(payments_grpc::redirect_form::FormType::Script(_)) => Err(
UnifiedConnectorServiceError::RequestEncodingFailedWithReason(
"Script form type is not implemented".to_string(),
diff --git a/crates/router/Cargo.toml b/crates/router/Cargo.toml
index cbdc6c9e11..209b379e3c 100644
--- a/crates/router/Cargo.toml
+++ b/crates/router/Cargo.toml
@@ -243,8 +243,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.08.31.1", package = "rust-grpc-client" }
-unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", tag = "2026.08.31.1", package = "ucs_cards" }
+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.09.01.1", package = "rust-grpc-client" }
+unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", tag = "2026.09.01.1", 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/connector_config.rs b/crates/router/src/core/unified_connector_service/connector_config.rs
index 7a2207faf4..8bd5034dd1 100644
--- a/crates/router/src/core/unified_connector_service/connector_config.rs
+++ b/crates/router/src/core/unified_connector_service/connector_config.rs
@@ -116,6 +116,14 @@ pub struct CalidaMetadata {
shop_name: Secret<String>,
}
+/// Cardinal 3DS JWT credentials from the Worldpayxml merchant connector account metadata.
+#[derive(Debug, serde::Deserialize)]
+pub struct WorldpayxmlMetadata {
+ issuer_id: Option<Secret<String>>,
+ organizational_unit_id: Option<Secret<String>>,
+ jwt_mac_key: Option<Secret<String>>,
+}
+
/// Paysafe payment method details for account_id configuration.
/// Contains per-currency account IDs for card, ACH, Apple Pay, Interac,
/// Skrill and paysafecard.
@@ -555,6 +563,9 @@ pub enum ConnectorSpecificConfig {
api_username: Secret<String>,
api_password: Secret<String>,
merchant_code: Secret<String>,
+ issuer_id: Option<Secret<String>>,
+ organizational_unit_id: Option<Secret<String>>,
+ jwt_mac_key: Option<Secret<String>>,
},
/// Datatrans connector configuration
Datatrans {
@@ -1554,11 +1565,25 @@ impl ForeignTryFrom<(Connector, &ConnectorAuthType, Option<&serde_json::Value>)>
api_key,
key1,
api_secret,
- } => Ok(Self::Worldpayxml {
- api_username: api_key.clone(),
- api_password: key1.clone(),
- merchant_code: api_secret.clone(),
- }),
+ } => {
+ let worldpayxml_meta = metadata
+ .map(|m| {
+ serde_json::from_value::<WorldpayxmlMetadata>(m.clone())
+ .map_err(|_| err("Invalid Worldpayxml metadata format"))
+ })
+ .transpose()?;
+
+ Ok(Self::Worldpayxml {
+ api_username: api_key.clone(),
+ api_password: key1.clone(),
+ merchant_code: api_secret.clone(),
+ issuer_id: worldpayxml_meta.as_ref().and_then(|m| m.issuer_id.clone()),
+ organizational_unit_id: worldpayxml_meta
+ .as_ref()
+ .and_then(|m| m.organizational_unit_id.clone()),
+ jwt_mac_key: worldpayxml_meta.as_ref().and_then(|m| m.jwt_mac_key.clone()),
+ })
+ }
_ => Err(err("Worldpayxml requires SignatureKey auth type")),
},
Connector::Zift => match auth {
diff --git a/crates/router/src/core/unified_connector_service/transformers.rs b/crates/router/src/core/unified_connector_service/transformers.rs
index 48def8d316..dfc10d24a2 100644
--- a/crates/router/src/core/unified_connector_service/transformers.rs
+++ b/crates/router/src/core/unified_connector_service/transformers.rs
@@ -2475,6 +2475,8 @@ impl
.transpose()?;
Ok(Self {
+ is_account_funding_transaction: None,
+ recipient_details: None,
split_settlement: None,
split_payments: router_data
.request
@@ -2591,8 +2593,6 @@ impl
partner_merchant_identifier_details: None,
// TODO: Populate currency_conversion_data when Dynamic Currency Conversion (DCC) is implemented
currency_conversion_data: None,
- is_account_funding_transaction: None,
- recipient_details: None,
})
}
}