mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Switch filter to StripeSCA, this must have been an error, must be tested (manually or automatically)
This commit is contained in:
@@ -5,12 +5,12 @@ module OpenFoodNetwork
|
||||
def filter!(payment_methods)
|
||||
if stripe_enabled?
|
||||
payment_methods.to_a.reject! do |payment_method|
|
||||
payment_method.type.ends_with?("StripeConnect") &&
|
||||
payment_method.type.ends_with?("StripeSCA") &&
|
||||
stripe_configuration_incomplete?(payment_method)
|
||||
end
|
||||
else
|
||||
payment_methods.to_a.reject! do |payment_method|
|
||||
payment_method.type.ends_with?("StripeConnect")
|
||||
payment_method.type.ends_with?("StripeSCA")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user