Move payment method display logic to helper

So we don't need to convert strings into classes to then only convert it
into the same string again.
This commit is contained in:
Maikel Linke
2026-01-13 14:16:38 +11:00
parent ac1dd74e23
commit 283d13eb35
4 changed files with 17 additions and 3 deletions

View File

@@ -138,7 +138,7 @@ module Spree
providers.delete("Spree::Gateway::StripeSCA") unless show_stripe?
providers.map(&:constantize)
providers
end
# Show Stripe as an option if enabled, or if the