mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-11 18:59:20 +08:00
feat(connector): add support for external authentication for cybersource (#4714)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@@ -84,6 +84,7 @@ pub async fn update_trackers<F: Clone, Req>(
|
||||
authn_flow_type,
|
||||
authentication_value,
|
||||
trans_status,
|
||||
ds_trans_id,
|
||||
} => {
|
||||
let authentication_status =
|
||||
common_enums::AuthenticationStatus::foreign_from(trans_status.clone());
|
||||
@@ -97,6 +98,7 @@ pub async fn update_trackers<F: Clone, Req>(
|
||||
acs_signed_content: authn_flow_type.get_acs_signed_content(),
|
||||
authentication_type: authn_flow_type.get_decoupled_authentication_type(),
|
||||
authentication_status,
|
||||
ds_trans_id,
|
||||
}
|
||||
}
|
||||
AuthenticationResponseData::PostAuthNResponse {
|
||||
@@ -183,6 +185,7 @@ pub async fn create_new_authentication(
|
||||
profile_id,
|
||||
payment_id,
|
||||
merchant_connector_id,
|
||||
ds_trans_id: None,
|
||||
directory_server_id: None,
|
||||
};
|
||||
state
|
||||
|
||||
@@ -369,7 +369,8 @@ impl ForeignTryFrom<&storage::Authentication> for AuthenticationData {
|
||||
eci: authentication.eci.clone(),
|
||||
cavv,
|
||||
threeds_server_transaction_id,
|
||||
message_version: message_version.to_string(),
|
||||
message_version,
|
||||
ds_trans_id: authentication.ds_trans_id.clone(),
|
||||
})
|
||||
} else {
|
||||
Err(errors::ApiErrorResponse::PaymentAuthenticationFailed { data: None }.into())
|
||||
|
||||
Reference in New Issue
Block a user