mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-12 03:14:12 +08:00
fix: [mollie] locale validation irrespective of auth type (#2814)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@@ -292,6 +292,18 @@ pub trait PaymentsAuthorizeRequestData {
|
||||
fn get_ip_address_as_optional(&self) -> Option<Secret<String, IpAddress>>;
|
||||
}
|
||||
|
||||
pub trait PaymentMethodTokenizationRequestData {
|
||||
fn get_browser_info(&self) -> Result<types::BrowserInformation, Error>;
|
||||
}
|
||||
|
||||
impl PaymentMethodTokenizationRequestData for types::PaymentMethodTokenizationData {
|
||||
fn get_browser_info(&self) -> Result<types::BrowserInformation, Error> {
|
||||
self.browser_info
|
||||
.clone()
|
||||
.ok_or_else(missing_field_err("browser_info"))
|
||||
}
|
||||
}
|
||||
|
||||
impl PaymentsAuthorizeRequestData for types::PaymentsAuthorizeData {
|
||||
fn is_auto_capture(&self) -> Result<bool, Error> {
|
||||
match self.capture_method {
|
||||
|
||||
Reference in New Issue
Block a user