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(prism): Bump prism version to bring latest changes (#14298)
Shubhodip pal71da85aeb765
diff --git a/Cargo.lock b/Cargo.lockindex 598ea3e2f6..89375a397f 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -2288,7 +2288,7 @@ dependencies = [[[package]]name = "config_patch_derive"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.09.21.1#298f236f2979cbf869e2d372baebc2aa7dec5be4"+source = "git+https://github.com/juspay/connector-service?tag=2026.09.24.1#bc1f7d612dfc2704c33ea0dcd542c0b3cb467cc3"dependencies = ["proc-macro2","quote",@@ -4263,7 +4263,7 @@ checksum = "32619942b8be646939eaf3db0602b39f5229b74575b67efc897811ded1db4e57"[[package]]name = "grpc-api-types"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.09.21.1#298f236f2979cbf869e2d372baebc2aa7dec5be4"+source = "git+https://github.com/juspay/connector-service?tag=2026.09.24.1#bc1f7d612dfc2704c33ea0dcd542c0b3cb467cc3"dependencies = ["axum 0.8.4","bytes 1.10.1",@@ -8260,6 +8260,7 @@ dependencies = ["js-sys","log 0.4.27","mime 0.3.17",+ "mime_guess 2.0.5","native-tls","once_cell","percent-encoding 2.3.1",@@ -8589,7 +8590,7 @@ dependencies = [[[package]]name = "rust-grpc-client"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.09.21.1#298f236f2979cbf869e2d372baebc2aa7dec5be4"+source = "git+https://github.com/juspay/connector-service?tag=2026.09.24.1#bc1f7d612dfc2704c33ea0dcd542c0b3cb467cc3"dependencies = ["grpc-api-types",]@@ -11430,7 +11431,7 @@ checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9"[[package]]name = "ucs_cards"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.09.21.1#298f236f2979cbf869e2d372baebc2aa7dec5be4"+source = "git+https://github.com/juspay/connector-service?tag=2026.09.24.1#bc1f7d612dfc2704c33ea0dcd542c0b3cb467cc3"dependencies = ["bytes 1.10.1","error-stack 0.4.1",@@ -11446,7 +11447,7 @@ dependencies = [[[package]]name = "ucs_common_enums"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.09.21.1#298f236f2979cbf869e2d372baebc2aa7dec5be4"+source = "git+https://github.com/juspay/connector-service?tag=2026.09.24.1#bc1f7d612dfc2704c33ea0dcd542c0b3cb467cc3"dependencies = ["serde","strum 0.26.3",@@ -11457,7 +11458,7 @@ dependencies = [[[package]]name = "ucs_common_utils"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.09.21.1#298f236f2979cbf869e2d372baebc2aa7dec5be4"+source = "git+https://github.com/juspay/connector-service?tag=2026.09.24.1#bc1f7d612dfc2704c33ea0dcd542c0b3cb467cc3"dependencies = ["anyhow","base64 0.21.7",@@ -11478,7 +11479,7 @@ dependencies = ["quick-xml","rand 0.8.5","regex",- "reqwest 0.11.27",+ "reqwest 0.12.7","ring 0.17.14","rust_decimal","semver 1.0.26",diff --git a/crates/external_services/Cargo.toml b/crates/external_services/Cargo.tomlindex 178cf2ba06..08c013465e 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.09.21.1", package = "rust-grpc-client" }+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.09.24.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.tomlindex 228286c35c..d343f9ccb3 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.09.21.1", package = "rust-grpc-client" }+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.09.24.1", package = "rust-grpc-client" }tokio = { version = "1.45.1", features = ["macros", "rt-multi-thread"] }# First party cratesdiff --git a/crates/hyperswitch_interfaces/src/unified_connector_service/transformers.rs b/crates/hyperswitch_interfaces/src/unified_connector_service/transformers.rsindex 7bb35ec1a1..75882bc1cd 100644--- a/crates/hyperswitch_interfaces/src/unified_connector_service/transformers.rs+++ b/crates/hyperswitch_interfaces/src/unified_connector_service/transformers.rs@@ -700,6 +700,7 @@ impl ForeignTryFrom<(payments_grpc::PaymentStatus, Self)> for AttemptStatus {payments_grpc::PaymentStatus::Unspecified => Ok(prev_status),payments_grpc::PaymentStatus::PartiallyAuthorized => Ok(Self::PartiallyAuthorized),payments_grpc::PaymentStatus::Expired => Ok(Self::Expired),+ payments_grpc::PaymentStatus::Conflicted => Ok(Self::IntegrityFailure),}}}@@ -809,15 +810,33 @@ impl ForeignTryFrom<payments_grpc::AdditionalPaymentMethodConnectorResponse>),) => Ok(Self::GooglePay {auth_code: google_pay_data.auth_code,- // UCS's GooglePayConnectorResponse proto does not carry bin/issuer data yet- device_pan_bin: None,- card_bin: None,- card_subtype: None,- card_segment_type: None,- funding_source: None,- card_type: None,- issuer_name: None,- issuer_country: None,+ device_pan_bin: google_pay_data.device_pan_bin,+ card_bin: google_pay_data.card_bin,+ card_subtype: google_pay_data.card_subtype,+ card_segment_type: google_pay_data.card_segment_type.and_then(|raw| {+ payments_grpc::CardSegmentType::try_from(raw)+ .ok()+ .and_then(|seg| common_enums::CardSegmentType::foreign_try_from(seg).ok())+ }),+ funding_source: google_pay_data.funding_source.and_then(|raw| {+ payments_grpc::FundingSource::try_from(raw)+ .ok()+ .and_then(|src| common_enums::FundingSource::foreign_try_from(src).ok())+ }),+ card_type: google_pay_data.card_type.and_then(|raw| {+ payments_grpc::CardType::try_from(raw)+ .ok()+ .and_then(|ct| common_enums::CardType::foreign_try_from(ct).ok())+ }),+ issuer_name: google_pay_data.issuer_name,+ issuer_country: google_pay_data.issuer_country.and_then(|raw| {+ payments_grpc::CountryAlpha2::try_from(raw)+ .ok()+ .filter(|country| *country != payments_grpc::CountryAlpha2::Unspecified)+ .and_then(|country| {+ common_enums::CountryAlpha2::from_str(country.as_str_name()).ok()+ })+ }),}),Some(payments_grpc::additional_payment_method_connector_response::PaymentMethodData::ApplePay(@@ -825,14 +844,28 @@ impl ForeignTryFrom<payments_grpc::AdditionalPaymentMethodConnectorResponse>),) => Ok(Self::ApplePay {auth_code: apple_pay_data.auth_code,- // UCS's ApplePayConnectorResponse proto does not carry bin/issuer data yet- device_pan_bin: None,- card_bin: None,- card_subtype: None,- card_segment_type: None,- funding_source: None,- issuer_name: None,- issuer_country: None,+ device_pan_bin: apple_pay_data.device_pan_bin,+ card_bin: apple_pay_data.card_bin,+ card_subtype: apple_pay_data.card_subtype,+ card_segment_type: apple_pay_data.card_segment_type.and_then(|raw| {+ payments_grpc::CardSegmentType::try_from(raw)+ .ok()+ .and_then(|seg| common_enums::CardSegmentType::foreign_try_from(seg).ok())+ }),+ funding_source: apple_pay_data.funding_source.and_then(|raw| {+ payments_grpc::FundingSource::try_from(raw)+ .ok()+ .and_then(|src| common_enums::FundingSource::foreign_try_from(src).ok())+ }),+ issuer_name: apple_pay_data.issuer_name,+ issuer_country: apple_pay_data.issuer_country.and_then(|raw| {+ payments_grpc::CountryAlpha2::try_from(raw)+ .ok()+ .filter(|country| *country != payments_grpc::CountryAlpha2::Unspecified)+ .and_then(|country| {+ common_enums::CountryAlpha2::from_str(country.as_str_name()).ok()+ })+ }),}),Some(payments_grpc::additional_payment_method_connector_response::PaymentMethodData::BankRedirect(bank_redirect_data)) => {let interac = bank_redirect_data.interac.map(|proto_interac| {@@ -1042,6 +1075,59 @@ impl ForeignTryFrom<payments_grpc::BankHolderType> for common_enums::BankHolderT}}+impl ForeignTryFrom<payments_grpc::CardSegmentType> for common_enums::CardSegmentType {+ type Error = error_stack::Report<UnifiedConnectorServiceError>;++ fn foreign_try_from(value: payments_grpc::CardSegmentType) -> Result<Self, Self::Error> {+ match value {+ payments_grpc::CardSegmentType::Consumer => Ok(Self::Consumer),+ payments_grpc::CardSegmentType::Commercial => Ok(Self::Commercial),+ payments_grpc::CardSegmentType::Business => Ok(Self::Business),+ payments_grpc::CardSegmentType::Government => Ok(Self::Government),+ payments_grpc::CardSegmentType::Unspecified => Err(error_stack::Report::new(+ UnifiedConnectorServiceError::ParsingFailed,+ )+ .attach_printable("Received unspecified CardSegmentType from gRPC")),+ }+ }+}++impl ForeignTryFrom<payments_grpc::FundingSource> for common_enums::FundingSource {+ type Error = error_stack::Report<UnifiedConnectorServiceError>;++ fn foreign_try_from(value: payments_grpc::FundingSource) -> Result<Self, Self::Error> {+ match value {+ payments_grpc::FundingSource::Credit => Ok(Self::Credit),+ payments_grpc::FundingSource::Debit => Ok(Self::Debit),+ payments_grpc::FundingSource::Prepaid => Ok(Self::Prepaid),+ payments_grpc::FundingSource::ChargeCard => Ok(Self::ChargeCard),+ payments_grpc::FundingSource::DeferredDebit => Ok(Self::DeferredDebit),+ payments_grpc::FundingSource::Unspecified => Err(error_stack::Report::new(+ UnifiedConnectorServiceError::ParsingFailed,+ )+ .attach_printable("Received unspecified FundingSource from gRPC")),+ }+ }+}++impl ForeignTryFrom<payments_grpc::CardType> for common_enums::CardType {+ type Error = error_stack::Report<UnifiedConnectorServiceError>;++ fn foreign_try_from(value: payments_grpc::CardType) -> Result<Self, Self::Error> {+ match value {+ payments_grpc::CardType::Credit => Ok(Self::Credit),+ payments_grpc::CardType::Debit => Ok(Self::Debit),+ payments_grpc::CardType::Prepaid => Ok(Self::Prepaid),+ payments_grpc::CardType::Store => Ok(Self::Store),+ payments_grpc::CardType::ChargeCard => Ok(Self::ChargeCard),+ payments_grpc::CardType::Unspecified => Err(error_stack::Report::new(+ UnifiedConnectorServiceError::ParsingFailed,+ )+ .attach_printable("Received unspecified CardType from gRPC")),+ }+ }+}+impl ForeignTryFrom<payments_grpc::BankNames> for common_enums::BankNames {type Error = error_stack::Report<UnifiedConnectorServiceError>;diff --git a/crates/router/Cargo.toml b/crates/router/Cargo.tomlindex 929bb386e4..790e541c79 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.09.21.1", package = "rust-grpc-client" }-unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", tag = "2026.09.21.1", package = "ucs_cards" }+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.09.24.1",package = "rust-grpc-client" }+unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", tag = "2026.09.24.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.rs b/crates/router/src/core/unified_connector_service.rsindex 05cb2735ad..bb2154e333 100644--- a/crates/router/src/core/unified_connector_service.rs+++ b/crates/router/src/core/unified_connector_service.rs@@ -4702,6 +4702,7 @@ pub fn build_notify_connector_request()?),timestamp: event.created_at.assume_utc().unix_timestamp(),state: None,+ connector_feature_data: None,},connector_auth_metadata,notify_event_type,diff --git a/crates/router/src/core/unified_connector_service/transformers.rs b/crates/router/src/core/unified_connector_service/transformers.rsindex d28cce97ff..3902be0c78 100644--- a/crates/router/src/core/unified_connector_service/transformers.rs+++ b/crates/router/src/core/unified_connector_service/transformers.rs@@ -1062,7 +1062,7 @@ impl.tokenization.map(payments_grpc::Tokenization::foreign_from).map(Into::into),- l2_l3_data: None,+ l2_l3_data: build_ucs_l2_l3_data(router_data.l2_l3_data.as_deref()),connector_order_id: router_data.request.order_id@@ -1131,6 +1131,24 @@ impl.transpose()?.map(|payment_method_type| payment_method_type.into()),order_details: build_ucs_order_details(router_data.request.order_details.as_deref()),+ customer: Some(payments_grpc::Customer {+ first_name: None,+ last_name: None,+ salutation: None,+ name: None,+ email: None,+ id: None,+ connector_customer_id: router_data.connector_customer.clone(),+ phone_number: None,+ phone_country_code: None,+ customer_document_details: to_grpc_customer_document_details(router_data),+ date_of_birth: router_data+ .customer_date_of_birth+ .as_ref()+ .map(format_date_of_birth)+ .transpose()?,+ }),+ setup_future_usage: None,})}}@@ -1972,6 +1990,7 @@ implcapture_method: capture_method.map(|capture_method| capture_method.into()),description: router_data.description.clone(),merchant_transaction_id: None,+ test_mode: router_data.test_mode,})}}@@ -2077,6 +2096,7 @@ implcapture_method: capture_method.map(|capture_method| capture_method.into()),description: router_data.description.clone(),merchant_transaction_id: Some(router_data.connector_request_reference_id.clone()),+ test_mode: router_data.test_mode,})}}@@ -2321,7 +2341,7 @@ impl.order_id.clone().or_else(|| router_data.request.connector_transaction_id.clone()),- l2_l3_data: None,+ l2_l3_data: build_ucs_l2_l3_data(router_data.l2_l3_data.as_deref()),merchant_request_id: None,partner_merchant_identifier_details: None,// TODO: Populate currency_conversion_data when Dynamic Currency Conversion (DCC) is implemented@@ -2734,7 +2754,7 @@ implredirection_response: None,continue_redirection_url: None,connector_order_id: None,- l2_l3_data: None,+ l2_l3_data: build_ucs_l2_l3_data(router_data.l2_l3_data.as_deref()),merchant_request_id: None,partner_merchant_identifier_details: None,// TODO: Populate currency_conversion_data when Dynamic Currency Conversion (DCC) is implemented@@ -2906,7 +2926,7 @@ impl.connector_testing_data.as_ref().map(|data| Secret::new(data.peek().to_string())),- l2_l3_data: None,+ l2_l3_data: build_ucs_l2_l3_data(router_data.l2_l3_data.as_deref()),setup_mandate_details: None,partner_merchant_identifier_details: router_data.request@@ -3179,7 +3199,7 @@ impl.map(payments_grpc::Currency::foreign_try_from).transpose()?.map(|currency| currency.into()),- l2_l3_data: None,+ l2_l3_data: build_ucs_l2_l3_data(router_data.l2_l3_data.as_deref()),customer_document_details: to_grpc_customer_document_details(router_data),customer: Some(payments_grpc::Customer {first_name: None,@@ -4410,9 +4430,9 @@ impl ForeignFrom<common_enums::CardNetwork> for payments_grpc::CardNetwork {common_enums::CardNetwork::Pulse => Self::Pulse,common_enums::CardNetwork::Accel => Self::Accel,common_enums::CardNetwork::Nyce => Self::Nyce,- common_enums::CardNetwork::Prop- | common_enums::CardNetwork::PrivateLabel- | common_enums::CardNetwork::Dinacard => Self::Unspecified,+ common_enums::CardNetwork::Prop => Self::Prop,+ common_enums::CardNetwork::PrivateLabel => Self::PrivateLabel,+ common_enums::CardNetwork::Dinacard => Self::Dinacard,}}}