Skip to content

Commit 550377a

Browse files
feat(connector): [Tsys] Use connector_response_reference_id as reference to the connector (#2546)
Co-authored-by: chikke srujan <[email protected]>
1 parent b5b3625 commit 550377a

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

crates/router/src/connector/tsys/transformers.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,14 @@ fn get_error_response(
192192

193193
fn get_payments_response(connector_response: TsysResponse) -> types::PaymentsResponseData {
194194
types::PaymentsResponseData::TransactionResponse {
195-
resource_id: types::ResponseId::ConnectorTransactionId(connector_response.transaction_id),
195+
resource_id: types::ResponseId::ConnectorTransactionId(
196+
connector_response.transaction_id.clone(),
197+
),
196198
redirection_data: None,
197199
mandate_reference: None,
198200
connector_metadata: None,
199201
network_txn_id: None,
200-
connector_response_reference_id: None,
202+
connector_response_reference_id: Some(connector_response.transaction_id),
201203
}
202204
}
203205

@@ -215,7 +217,12 @@ fn get_payments_sync_response(
215217
mandate_reference: None,
216218
connector_metadata: None,
217219
network_txn_id: None,
218-
connector_response_reference_id: None,
220+
connector_response_reference_id: Some(
221+
connector_response
222+
.transaction_details
223+
.transaction_id
224+
.clone(),
225+
),
219226
}
220227
}
221228

0 commit comments

Comments
 (0)