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(nmi): pass only the payment data in the setup mandate call (#10333)

Shankar Singh C085be82b45ad
diff --git a/crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs b/crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs
index 868de256a8..80a9468ccb 100644
--- a/crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs
@@ -431,6 +431,7 @@ pub struct NmiValidateRequest {
}
#[derive(Debug, Serialize)]
+#[serde(untagged)]
pub enum NmiValidatePaymentData {
ApplePay(Box<ApplePayData>),
Card(Box<CardData>),