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
fix(router): make `endpoint_prefix` optional in three_ds_metadata for unified_authentication_service (#9717)
Sai Harsha Vardhana9f239d5c5a6
diff --git a/crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs b/crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rsindex e71e369309..40b4739724 100644--- a/crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs+++ b/crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs@@ -182,7 +182,7 @@ pub struct ThreeDsMetaData {pub merchant_category_code: Option<MerchantCategoryCode>,pub merchant_country_code: Option<MerchantCountryCode>,pub merchant_name: Option<String>,- pub endpoint_prefix: String,+ pub endpoint_prefix: Option<String>,pub three_ds_requestor_name: Option<String>,pub three_ds_requestor_id: Option<String>,pub merchant_configuration_id: Option<String>,diff --git a/crates/router/src/core/payments/operations/payment_confirm.rs b/crates/router/src/core/payments/operations/payment_confirm.rsindex 6ce1aa8af7..d0e08ee0c8 100644--- a/crates/router/src/core/payments/operations/payment_confirm.rs+++ b/crates/router/src/core/payments/operations/payment_confirm.rs@@ -1464,7 +1464,7 @@ impl<F: Clone + Send + Sync> Domain<F, api::PaymentsRequest, PaymentData<F>> formerchant_id: Some(authentication.merchant_id.get_string_repr().to_string()),merchant_name: acquirer_configs.clone().map(|detail| detail.merchant_name.clone()).or(metadata.clone().and_then(|metadata| metadata.merchant_name)),merchant_category_code: business_profile.merchant_category_code.or(metadata.clone().and_then(|metadata| metadata.merchant_category_code)),- endpoint_prefix: metadata.clone().map(|metadata| metadata.endpoint_prefix),+ endpoint_prefix: metadata.clone().and_then(|metadata| metadata.endpoint_prefix),three_ds_requestor_url: business_profile.authentication_connector_details.clone().map(|details| details.three_ds_requestor_url),three_ds_requestor_id: metadata.clone().and_then(|metadata| metadata.three_ds_requestor_id),three_ds_requestor_name: metadata.clone().and_then(|metadata| metadata.three_ds_requestor_name),diff --git a/crates/router/src/core/unified_authentication_service.rs b/crates/router/src/core/unified_authentication_service.rsindex 49ca215ba8..7863285458 100644--- a/crates/router/src/core/unified_authentication_service.rs+++ b/crates/router/src/core/unified_authentication_service.rs@@ -995,7 +995,7 @@ pub async fn authentication_eligibility_core(merchant_id: Some(authentication.merchant_id.get_string_repr().to_string()),merchant_name: acquirer_details.clone().map(|detail| detail.merchant_name.clone()).or(metadata.clone().and_then(|metadata| metadata.merchant_name)),merchant_category_code: business_profile.merchant_category_code.or(metadata.clone().and_then(|metadata| metadata.merchant_category_code)),- endpoint_prefix: metadata.clone().map(|metadata| metadata.endpoint_prefix),+ endpoint_prefix: metadata.clone().and_then(|metadata| metadata.endpoint_prefix),three_ds_requestor_url: business_profile.authentication_connector_details.map(|details| details.three_ds_requestor_url),three_ds_requestor_id: metadata.clone().and_then(|metadata| metadata.three_ds_requestor_id),three_ds_requestor_name: metadata.clone().and_then(|metadata| metadata.three_ds_requestor_name),