mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 17:47:54 +08:00
refactor(payment_methods): refactor merchant payment method list for wallets (#7866)
This commit is contained in:
@ -1922,7 +1922,10 @@ pub enum PaymentMethodType {
|
||||
|
||||
impl PaymentMethodType {
|
||||
pub fn should_check_for_customer_saved_payment_method_type(self) -> bool {
|
||||
matches!(self, Self::ApplePay | Self::GooglePay | Self::SamsungPay)
|
||||
matches!(
|
||||
self,
|
||||
Self::ApplePay | Self::GooglePay | Self::SamsungPay | Self::Paypal | Self::Klarna
|
||||
)
|
||||
}
|
||||
pub fn to_display_name(&self) -> String {
|
||||
let display_name = match self {
|
||||
|
||||
Reference in New Issue
Block a user