Skip to content

Commit

Permalink
feat(Braintree): Sync with Hyperswitch Reference (#3037)
Browse files Browse the repository at this point in the history
Co-authored-by: Prasunna Soppa <[email protected]>
  • Loading branch information
unpervertedkid and prasunna09 authored Dec 6, 2023
1 parent 47c0383 commit 8a995ce
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/router/src/connector/braintree/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,17 +228,16 @@ impl<F, T>
types::PaymentsResponseData,
>,
) -> Result<Self, Self::Error> {
let id = item.response.transaction.id.clone();
Ok(Self {
status: enums::AttemptStatus::from(item.response.transaction.status),
response: Ok(types::PaymentsResponseData::TransactionResponse {
resource_id: types::ResponseId::ConnectorTransactionId(
item.response.transaction.id,
),
resource_id: types::ResponseId::ConnectorTransactionId(id.clone()),
redirection_data: None,
mandate_reference: None,
connector_metadata: None,
network_txn_id: None,
connector_response_reference_id: None,
connector_response_reference_id: Some(id),
incremental_authorization_allowed: None,
}),
..item.data
Expand Down

0 comments on commit 8a995ce

Please sign in to comment.