mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-04 05:59:48 +08:00
feat(connector): [Stripe] implement Multibanco Bank Transfer for stripe (#1420)
Co-authored-by: Jagan <jaganelavarasan@gmail.com> Co-authored-by: Arjun Karthik <m.arjunkarthik@gmail.com>
This commit is contained in:
@ -171,6 +171,8 @@ impl<Flow, Request, Response> RouterData for types::RouterData<Flow, Request, Re
|
||||
pub trait PaymentsPreProcessingData {
|
||||
fn get_email(&self) -> Result<Email, Error>;
|
||||
fn get_payment_method_type(&self) -> Result<storage_models::enums::PaymentMethodType, Error>;
|
||||
fn get_currency(&self) -> Result<storage_models::enums::Currency, Error>;
|
||||
fn get_amount(&self) -> Result<i64, Error>;
|
||||
}
|
||||
|
||||
impl PaymentsPreProcessingData for types::PaymentsPreProcessingData {
|
||||
@ -182,6 +184,12 @@ impl PaymentsPreProcessingData for types::PaymentsPreProcessingData {
|
||||
.to_owned()
|
||||
.ok_or_else(missing_field_err("payment_method_type"))
|
||||
}
|
||||
fn get_currency(&self) -> Result<storage_models::enums::Currency, Error> {
|
||||
self.currency.ok_or_else(missing_field_err("currency"))
|
||||
}
|
||||
fn get_amount(&self) -> Result<i64, Error> {
|
||||
self.amount.ok_or_else(missing_field_err("amount"))
|
||||
}
|
||||
}
|
||||
|
||||
pub trait PaymentsAuthorizeRequestData {
|
||||
|
||||
Reference in New Issue
Block a user