Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

feat(connector): [Authorizedotnet] use connector_response_reference_id as reference to merchant (#2497)

jurijsb62638c4230bf
diff --git a/crates/router/src/connector/authorizedotnet/transformers.rs b/crates/router/src/connector/authorizedotnet/transformers.rs
index a2faeddb50..1b7480f78e 100644
--- a/crates/router/src/connector/authorizedotnet/transformers.rs
+++ b/crates/router/src/connector/authorizedotnet/transformers.rs
@@ -540,7 +540,9 @@ impl<F, T>
mandate_reference: None,
connector_metadata: metadata,
network_txn_id: transaction_response.network_trans_id.clone(),
- connector_response_reference_id: None,
+ connector_response_reference_id: Some(
+ transaction_response.transaction_id.clone(),
+ ),
}),
},
..item.data
@@ -604,7 +606,9 @@ impl<F, T>
mandate_reference: None,
connector_metadata: metadata,
network_txn_id: transaction_response.network_trans_id.clone(),
- connector_response_reference_id: None,
+ connector_response_reference_id: Some(
+ transaction_response.transaction_id.clone(),
+ ),
}),
},
..item.data
@@ -887,13 +891,13 @@ impl<F, Req>
Ok(Self {
response: Ok(types::PaymentsResponseData::TransactionResponse {
resource_id: types::ResponseId::ConnectorTransactionId(
- transaction.transaction_id,
+ transaction.transaction_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(transaction.transaction_id.clone()),
}),
status: payment_status,
..item.data