mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-07 23:48:49 +08:00
feat(connector): [Adyen] add PMD validation in validate_capture_method method for all the implemented PM’s (#3584)
This commit is contained in:
@ -50,6 +50,24 @@ macro_rules! impl_error_display {
|
||||
};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! capture_method_not_supported {
|
||||
($connector:expr, $capture_method:expr) => {
|
||||
Err(errors::ConnectorError::NotSupported {
|
||||
message: format!("{} for selected payment method", $capture_method),
|
||||
connector: $connector,
|
||||
}
|
||||
.into())
|
||||
};
|
||||
($connector:expr, $capture_method:expr, $payment_method_type:expr) => {
|
||||
Err(errors::ConnectorError::NotSupported {
|
||||
message: format!("{} for {}", $capture_method, $payment_method_type),
|
||||
connector: $connector,
|
||||
}
|
||||
.into())
|
||||
};
|
||||
}
|
||||
|
||||
macro_rules! impl_error_type {
|
||||
($name: ident, $arg: tt) => {
|
||||
#[derive(Debug)]
|
||||
|
||||
Reference in New Issue
Block a user