diff --git a/crates/router/src/connector/braintree/transformers.rs b/crates/router/src/connector/braintree/transformers.rs index 163bf7da5d92..0740529e97c6 100644 --- a/crates/router/src/connector/braintree/transformers.rs +++ b/crates/router/src/connector/braintree/transformers.rs @@ -228,7 +228,7 @@ impl types::PaymentsResponseData, >, ) -> Result { - 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 { @@ -237,7 +237,7 @@ impl 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