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): [Nuvei] Normalize Nuvei network transaction IDs (#13446)
Vani Guptae8ef62f99bf0
diff --git a/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs b/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rsindex 60dadd5d6b..56d995030c 100644--- a/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs+++ b/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs@@ -2465,9 +2465,7 @@ fn create_transaction_response(} else {None},- network_txn_id: external_scheme_transaction_id- .as_ref()- .map(|ntid| ntid.clone().expose()),+ network_txn_id: get_network_txn_id(external_scheme_transaction_id),network_txn_link_id: None,connector_response_reference_id: order_id.clone(),incremental_authorization_allowed: None,@@ -2476,6 +2474,12 @@ fn create_transaction_response(})}+fn get_network_txn_id(external_scheme_transaction_id: Option<Secret<String>>) -> Option<String> {+ external_scheme_transaction_id+ .map(|ntid| ntid.expose())+ .filter(|ntid| !ntid.is_empty())+}+// Specialized implementation for AuthorizeimplTryFrom<