mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(connector): [Adyen] Add support for Samsung Pay (#1525)
This commit is contained in:
committed by
GitHub
parent
6bc4188ff9
commit
33309daf5c
@ -442,6 +442,7 @@ pub enum PaymentMethodType {
|
||||
PayBright,
|
||||
Paypal,
|
||||
Przelewy24,
|
||||
SamsungPay,
|
||||
Sepa,
|
||||
Sofort,
|
||||
Swish,
|
||||
|
||||
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user