mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
feat(payments): support for card_network filter in payments list (#5994)
This commit is contained in:
@ -939,6 +939,9 @@ impl<T: DatabaseStore> PaymentIntentInterface for crate::RouterStore<T> {
|
||||
None => query,
|
||||
};
|
||||
|
||||
if let Some(card_network) = ¶ms.card_network {
|
||||
query = query.filter(pa_dsl::card_network.eq_any(card_network.clone()));
|
||||
}
|
||||
query
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user