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(connect): [NMI] Use connector_response_reference_id as reference to merchant (#2702)

Tejas Mate683c1b81c5a3
diff --git a/crates/router/src/connector/nmi/transformers.rs b/crates/router/src/connector/nmi/transformers.rs
index 9dce4960f3..f7fc0c0a4f 100644
--- a/crates/router/src/connector/nmi/transformers.rs
+++ b/crates/router/src/connector/nmi/transformers.rs
@@ -719,7 +719,7 @@ impl<T>
Response::Approved => (
Ok(types::PaymentsResponseData::TransactionResponse {
resource_id: types::ResponseId::ConnectorTransactionId(
- item.response.transactionid.to_owned(),
+ item.response.transactionid.clone(),
),
redirection_data: None,
mandate_reference: None,
@@ -775,7 +775,7 @@ impl TryFrom<types::PaymentsResponseRouterData<StandardResponse>>
Response::Approved => (
Ok(types::PaymentsResponseData::TransactionResponse {
resource_id: types::ResponseId::ConnectorTransactionId(
- item.response.transactionid.to_owned(),
+ item.response.transactionid.clone(),
),
redirection_data: None,
mandate_reference: None,
@@ -825,7 +825,7 @@ impl<T>
Response::Approved => (
Ok(types::PaymentsResponseData::TransactionResponse {
resource_id: types::ResponseId::ConnectorTransactionId(
- item.response.transactionid.to_owned(),
+ item.response.transactionid.clone(),
),
redirection_data: None,
mandate_reference: None,