Respect disabled payments in launch validation
This commit is contained in:
@@ -19,6 +19,7 @@ from mandelstudio.idea_marketplace import (
|
||||
from mandelstudio.launch_validation import (
|
||||
get_checkout_apps,
|
||||
get_declared_payment_apps,
|
||||
idea_marketplace_payments_enabled,
|
||||
validate_payment_provider_config,
|
||||
)
|
||||
|
||||
@@ -39,6 +40,7 @@ class Command(BaseCommand):
|
||||
validate_payment_provider_config()
|
||||
|
||||
installed_apps = list(settings.INSTALLED_APPS)
|
||||
payments_enabled = idea_marketplace_payments_enabled()
|
||||
payment_apps = get_declared_payment_apps(installed_apps)
|
||||
checkout_apps = get_checkout_apps()
|
||||
config_path = Path(__file__).resolve().parents[2] / "ocyan.json"
|
||||
@@ -195,6 +197,6 @@ class Command(BaseCommand):
|
||||
self.style.SUCCESS(
|
||||
"Idea marketplace launch validation passed: "
|
||||
f"{len(found_titles)} products, EUR currency, checkout apps={checkout_apps}, "
|
||||
f"payment apps={payment_apps}."
|
||||
f"payment apps={payment_apps}, payments_enabled={payments_enabled}."
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user