Skip to content

Commit

Permalink
fix: Fix connector response reference ID
Browse files Browse the repository at this point in the history
  • Loading branch information
unpervertedkid committed Dec 2, 2023
1 parent be5c908 commit 6907a2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/router/src/connector/braintree/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ impl<F, T>
types::PaymentsResponseData,
>,
) -> Result<Self, Self::Error> {
let connector_id = types::ResponseId::ConnectorTransactionId(item.response.id.clone());
let connector_id = types::ResponseId::ConnectorTransactionId(item.response.transaction.id.clone());
Ok(Self {
status: enums::AttemptStatus::from(item.response.transaction.status),
response: Ok(types::PaymentsResponseData::TransactionResponse {
Expand All @@ -237,7 +237,7 @@ impl<F, T>
mandate_reference: None,
connector_metadata: None,
network_txn_id: None,
connector_response_reference_id: Some(item.response.id),
connector_response_reference_id: Some(item.response.transaction.id),
incremental_authorization_allowed: None,
}),
..item.data
Expand Down

0 comments on commit 6907a2b

Please sign in to comment.