mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 13:30:39 +08:00
feat(connector): [Paypal] Add payout flow for wallet(Paypal and Venmo) (#4406)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -89,6 +89,7 @@ pub enum WalletType {
|
||||
TouchNGo,
|
||||
Swish,
|
||||
Cashapp,
|
||||
Venmo,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
|
||||
@ -56,6 +56,7 @@ impl From<enums::WalletType> for global_enums::PaymentMethodType {
|
||||
enums::WalletType::TouchNGo => Self::TouchNGo,
|
||||
enums::WalletType::Swish => Self::Swish,
|
||||
enums::WalletType::Cashapp => Self::Cashapp,
|
||||
enums::WalletType::Venmo => Self::Venmo,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -167,6 +167,7 @@ impl IntoDirValue for (global_enums::PaymentMethodType, global_enums::PaymentMet
|
||||
global_enums::PaymentMethodType::CardRedirect => {
|
||||
Ok(dirval!(CardRedirectType = CardRedirect))
|
||||
}
|
||||
global_enums::PaymentMethodType::Venmo => Ok(dirval!(WalletType = Venmo)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user