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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(connector): [AUTHORIZEDOTNET] Populate error reason for failure transactions (#5319)
DEEPANSHU BANSALd8d222a5d53f
diff --git a/crates/router/src/connector/authorizedotnet/transformers.rs b/crates/router/src/connector/authorizedotnet/transformers.rsindex 26d1cacb5c..651054552f 100644--- a/crates/router/src/connector/authorizedotnet/transformers.rs+++ b/crates/router/src/connector/authorizedotnet/transformers.rs@@ -1061,7 +1061,7 @@ impl<F, T>errors.iter().next().map(|error| types::ErrorResponse {code: error.error_code.clone(),message: error.error_text.clone(),- reason: None,+ reason: Some(error.error_text.clone()),status_code: item.http_code,attempt_status: None,connector_transaction_id: Some(transaction_response.transaction_id.clone()),@@ -1158,7 +1158,7 @@ impl<F, T>errors.iter().next().map(|error| types::ErrorResponse {code: error.error_code.clone(),message: error.error_text.clone(),- reason: None,+ reason: Some(error.error_text.clone()),status_code: item.http_code,attempt_status: None,connector_transaction_id: Some(transaction_response.transaction_id.clone()),@@ -1305,7 +1305,7 @@ impl<F> TryFrom<types::RefundsResponseRouterData<F, AuthorizedotnetRefundResponserrors.first().map(|error| types::ErrorResponse {code: error.error_code.clone(),message: error.error_text.clone(),- reason: None,+ reason: Some(error.error_text.clone()),status_code: item.http_code,attempt_status: None,connector_transaction_id: Some(transaction_response.transaction_id.clone()),@@ -1587,7 +1587,7 @@ fn get_err_response(Ok(types::ErrorResponse {code: response_message.code.clone(),message: response_message.text.clone(),- reason: None,+ reason: Some(response_message.text.clone()),status_code,attempt_status: None,connector_transaction_id: None,