Switch filter to StripeSCA, this must have been an error, must be tested (manually or automatically)

This commit is contained in:
Luis Ramos
2021-07-24 22:50:46 +01:00
committed by Maikel Linke
parent e036e9b979
commit 6c281e288c

View File

@@ -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