From acda8c90a79d31a8b6ddd0d5ac3cbc36c8d5f2a7 Mon Sep 17 00:00:00 2001 From: Druva D Date: Thu, 5 Oct 2023 03:26:46 +0530 Subject: [PATCH] feat(connector): [Coinbase] Add order id as the reference id (#2326) --- crates/router/src/connector/coinbase/transformers.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/router/src/connector/coinbase/transformers.rs b/crates/router/src/connector/coinbase/transformers.rs index acc08e36e499..eeae0c6f4f60 100644 --- a/crates/router/src/connector/coinbase/transformers.rs +++ b/crates/router/src/connector/coinbase/transformers.rs @@ -136,7 +136,7 @@ impl .last() .ok_or(errors::ConnectorError::ResponseHandlingFailed)? .clone(); - let connector_id = types::ResponseId::ConnectorTransactionId(item.response.data.id); + let connector_id = types::ResponseId::ConnectorTransactionId(item.response.data.id.clone()); let attempt_status = timeline.status.clone(); let response_data = timeline.context.map_or( Ok(types::PaymentsResponseData::TransactionResponse { @@ -145,7 +145,7 @@ impl mandate_reference: None, connector_metadata: None, network_txn_id: None, - connector_response_reference_id: None, + connector_response_reference_id: Some(item.response.data.id.clone()), }), |context| { Ok(types::PaymentsResponseData::TransactionUnresolvedResponse{ @@ -155,7 +155,7 @@ impl message: "Please check the transaction in coinbase dashboard and resolve manually" .to_string(), }), - connector_response_reference_id: None, + connector_response_reference_id: Some(item.response.data.id.clone()), }) }, );