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

feat(connector): [Nuvei] Add order id as the reference id (#2408)

Druvad5d876b82118
diff --git a/crates/router/src/connector/nuvei/transformers.rs b/crates/router/src/connector/nuvei/transformers.rs
index 21b7295541..cf7d480e0c 100644
--- a/crates/router/src/connector/nuvei/transformers.rs
+++ b/crates/router/src/connector/nuvei/transformers.rs
@@ -1294,7 +1294,7 @@ where
Ok(types::PaymentsResponseData::TransactionResponse {
resource_id: response
.transaction_id
- .map_or(response.order_id, Some) // For paypal there will be no transaction_id, only order_id will be present
+ .map_or(response.order_id.clone(), Some) // For paypal there will be no transaction_id, only order_id will be present
.map(types::ResponseId::ConnectorTransactionId)
.ok_or(errors::ConnectorError::MissingConnectorTransactionID)?,
redirection_data,
@@ -1318,7 +1318,7 @@ where
None
},
network_txn_id: None,
- connector_response_reference_id: None,
+ connector_response_reference_id: response.order_id,
})
},
..item.data