feat(Braintree): Sync with Hyperswitch Reference (#3037)

Co-authored-by: Prasunna Soppa <70575890+prasunna09@users.noreply.github.com>
This commit is contained in:
Brian Silah
2023-12-06 12:59:39 +03:00
committed by GitHub
parent 47c038300a
commit 8a995cefdf

View File

@ -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