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(connectors): [Nexixpay] send cvv in nexixpay requests (#9459)

Mrudul Vajpayeea00855a4a582
diff --git a/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs b/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
index 5c8fdd5e02..68ad70da2a 100644
--- a/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
@@ -410,6 +410,7 @@ pub struct ShippingAddress {
pub struct NexixpayCard {
pan: CardNumber,
expiry_date: Secret<String>,
+ cvv: Secret<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@@ -798,6 +799,7 @@ impl TryFrom<&NexixpayRouterData<&PaymentsAuthorizeRouterData>> for NexixpayPaym
card: NexixpayCard {
pan: req_card.card_number.clone(),
expiry_date: req_card.get_expiry_date_as_mmyy()?,
+ cvv: req_card.card_cvc.clone(),
},
recurrence: recurrence_request_obj,
},
@@ -1357,6 +1359,7 @@ impl TryFrom<&NexixpayRouterData<&PaymentsCompleteAuthorizeRouterData>>
PaymentMethodData::Card(req_card) => Ok(NexixpayCard {
pan: req_card.card_number.clone(),
expiry_date: req_card.get_expiry_date_as_mmyy()?,
+ cvv: req_card.card_cvc.clone(),
}),
PaymentMethodData::CardRedirect(_)
| PaymentMethodData::Wallet(_)