feat(connector): [Checkout] add GooglePay, ApplePay and Webhooks support (#875)

Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
SamraatBansal
2023-04-21 02:50:49 +05:30
committed by GitHub
parent 304081cbad
commit 3fce140703
8 changed files with 1002 additions and 534 deletions

View File

@ -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 {