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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(connector): [Nmi] add first name and last name for payments (#11986)
Nithin Ne3f7a448cb98
diff --git a/crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs b/crates/hyperswitch_connectors/src/connectors/nmi/transformers.rsindex b8499e2ce6..fe5963fad6 100644--- a/crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs+++ b/crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs@@ -549,6 +549,8 @@ pub struct NmiPaymentsRequest {#[skip_serializing_none]#[derive(Debug, Serialize)]pub struct NmiBillingDetails {+ first_name: Option<Secret<String>>,+ last_name: Option<Secret<String>>,address1: Option<Secret<String>>,address2: Option<Secret<String>>,city: Option<String>,@@ -1760,6 +1762,8 @@ impl TryFrom<&NmiWebhookBody> for SyncResponse {impl<T: utils::RouterData> NmiRouterData<&T> {pub fn get_billing_details(&self) -> NmiBillingDetails {NmiBillingDetails {+ first_name: self.router_data.get_optional_billing_first_name(),+ last_name: self.router_data.get_optional_billing_last_name(),address1: self.router_data.get_optional_billing_line1(),address2: self.router_data.get_optional_billing_line2(),city: self.router_data.get_optional_billing_city(),