feat(payments): support for card_network filter in payments list (#5994)

This commit is contained in:
Riddhiagrawal001
2024-10-14 15:41:56 +05:30
committed by GitHub
parent a7c6f57668
commit 1ac8c92c4b
4 changed files with 13 additions and 0 deletions

View File

@ -939,6 +939,9 @@ impl<T: DatabaseStore> PaymentIntentInterface for crate::RouterStore<T> {
None => query,
};
if let Some(card_network) = &params.card_network {
query = query.filter(pa_dsl::card_network.eq_any(card_network.clone()));
}
query
}
};