mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 19:42:27 +08:00
refactor(payment_methods): List the Payment Methods for Merchant , based on the connector type (#4909)
Co-authored-by: Narayan Bhat <48803246+Narayanbhat166@users.noreply.github.com>
This commit is contained in:
@ -123,7 +123,10 @@ pub fn filter_mca_based_on_business_profile(
|
||||
if let Some(profile_id) = profile_id {
|
||||
merchant_connector_accounts
|
||||
.into_iter()
|
||||
.filter(|mca| mca.profile_id.as_ref() == Some(&profile_id))
|
||||
.filter(|mca| {
|
||||
mca.profile_id.as_ref() == Some(&profile_id)
|
||||
&& mca.connector_type == ConnectorType::PaymentProcessor
|
||||
})
|
||||
.collect::<Vec<_>>()
|
||||
} else {
|
||||
merchant_connector_accounts
|
||||
|
||||
Reference in New Issue
Block a user