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(connector): [NETCETERA] Add fix for netcetera authentication response (#9077)

Debarati Ghatake2d72bef7dc0
diff --git a/crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs b/crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs
index 7427cd8cd0..0c12d7415c 100644
--- a/crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs
@@ -170,9 +170,9 @@ impl
});
let message_extension = response
- .authentication_request
+ .authentication_response
+ .message_extension
.as_ref()
- .and_then(|req| req.message_extension.as_ref())
.and_then(|v| match serde_json::to_value(v) {
Ok(val) => Some(Secret::new(val)),
Err(e) => {
@@ -686,7 +686,6 @@ pub struct NetceteraAuthenticationFailureResponse {
pub struct AuthenticationRequest {
#[serde(rename = "threeDSRequestorChallengeInd")]
pub three_ds_requestor_challenge_ind: Option<ThreedsRequestorChallengeInd>,
- pub message_extension: Option<serde_json::Value>,
}
#[derive(Debug, Serialize, Deserialize)]
@@ -708,6 +707,7 @@ pub struct AuthenticationResponse {
pub ds_trans_id: Option<String>,
pub acs_signed_content: Option<String>,
pub trans_status_reason: Option<String>,
+ pub message_extension: Option<serde_json::Value>,
}
#[derive(Debug, Deserialize, Serialize, Clone)]