Skip to content

Commit

Permalink
fix(connector): [Checkout] Change error handling condition for empty …
Browse files Browse the repository at this point in the history
…response (#1168)
  • Loading branch information
SamraatBansal authored May 16, 2023
1 parent e044c2f commit e3fcfdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/router/src/connector/checkout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e3fcfdd

Please sign in to comment.