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

refactor(connector): [NMI] Change fields for external auth due to API contract changes (#4531)

Sakil Mostak74172509e3b9
diff --git a/crates/router/src/connector/nmi/transformers.rs b/crates/router/src/connector/nmi/transformers.rs
index 84eb358bb8..ea61782d49 100644
--- a/crates/router/src/connector/nmi/transformers.rs
+++ b/crates/router/src/connector/nmi/transformers.rs
@@ -484,7 +484,6 @@ pub struct CardThreeDsData {
email: Option<Email>,
cardholder_auth: Option<String>,
cavv: Option<String>,
- xid: Option<String>,
eci: Option<String>,
cvv: Secret<String>,
three_ds_version: Option<String>,
@@ -630,10 +629,9 @@ impl TryFrom<(&domain::payments::Card, &types::PaymentsAuthorizeData)> for Payme
email: item.email.clone(),
cavv: Some(auth_data.cavv.clone()),
eci: auth_data.eci.clone(),
- xid: Some(auth_data.threeds_server_transaction_id.clone()),
cardholder_auth: None,
three_ds_version: Some(auth_data.message_version.clone()),
- directory_server_id: None,
+ directory_server_id: Some(auth_data.threeds_server_transaction_id.clone().into()),
};
Ok(Self::CardThreeDs(Box::new(card_3ds_details)))