mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
fix(router): make endpoint_prefix optional in three_ds_metadata for unified_authentication_service (#9717)
This commit is contained in:
committed by
GitHub
parent
04a14e39c2
commit
a9f239d5c5
@ -1464,7 +1464,7 @@ impl<F: Clone + Send + Sync> Domain<F, api::PaymentsRequest, PaymentData<F>> for
|
||||
merchant_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),
|
||||
|
||||
@ -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),
|
||||
|
||||
Reference in New Issue
Block a user