mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 02:57:02 +08:00
feat(connector): [Checkout] add GooglePay, ApplePay and Webhooks support (#875)
Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
@ -61,6 +61,7 @@ pub trait RouterData {
|
||||
where
|
||||
T: serde::de::DeserializeOwned;
|
||||
fn is_three_ds(&self) -> bool;
|
||||
fn get_payment_method_token(&self) -> Result<String, Error>;
|
||||
}
|
||||
|
||||
impl<Flow, Request, Response> RouterData for types::RouterData<Flow, Request, Response> {
|
||||
@ -139,6 +140,11 @@ impl<Flow, Request, Response> RouterData for types::RouterData<Flow, Request, Re
|
||||
.and_then(|a| a.address.as_ref())
|
||||
.ok_or_else(missing_field_err("shipping.address"))
|
||||
}
|
||||
fn get_payment_method_token(&self) -> Result<String, Error> {
|
||||
self.payment_method_token
|
||||
.clone()
|
||||
.ok_or_else(missing_field_err("payment_method_token"))
|
||||
}
|
||||
}
|
||||
|
||||
pub trait PaymentsAuthorizeRequestData {
|
||||
|
||||
Reference in New Issue
Block a user