Skip to content

Commit

Permalink
feat(connector): [Nuvei] Add order id as the reference id (#2408)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceres445 authored Oct 2, 2023
1 parent 89cb63b commit d5d876b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/router/src/connector/nuvei/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -1318,7 +1318,7 @@ where
None
},
network_txn_id: None,
connector_response_reference_id: None,
connector_response_reference_id: response.order_id,
})
},
..item.data
Expand Down

0 comments on commit d5d876b

Please sign in to comment.