Skip to content

Commit

Permalink
feat(connector): [Coinbase] Add order id as the reference id (juspay#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceres445 committed Oct 4, 2023
1 parent f0dc374 commit acda8c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/router/src/connector/coinbase/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl<F, T>
.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 {
Expand All @@ -145,7 +145,7 @@ impl<F, T>
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{
Expand All @@ -155,7 +155,7 @@ impl<F, T>
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()),

This comment has been minimized.

Copy link
@srujanchikke

srujanchikke Oct 5, 2023

clone is not required here .

})
},
);
Expand Down

0 comments on commit acda8c9

Please sign in to comment.