Enable testers to activate StripeConnect

This will make it easier to test the removal of StripeConnect.
This commit is contained in:
Maikel Linke
2021-12-02 09:50:03 +11:00
parent 470fc92825
commit 6d1e984af7

View File

@@ -133,7 +133,8 @@ module Spree
end
# This method is deprecated and will be removed soon:
unless @payment_method&.type == "Spree::Gateway::StripeConnect"
unless @payment_method&.type == "Spree::Gateway::StripeConnect" ||
OpenFoodNetwork::FeatureToggle.enabled?("StripeConnect")
providers.reject! { |provider| provider.name.ends_with?("StripeConnect") }
end