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): [Checkout] Change error handling condition for empty response (#1168)
SamraatBansale3fcfdd3377d
diff --git a/crates/router/src/connector/checkout.rs b/crates/router/src/connector/checkout.rsindex 8fab1be96e..a3eae55705 100644--- a/crates/router/src/connector/checkout.rs+++ b/crates/router/src/connector/checkout.rs@@ -80,7 +80,7 @@ impl ConnectorCommon for Checkout {let response: checkout::ErrorResponse = if res.response.is_empty() {checkout::ErrorResponse {request_id: None,- error_type: if res.status_code == 401 | 422 {+ error_type: if res.status_code == 401 || res.status_code == 422 {Some("Invalid Api Key".to_owned())} else {None