mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
fix(samsung_pay): add payment_method_type duplication check (#7337)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -1651,6 +1651,12 @@ pub enum PaymentMethodType {
|
||||
DirectCarrierBilling,
|
||||
}
|
||||
|
||||
impl PaymentMethodType {
|
||||
pub fn should_check_for_customer_saved_payment_method_type(self) -> bool {
|
||||
matches!(self, Self::ApplePay | Self::GooglePay | Self::SamsungPay)
|
||||
}
|
||||
}
|
||||
|
||||
impl masking::SerializableSecret for PaymentMethodType {}
|
||||
|
||||
/// Indicates the type of payment method. Eg: 'card', 'wallet', etc.
|
||||
|
||||
Reference in New Issue
Block a user