mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +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
@ -21,6 +21,7 @@ fn get_dir_value_payment_method(
|
||||
from: api_enums::PaymentMethodType,
|
||||
) -> Result<dir::DirValue, KgraphError> {
|
||||
match from {
|
||||
api_enums::PaymentMethodType::AmazonPay => Ok(dirval!(WalletType = AmazonPay)),
|
||||
api_enums::PaymentMethodType::Credit => Ok(dirval!(CardType = Credit)),
|
||||
api_enums::PaymentMethodType::Debit => Ok(dirval!(CardType = Debit)),
|
||||
api_enums::PaymentMethodType::Giropay => Ok(dirval!(BankRedirectType = Giropay)),
|
||||
|
||||
@ -130,6 +130,7 @@ impl IntoDirValue for api_enums::FutureUsage {
|
||||
impl IntoDirValue for (api_enums::PaymentMethodType, api_enums::PaymentMethod) {
|
||||
fn into_dir_value(self) -> Result<dir::DirValue, KgraphError> {
|
||||
match self.0 {
|
||||
api_enums::PaymentMethodType::AmazonPay => Ok(dirval!(WalletType = AmazonPay)),
|
||||
api_enums::PaymentMethodType::Credit => Ok(dirval!(CardType = Credit)),
|
||||
api_enums::PaymentMethodType::Debit => Ok(dirval!(CardType = Debit)),
|
||||
api_enums::PaymentMethodType::Giropay => Ok(dirval!(BankRedirectType = Giropay)),
|
||||
|
||||
Reference in New Issue
Block a user