mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 21:37:41 +08:00
fix(router): add validation for all the connector auth type (#1748)
This commit is contained in:
@ -81,6 +81,14 @@ impl ConnectorCommon for Trustpay {
|
||||
"application/x-www-form-urlencoded"
|
||||
}
|
||||
|
||||
fn validate_auth_type(
|
||||
&self,
|
||||
val: &types::ConnectorAuthType,
|
||||
) -> Result<(), error_stack::Report<errors::ConnectorError>> {
|
||||
trustpay::TrustpayAuthType::try_from(val)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn base_url<'a>(&self, connectors: &'a settings::Connectors) -> &'a str {
|
||||
connectors.trustpay.base_url.as_ref()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user