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, types::PaymentsResponseData,
>, >,
) -> Result<Self, Self::Error> { ) -> Result<Self, Self::Error> {
let id = item.response.transaction.id.clone();
Ok(Self { Ok(Self {
status: enums::AttemptStatus::from(item.response.transaction.status), status: enums::AttemptStatus::from(item.response.transaction.status),
response: Ok(types::PaymentsResponseData::TransactionResponse { response: Ok(types::PaymentsResponseData::TransactionResponse {
resource_id: types::ResponseId::ConnectorTransactionId( resource_id: types::ResponseId::ConnectorTransactionId(id.clone()),
item.response.transaction.id,
),
redirection_data: None, redirection_data: None,
mandate_reference: None, mandate_reference: None,
connector_metadata: None, connector_metadata: None,
network_txn_id: None, network_txn_id: None,
connector_response_reference_id: None, connector_response_reference_id: Some(id),
incremental_authorization_allowed: None, incremental_authorization_allowed: None,
}), }),
..item.data ..item.data