Skip to content

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

fix(authentication): added highest common supported version for 3ds server (#14305)

Sahkal Poddar00fe93615473
diff --git a/crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs b/crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs
index 9952cdd254..8a998d93d5 100644
--- a/crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs
@@ -449,7 +449,10 @@ impl<F, T>
.map(|response| response.three_ds_server_trans_id.clone()),
three_ds_method_data,
three_ds_method_url,
- message_version: maximum_supported_3ds_version,
+ message_version: three_ds_eligibility_response
+ .as_ref()
+ .and_then(|response| response.highest_common_supported_version.clone())
+ .or(maximum_supported_3ds_version),
connector_metadata: None,
directory_server_id: three_ds_eligibility_response
.as_ref()
@@ -846,6 +849,7 @@ pub struct ThreeDsEligibilityResponse {
pub error_details: Option<String>,
pub is_card_found_in_2x_ranges: bool,
pub directory_server_id: Option<String>,
+ pub highest_common_supported_version: Option<common_utils::types::SemanticVersion>,
}
impl ThreeDsEligibilityResponse {