Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix: return none instead of err when payment method data is not found for bank debit during listing (#2967)

Chethan Rao5cc829a11f51
diff --git a/crates/router/src/core/payment_methods/cards.rs b/crates/router/src/core/payment_methods/cards.rs
index 85a0ca5f24..044e270a7e 100644
--- a/crates/router/src/core/payment_methods/cards.rs
+++ b/crates/router/src/core/payment_methods/cards.rs
@@ -2459,8 +2459,7 @@ async fn get_bank_account_connector_details(
}))
}
},
- None => Err(errors::ApiErrorResponse::InternalServerError.into())
- .attach_printable("Unable to fetch payment method data"),
+ None => Ok(None),
}
}