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

refactor(connector): [AdyenPlatform]Throw 4xx instead of 5xx for source_balance_account (#4990)

Sakil Mostak1c464acc566f
diff --git a/crates/router/src/core/errors/utils.rs b/crates/router/src/core/errors/utils.rs
index 8ec95514f8..d2812447ed 100644
--- a/crates/router/src/core/errors/utils.rs
+++ b/crates/router/src/core/errors/utils.rs
@@ -480,6 +480,11 @@ impl<T> ConnectorErrorExt<T> for error_stack::Result<T, errors::ConnectorError>
message: errors::NotImplementedMessage::Reason(reason.to_string()),
}
}
+ errors::ConnectorError::InvalidConnectorConfig { config } => {
+ errors::ApiErrorResponse::InvalidConnectorConfiguration {
+ config: config.to_string(),
+ }
+ }
_ => errors::ApiErrorResponse::InternalServerError,
};
err.change_context(error)