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_request_reference_id as reference to the connector (#2593)

Amit Roy3d7c6b004d5f
diff --git a/crates/router/src/connector/authorizedotnet/transformers.rs b/crates/router/src/connector/authorizedotnet/transformers.rs
index 20d78729a1..561723be46 100644
--- a/crates/router/src/connector/authorizedotnet/transformers.rs
+++ b/crates/router/src/connector/authorizedotnet/transformers.rs
@@ -261,6 +261,7 @@ struct TransactionVoidOrCaptureRequest {
pub struct AuthorizedotnetPaymentsRequest {
merchant_authentication: AuthorizedotnetAuthType,
transaction_request: TransactionRequest,
+ ref_id: String,
}
#[derive(Debug, Serialize)]
@@ -332,6 +333,7 @@ impl TryFrom<&AuthorizedotnetRouterData<&types::PaymentsAuthorizeRouterData>>
create_transaction_request: AuthorizedotnetPaymentsRequest {
merchant_authentication,
transaction_request,
+ ref_id: item.router_data.connector_request_reference_id.clone(),
},
})
}