mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
Enable testers to activate StripeConnect
This will make it easier to test the removal of StripeConnect.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user