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
feat(core): add support for DecryptedWalletTokenDetailsForNetworkTransactionId PaymentMethod in UCS (#11539)
Swangi Kumari51de7a7b39ca
diff --git a/Cargo.lock b/Cargo.lockindex 9a7391e5bc..15b4b4f0ff 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -2184,7 +2184,7 @@ dependencies = [[[package]]name = "config_patch_derive"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.03.04.0-hotfix1#1e9287e60753e247c8ea584fbe5fde28e0563b1a"+source = "git+https://github.com/juspay/connector-service?tag=2026.03.04.0-hotfix2#48fb46ed0f60fae824751a6569fc9024c20dc3fc"dependencies = ["proc-macro2","quote",@@ -3878,7 +3878,7 @@ dependencies = [[[package]]name = "grpc-api-types"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.03.04.0-hotfix1#1e9287e60753e247c8ea584fbe5fde28e0563b1a"+source = "git+https://github.com/juspay/connector-service?tag=2026.03.04.0-hotfix2#48fb46ed0f60fae824751a6569fc9024c20dc3fc"dependencies = ["axum 0.8.4","error-stack 0.5.0",@@ -7610,7 +7610,7 @@ dependencies = [[[package]]name = "rust-grpc-client"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.03.04.0-hotfix1#1e9287e60753e247c8ea584fbe5fde28e0563b1a"+source = "git+https://github.com/juspay/connector-service?tag=2026.03.04.0-hotfix2#48fb46ed0f60fae824751a6569fc9024c20dc3fc"dependencies = ["grpc-api-types",]@@ -10391,7 +10391,7 @@ checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9"[[package]]name = "ucs_cards"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.03.04.0-hotfix1#1e9287e60753e247c8ea584fbe5fde28e0563b1a"+source = "git+https://github.com/juspay/connector-service?tag=2026.03.04.0-hotfix2#48fb46ed0f60fae824751a6569fc9024c20dc3fc"dependencies = ["bytes 1.10.1","error-stack 0.4.1",@@ -10407,7 +10407,7 @@ dependencies = [[[package]]name = "ucs_common_enums"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.03.04.0-hotfix1#1e9287e60753e247c8ea584fbe5fde28e0563b1a"+source = "git+https://github.com/juspay/connector-service?tag=2026.03.04.0-hotfix2#48fb46ed0f60fae824751a6569fc9024c20dc3fc"dependencies = ["serde","strum 0.26.3",@@ -10418,7 +10418,7 @@ dependencies = [[[package]]name = "ucs_common_utils"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.03.04.0-hotfix1#1e9287e60753e247c8ea584fbe5fde28e0563b1a"+source = "git+https://github.com/juspay/connector-service?tag=2026.03.04.0-hotfix2#48fb46ed0f60fae824751a6569fc9024c20dc3fc"dependencies = ["anyhow","base64 0.21.7",diff --git a/crates/external_services/Cargo.toml b/crates/external_services/Cargo.tomlindex 7b19ff05f0..2bcfb6647e 100644--- a/crates/external_services/Cargo.toml+++ b/crates/external_services/Cargo.toml@@ -72,7 +72,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", tag = "2026.03.04.0-hotfix1" , package = "rust-grpc-client" }+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.03.04.0-hotfix2" , package = "rust-grpc-client" }open-feature = { version = "0.2.5", optional = true }superposition_provider = { version = "0.97.0", optional = true }diff --git a/crates/hyperswitch_interfaces/Cargo.toml b/crates/hyperswitch_interfaces/Cargo.tomlindex 5f35fee7a0..45a773446b 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", tag = "2026.03.04.0-hotfix1", package = "rust-grpc-client" }+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.03.04.0-hotfix2", 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 656e866bdd..721fb011a9 100644--- a/crates/router/Cargo.toml+++ b/crates/router/Cargo.toml@@ -90,8 +90,8 @@ reqwest = { version = "0.11.27", features = ["json", "rustls-tls", "gzip", "multring = "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.03.04.0-hotfix1", package = "rust-grpc-client" }-unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", tag = "2026.03.04.0-hotfix1", package = "ucs_cards" }+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.03.04.0-hotfix2", package = "rust-grpc-client" }+unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", tag = "2026.03.04.0-hotfix2", package = "ucs_cards" }rustc-hash = "1.1.0"rustls = "0.22"rustls-pemfile = "2"diff --git a/crates/router/src/core/unified_connector_service.rs b/crates/router/src/core/unified_connector_service.rsindex ab8da019b4..b7c0733542 100644--- a/crates/router/src/core/unified_connector_service.rs+++ b/crates/router/src/core/unified_connector_service.rs@@ -1404,6 +1404,13 @@ pub fn build_unified_connector_service_payment_method(payment_method: Some(PaymentMethod::NetworkToken(network_token)),})}+ hyperswitch_domain_models::payment_method_data::PaymentMethodData::DecryptedWalletTokenDetailsForNetworkTransactionId(wallet_token_data) => {+ let decrypted_wallet_token_details = payments_grpc::DecryptedWalletTokenDetailsForNetworkTransactionId::foreign_try_from(wallet_token_data)?;++ Ok(payments_grpc::PaymentMethod {+ payment_method: Some(PaymentMethod::DecryptedWalletTokenDetailsForNetworkTransactionId(decrypted_wallet_token_details)),+ })+ }hyperswitch_domain_models::payment_method_data::PaymentMethodData::BankDebit(bank_debit_data,) => match bank_debit_data {diff --git a/crates/router/src/core/unified_connector_service/transformers.rs b/crates/router/src/core/unified_connector_service/transformers.rsindex b94939187c..bd51b94d1f 100644--- a/crates/router/src/core/unified_connector_service/transformers.rs+++ b/crates/router/src/core/unified_connector_service/transformers.rs@@ -3109,6 +3109,7 @@ impl transformers::ForeignTryFrom<common_enums::PaymentMethodType>common_enums::PaymentMethodType::InstantBankTransfer => Ok(Self::InstantBankTransfer),common_enums::PaymentMethodType::Paypal => Ok(Self::PayPal),common_enums::PaymentMethodType::RevolutPay => Ok(Self::RevolutPay),+ common_enums::PaymentMethodType::NetworkToken => Ok(Self::NetworkToken),_ => Err(UnifiedConnectorServiceError::RequestEncodingFailedWithReason("Payment Method Type not yet supported".to_string(),@@ -3273,6 +3274,49 @@ impl}}+impl ForeignFrom<common_types::payments::TokenSource> for payments_grpc::TokenSource {+ fn foreign_from(token_source: common_types::payments::TokenSource) -> Self {+ match token_source {+ common_types::payments::TokenSource::GooglePay => Self::Googlepay,+ common_types::payments::TokenSource::ApplePay => Self::Applepay,+ }+ }+}++impl+ transformers::ForeignTryFrom<+ hyperswitch_domain_models::payment_method_data::DecryptedWalletTokenDetailsForNetworkTransactionId,+ > for payments_grpc::DecryptedWalletTokenDetailsForNetworkTransactionId+{+ type Error = error_stack::Report<UnifiedConnectorServiceError>;++ fn foreign_try_from(+ wallet_token_data: hyperswitch_domain_models::payment_method_data::DecryptedWalletTokenDetailsForNetworkTransactionId,+ ) -> Result<Self, Self::Error> {+ let decrypted_wallet_token_details = Self {+ decrypted_token: Some(+ NetworkToken::from_str(&wallet_token_data.decrypted_token.get_card_no())+ .change_context(+ UnifiedConnectorServiceError::RequestEncodingFailedWithReason(+ "Failed to parse decrypted wallet token number".to_string(),+ ),+ )?,+ ),+ token_exp_month: Some(wallet_token_data.token_exp_month.expose().into()),+ token_exp_year: Some(wallet_token_data.token_exp_year.expose().into()),+ card_holder_name: wallet_token_data+ .card_holder_name+ .map(|name| name.expose().into()),+ eci: wallet_token_data.eci,+ token_source: wallet_token_data+ .token_source+ .map(|ts| payments_grpc::TokenSource::foreign_from(ts).into()),+ };++ Ok(decrypted_wallet_token_details)+ }+}+impl transformers::ForeignTryFrom<&common_types::payments::ApplePayPaymentData>for payments_grpc::apple_wallet::payment_data::PaymentData{