From d5d876b821187648994ea53c358467966e99cd23 Mon Sep 17 00:00:00 2001 From: Druva Date: Mon, 2 Oct 2023 18:34:54 +0530 Subject: [PATCH] feat(connector): [Nuvei] Add order id as the reference id (#2408) --- crates/router/src/connector/nuvei/transformers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/router/src/connector/nuvei/transformers.rs b/crates/router/src/connector/nuvei/transformers.rs index 21b729554147..cf7d480e0c18 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