Skip to content

Commit

Permalink
feat(Braintree): Sync with Hyperswitch Reference
Browse files Browse the repository at this point in the history
  • Loading branch information
unpervertedkid committed Dec 2, 2023
1 parent ec15ddd commit be5c908
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 connector_id = types::ResponseId::ConnectorTransactionId(item.response.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: connector_id,
redirection_data: None,
mandate_reference: None,
connector_metadata: None,
network_txn_id: None,
connector_response_reference_id: None,
connector_response_reference_id: Some(item.response.id),
incremental_authorization_allowed: None,
}),
..item.data
Expand Down

0 comments on commit be5c908

Please sign in to comment.