mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
bugfix: check if bank_pm exists and then send (#679)
Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
@ -659,10 +659,12 @@ pub async fn list_payment_methods(
|
||||
})
|
||||
}
|
||||
|
||||
payment_method_responses.push(ResponsePaymentMethodsEnabled {
|
||||
payment_method: api_enums::PaymentMethod::BankRedirect,
|
||||
payment_method_types: bank_payment_method_types,
|
||||
});
|
||||
if !bank_payment_method_types.is_empty() {
|
||||
payment_method_responses.push(ResponsePaymentMethodsEnabled {
|
||||
payment_method: api_enums::PaymentMethod::BankRedirect,
|
||||
payment_method_types: bank_payment_method_types,
|
||||
});
|
||||
}
|
||||
|
||||
response
|
||||
.is_empty()
|
||||
|
||||
Reference in New Issue
Block a user