refactor(payment_methods): refactor merchant payment method list for wallets (#7866)

This commit is contained in:
Amisha Prabhat
2025-04-28 13:13:36 +05:30
committed by GitHub
parent 8381071c26
commit 48b473dee2
2 changed files with 4 additions and 56 deletions

View File

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