Fix payment plugin launch validation

This commit is contained in:
2026-04-10 17:33:04 +02:00
parent 610fd6d748
commit 489c6ce75b
2 changed files with 36 additions and 16 deletions

View File

@@ -17,7 +17,8 @@ from mandelstudio.idea_marketplace import (
SHORT_DESCRIPTION_ATTRIBUTE_CODE,
)
from mandelstudio.launch_validation import (
_is_dummy_payment_app,
get_checkout_apps,
get_declared_payment_apps,
validate_payment_provider_config,
)
@@ -38,11 +39,8 @@ class Command(BaseCommand):
validate_payment_provider_config()
installed_apps = list(settings.INSTALLED_APPS)
if any(_is_dummy_payment_app(app) for app in installed_apps):
raise CommandError(
"Dummy payment app detected in INSTALLED_APPS. Use a real provider plugin before production launch."
)
payment_apps = get_declared_payment_apps(installed_apps)
checkout_apps = get_checkout_apps()
config_path = Path(__file__).resolve().parents[2] / "ocyan.json"
if config_path.exists():
with config_path.open("r", encoding="utf-8") as handle: