Skip to content

fix(connector): [NETCETERA] fix response field for netcetera authentication response #8850

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,21 @@ impl
}
Some(ACSChallengeMandatedIndicator::N) | None => AuthNFlowType::Frictionless,
};

let challenge_code = response
.authentication_request
.as_ref()
.and_then(|req| req.three_ds_requestor_challenge_ind.as_ref())
.and_then(|v| v.first().cloned());

Ok(AuthenticationResponseData::AuthNResponse {
authn_flow_type,
authentication_value: response.authentication_value,
trans_status: response.trans_status,
connector_metadata: None,
ds_trans_id: response.authentication_response.ds_trans_id,
eci: response.eci,
challenge_code: response.three_ds_requestor_challenge_ind,
challenge_code,
challenge_cancel: response.challenge_cancel,
challenge_code_reason: response.trans_status_reason,
message_extension: response.message_extension.and_then(|v| {
Expand Down Expand Up @@ -653,13 +660,12 @@ pub struct NetceteraAuthenticationSuccessResponse {
pub authentication_value: Option<Secret<String>>,
pub eci: Option<String>,
pub acs_challenge_mandated: Option<ACSChallengeMandatedIndicator>,
pub authentication_request: Option<AuthenticationRequest>,
pub authentication_response: AuthenticationResponse,
#[serde(rename = "base64EncodedChallengeRequest")]
pub encoded_challenge_request: Option<String>,
pub challenge_cancel: Option<String>,
pub trans_status_reason: Option<String>,
#[serde(rename = "threeDSRequestorChallengeInd")]
pub three_ds_requestor_challenge_ind: Option<String>,
pub message_extension: Option<Vec<MessageExtensionAttribute>>,
}

Expand All @@ -669,6 +675,13 @@ pub struct NetceteraAuthenticationFailureResponse {
pub error_details: NetceteraErrorDetails,
}

#[derive(Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct AuthenticationRequest {
#[serde(rename = "threeDSRequestorChallengeInd")]
pub three_ds_requestor_challenge_ind: Option<Vec<String>>,
}

#[derive(Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct AuthenticationResponse {
Expand Down
Loading