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): Bumped UCS Client dependency to bring latest changes (#9873)
Debarshi Gupta63c2fee330a3
diff --git a/Cargo.lock b/Cargo.lockindex 1eb8340252..aad1a08dc0 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -3813,14 +3813,14 @@ dependencies = [[[package]]name = "grpc-api-types"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?rev=f719688943adf7bc17bb93dcb43f27485c17a96e#f719688943adf7bc17bb93dcb43f27485c17a96e"+source = "git+https://github.com/juspay/connector-service?rev=36731a85e6b7877139ca3b6ee5d6b919702df8b4#36731a85e6b7877139ca3b6ee5d6b919702df8b4"dependencies = ["axum 0.8.4","error-stack 0.5.0","g2h","heck 0.5.0","http 1.3.1",- "masking 0.1.0 (git+https://github.com/juspay/hyperswitch?tag=2025.09.17.0)",+ "masking 0.1.0 (git+https://github.com/juspay/hyperswitch?tag=2025.09.24.0)","prost","prost-build","prost-types",@@ -4424,6 +4424,7 @@ dependencies = ["http 0.2.12","hyperswitch_domain_models","masking 0.1.0",+ "masking 0.1.0 (git+https://github.com/juspay/hyperswitch?tag=2025.09.24.0)","mime","reqwest 0.11.27","router_env",@@ -5181,7 +5182,7 @@ dependencies = [[[package]]name = "masking"version = "0.1.0"-source = "git+https://github.com/juspay/hyperswitch?tag=2025.09.17.0#15406557c11041bab6358f2b4b916d7333fc0a0f"+source = "git+https://github.com/juspay/hyperswitch?tag=2025.09.24.0#85da1b2bc80d4befd392cf7a9d2060d1e2f5cbe9"dependencies = ["bytes 1.10.1","diesel",@@ -7322,6 +7323,7 @@ dependencies = ["jsonwebtoken","kgraph_utils","masking 0.1.0",+ "masking 0.1.0 (git+https://github.com/juspay/hyperswitch?tag=2025.09.24.0)","maud","mimalloc","mime",@@ -7454,7 +7456,7 @@ dependencies = [[[package]]name = "rust-grpc-client"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?rev=f719688943adf7bc17bb93dcb43f27485c17a96e#f719688943adf7bc17bb93dcb43f27485c17a96e"+source = "git+https://github.com/juspay/connector-service?rev=36731a85e6b7877139ca3b6ee5d6b919702df8b4#36731a85e6b7877139ca3b6ee5d6b919702df8b4"dependencies = ["grpc-api-types",]@@ -10241,11 +10243,11 @@ checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9"[[package]]name = "ucs_cards"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?rev=f719688943adf7bc17bb93dcb43f27485c17a96e#f719688943adf7bc17bb93dcb43f27485c17a96e"+source = "git+https://github.com/juspay/connector-service?rev=36731a85e6b7877139ca3b6ee5d6b919702df8b4#36731a85e6b7877139ca3b6ee5d6b919702df8b4"dependencies = ["bytes 1.10.1","error-stack 0.4.1",- "masking 0.1.0 (git+https://github.com/juspay/hyperswitch?tag=2025.09.17.0)",+ "masking 0.1.0 (git+https://github.com/juspay/hyperswitch?tag=2025.09.24.0)","prost","regex","serde",@@ -10257,7 +10259,7 @@ dependencies = [[[package]]name = "ucs_common_enums"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?rev=f719688943adf7bc17bb93dcb43f27485c17a96e#f719688943adf7bc17bb93dcb43f27485c17a96e"+source = "git+https://github.com/juspay/connector-service?rev=36731a85e6b7877139ca3b6ee5d6b919702df8b4#36731a85e6b7877139ca3b6ee5d6b919702df8b4"dependencies = ["serde","strum 0.26.3",@@ -10268,16 +10270,17 @@ dependencies = [[[package]]name = "ucs_common_utils"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?rev=f719688943adf7bc17bb93dcb43f27485c17a96e#f719688943adf7bc17bb93dcb43f27485c17a96e"+source = "git+https://github.com/juspay/connector-service?rev=36731a85e6b7877139ca3b6ee5d6b919702df8b4#36731a85e6b7877139ca3b6ee5d6b919702df8b4"dependencies = ["anyhow",+ "base64 0.21.7","blake3","bytes 1.10.1","chrono","error-stack 0.4.1","hex","http 1.3.1",- "masking 0.1.0 (git+https://github.com/juspay/hyperswitch?tag=2025.09.17.0)",+ "masking 0.1.0 (git+https://github.com/juspay/hyperswitch?tag=2025.09.24.0)","md5","nanoid","once_cell",@@ -10294,6 +10297,7 @@ dependencies = ["strum 0.26.3","thiserror 1.0.69","time",+ "tonic 0.13.1","tracing","ucs_common_enums","url",diff --git a/crates/external_services/Cargo.toml b/crates/external_services/Cargo.tomlindex db4b01cc0d..4cef3ae026 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 = "f719688943adf7bc17bb93dcb43f27485c17a96e", package = "rust-grpc-client" }+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", rev = "36731a85e6b7877139ca3b6ee5d6b919702df8b4", 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.tomlindex 199715a146..d7424fc812 100644--- a/crates/hyperswitch_interfaces/Cargo.toml+++ b/crates/hyperswitch_interfaces/Cargo.toml@@ -29,7 +29,8 @@ serde_json = "1.0.140"strum = { version = "0.26", features = ["derive"] }thiserror = "1.0.69"time = "0.3.41"-unified-connector-service-client = { git = "https://github.com/juspay/connector-service", rev = "f719688943adf7bc17bb93dcb43f27485c17a96e", package = "rust-grpc-client" }+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", rev = "36731a85e6b7877139ca3b6ee5d6b919702df8b4", package = "rust-grpc-client" }+unified-connector-service-masking = { git = "https://github.com/juspay/hyperswitch", tag = "2025.09.24.0", package = "masking" }# First party crateshyperswitch_domain_models = { version = "0.1.0", path = "../hyperswitch_domain_models", default-features = false }diff --git a/crates/hyperswitch_interfaces/src/api_client.rs b/crates/hyperswitch_interfaces/src/api_client.rsindex 32c007c2ca..b1aedabcbc 100644--- a/crates/hyperswitch_interfaces/src/api_client.rs+++ b/crates/hyperswitch_interfaces/src/api_client.rs@@ -19,6 +19,7 @@ use masking::Maskable;use reqwest::multipart::Form;use router_env::{instrument, logger, tracing, tracing_actix_web::RequestId};use serde_json::json;+use unified_connector_service_masking::ExposeInterface;use crate::{configs,@@ -501,7 +502,7 @@ where});updated_router_data.raw_connector_response = payment_get_response.raw_connector_response- .map(masking::Secret::new);+ .map(|raw_connector_response| raw_connector_response.expose().into());updated_router_data.connector_http_status_code = Some(status_code);Ok(updated_router_data)diff --git a/crates/router/Cargo.toml b/crates/router/Cargo.tomlindex d8ba677935..8fba5d4a65 100644--- a/crates/router/Cargo.toml+++ b/crates/router/Cargo.toml@@ -89,8 +89,9 @@ 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", rev = "f719688943adf7bc17bb93dcb43f27485c17a96e", package = "rust-grpc-client" }-unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", rev = "f719688943adf7bc17bb93dcb43f27485c17a96e", package = "ucs_cards" }+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", rev = "36731a85e6b7877139ca3b6ee5d6b919702df8b4", package = "rust-grpc-client" }+unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", rev = "36731a85e6b7877139ca3b6ee5d6b919702df8b4", package = "ucs_cards" }+unified-connector-service-masking = { git = "https://github.com/juspay/hyperswitch", tag = "2025.09.24.0", package = "masking" }rustc-hash = "1.1.0"rustls = "0.22"rustls-pemfile = "2"diff --git a/crates/router/src/core/payments/flows/authorize_flow.rs b/crates/router/src/core/payments/flows/authorize_flow.rsindex a5d202c5c8..e47b17a3bc 100644--- a/crates/router/src/core/payments/flows/authorize_flow.rs+++ b/crates/router/src/core/payments/flows/authorize_flow.rs@@ -12,8 +12,9 @@ use hyperswitch_domain_models::{errors::api_error_response::ApiErrorResponse, payments as domain_payments,};use hyperswitch_interfaces::{api as api_interface, api::ConnectorSpecifications};-use masking::{ExposeInterface, Secret};+use masking::ExposeInterface;use unified_connector_service_client::payments as payments_grpc;+use unified_connector_service_masking::ExposeInterface as UcsMaskingExposeInterface;// use router_env::tracing::Instrument;use super::{ConstructFlowSpecificData, Feature};@@ -949,7 +950,7 @@ async fn call_unified_connector_service_authorize(router_data.raw_connector_response = payment_authorize_response.raw_connector_response.clone()- .map(Secret::new);+ .map(|raw_connector_response| raw_connector_response.expose().into());router_data.connector_http_status_code = Some(status_code);Ok((router_data, payment_authorize_response))@@ -1042,7 +1043,7 @@ async fn call_unified_connector_service_repeat_payment(router_data.raw_connector_response = payment_repeat_response.raw_connector_response.clone()- .map(Secret::new);+ .map(|raw_connector_response| raw_connector_response.expose().into());router_data.connector_http_status_code = Some(status_code);Ok((router_data, payment_repeat_response))diff --git a/crates/router/src/core/payments/flows/external_proxy_flow.rs b/crates/router/src/core/payments/flows/external_proxy_flow.rsindex 71289348ef..c1617c3c7b 100644--- a/crates/router/src/core/payments/flows/external_proxy_flow.rs+++ b/crates/router/src/core/payments/flows/external_proxy_flow.rs@@ -12,6 +12,7 @@ use hyperswitch_domain_models::{};use masking::ExposeInterface;use unified_connector_service_client::payments as payments_grpc;+use unified_connector_service_masking::ExposeInterface as UcsMaskingExposeInterface;use super::{ConstructFlowSpecificData, Feature};use crate::{@@ -450,7 +451,7 @@ impl Feature<api::ExternalVaultProxy, types::ExternalVaultProxyPaymentsData>router_data.raw_connector_response = payment_authorize_response.raw_connector_response.clone()- .map(masking::Secret::new);+ .map(|raw_connector_response| raw_connector_response.expose().into());router_data.connector_http_status_code = Some(status_code);Ok((router_data, payment_authorize_response))diff --git a/crates/router/src/core/payments/flows/psync_flow.rs b/crates/router/src/core/payments/flows/psync_flow.rsindex cf8fe04738..661e980e10 100644--- a/crates/router/src/core/payments/flows/psync_flow.rs+++ b/crates/router/src/core/payments/flows/psync_flow.rs@@ -7,8 +7,8 @@ use error_stack::ResultExt;use external_services::grpc_client;use hyperswitch_domain_models::payments as domain_payments;use hyperswitch_interfaces::unified_connector_service::handle_unified_connector_service_response_for_payment_get;-use masking::Secret;use unified_connector_service_client::payments as payments_grpc;+use unified_connector_service_masking::ExposeInterface;use super::{ConstructFlowSpecificData, Feature};use crate::{@@ -322,7 +322,7 @@ impl Feature<api::PSync, types::PaymentsSyncData>router_data.raw_connector_response = payment_get_response.raw_connector_response.clone()- .map(Secret::new);+ .map(|raw_connector_response| raw_connector_response.expose().into());router_data.connector_http_status_code = Some(status_code);Ok((router_data, payment_get_response))diff --git a/crates/router/src/core/unified_connector_service/transformers.rs b/crates/router/src/core/unified_connector_service/transformers.rsindex 28de14d090..5957c3cc08 100644--- a/crates/router/src/core/unified_connector_service/transformers.rs+++ b/crates/router/src/core/unified_connector_service/transformers.rs@@ -77,12 +77,16 @@ impl transformers::ForeignTryFrom<&RouterData<PSync, PaymentsSyncData, PaymentsRid_type: Some(payments_grpc::identifier::IdType::Id(id)),});+ let currency = payments_grpc::Currency::foreign_try_from(router_data.request.currency)?;+Ok(Self {transaction_id: connector_transaction_id.or(encoded_data),request_ref_id: connector_ref_id,access_token: None,capture_method: None,handle_response: None,+ amount: router_data.request.amount.get_amount_as_i64(),+ currency: currency.into(),})}}@@ -186,7 +190,7 @@ implrouter_data.connector_request_reference_id.clone(),)),}),- connector_customer_id: router_data+ customer_id: router_data.request.customer_id.as_ref()@@ -203,6 +207,7 @@ impl}).unwrap_or_default(),test_mode: None,+ connector_customer_id: router_data.connector_customer.clone(),})}}@@ -316,7 +321,7 @@ implrouter_data.connector_request_reference_id.clone(),)),}),- connector_customer_id: router_data+ customer_id: router_data.request.customer_id.as_ref()@@ -333,6 +338,7 @@ impl}).unwrap_or_default(),test_mode: None,+ connector_customer_id: router_data.connector_customer.clone(),})}}@@ -472,6 +478,7 @@ implconnector_mandate_id,)) => Some(payments_grpc::MandateReference {mandate_id: connector_mandate_id.get_connector_mandate_id(),+ payment_method_id: connector_mandate_id.get_payment_method_id(),}),_ => {return Err(UnifiedConnectorServiceError::MissingRequiredField {