feat(connector): [Adyen] Add support for Samsung Pay (#1525)

This commit is contained in:
Sangamesh Kulkarni
2023-06-28 14:34:49 +05:30
committed by GitHub
parent 6bc4188ff9
commit 33309daf5c
6 changed files with 578 additions and 343 deletions

View File

@ -442,6 +442,7 @@ pub enum PaymentMethodType {
PayBright,
Paypal,
Przelewy24,
SamsungPay,
Sepa,
Sofort,
Swish,

View File

@ -845,10 +845,20 @@ pub enum WalletData {
PaypalRedirect(PaypalRedirection),
/// The wallet data for Paypal
PaypalSdk(PayPalWalletData),
/// The wallet data for Samsung Pay
SamsungPay(Box<SamsungPayWalletData>),
/// The wallet data for WeChat Pay Redirection
WeChatPayRedirect(Box<WeChatPayRedirection>),
}
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]
#[serde(rename_all = "snake_case")]
pub struct SamsungPayWalletData {
/// The encrypted payment token from Samsung
#[schema(value_type = String)]
pub token: Secret<String>,
}
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]
#[serde(rename_all = "snake_case")]
pub struct GooglePayWalletData {