diff --git a/subscribie/blueprints/admin/__init__.py b/subscribie/blueprints/admin/__init__.py index 0efeffe5..d6197be1 100644 --- a/subscribie/blueprints/admin/__init__.py +++ b/subscribie/blueprints/admin/__init__.py @@ -20,6 +20,7 @@ from subscribie.utils import ( get_stripe_secret_key, get_stripe_connect_account, + stripe_connect_active, create_stripe_connect_account, get_stripe_connect_account_id, modify_stripe_account_capability, @@ -28,7 +29,6 @@ get_stripe_invoices, stripe_livemode, announce_stripe_connect_account, - stripe_testmode, currencyFormat, get_shop_default_country_code, dec2pence, @@ -1925,8 +1925,8 @@ def announce_shop_stripe_connect_ids(): status = 200 msg = None - if stripe_testmode() is False and stripe_livemode() is False: - return jsonify("Stripe is not setup yet.") + if stripe_connect_active() is False: + return jsonify("Stripe connect is not setup yet.") try: stripe_connect_account_id = get_stripe_connect_account_id() diff --git a/subscribie/views.py b/subscribie/views.py index e08aae2a..a732820b 100644 --- a/subscribie/views.py +++ b/subscribie/views.py @@ -151,6 +151,7 @@ def check_if_inside_iframe(): @bp.app_context_processor def inject_template_globals(): from subscribie.settings import settings as internal_settings + company = Company.query.first() integration = Integration.query.first() plans = Plan.query.filter_by(archived=0)