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:
sweta-kumari-sharma
2025-02-05 19:12:35 +05:30
committed by GitHub
parent ce2485c3c7
commit b54a3f9142
49 changed files with 142 additions and 4 deletions

View File

@ -71,6 +71,7 @@ pub enum PayLaterType {
#[strum(serialize_all = "snake_case")]
pub enum WalletType {
GooglePay,
AmazonPay,
ApplePay,
Paypal,
AliPay,

View File

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

View File

@ -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)),