mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
FEAT: Add Support for Amazon Pay Redirect and Amazon Pay payment via Stripe (#7056)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
ce2485c3c7
commit
b54a3f9142
@ -71,6 +71,7 @@ pub enum PayLaterType {
|
||||
#[strum(serialize_all = "snake_case")]
|
||||
pub enum WalletType {
|
||||
GooglePay,
|
||||
AmazonPay,
|
||||
ApplePay,
|
||||
Paypal,
|
||||
AliPay,
|
||||
|
||||
@ -38,6 +38,7 @@ impl From<enums::WalletType> for global_enums::PaymentMethodType {
|
||||
fn from(value: enums::WalletType) -> Self {
|
||||
match value {
|
||||
enums::WalletType::GooglePay => Self::GooglePay,
|
||||
enums::WalletType::AmazonPay => Self::AmazonPay,
|
||||
enums::WalletType::ApplePay => Self::ApplePay,
|
||||
enums::WalletType::Paypal => Self::Paypal,
|
||||
enums::WalletType::AliPay => Self::AliPay,
|
||||
|
||||
@ -19,6 +19,7 @@ impl IntoDirValue for (global_enums::PaymentMethodType, global_enums::PaymentMet
|
||||
global_enums::PaymentMethodType::AfterpayClearpay => {
|
||||
Ok(dirval!(PayLaterType = AfterpayClearpay))
|
||||
}
|
||||
global_enums::PaymentMethodType::AmazonPay => Ok(dirval!(WalletType = AmazonPay)),
|
||||
global_enums::PaymentMethodType::GooglePay => Ok(dirval!(WalletType = GooglePay)),
|
||||
global_enums::PaymentMethodType::ApplePay => Ok(dirval!(WalletType = ApplePay)),
|
||||
global_enums::PaymentMethodType::Paypal => Ok(dirval!(WalletType = Paypal)),
|
||||
|
||||
Reference in New Issue
Block a user