changes to the processing

This commit is contained in:
2026-09-07 22:49:53 +02:00
parent 6ae75e9b84
commit a0fa6bcc7a
2 changed files with 17 additions and 11 deletions
+7 -1
View File
@@ -2442,7 +2442,13 @@ def booking_payment():
packages_str = _sanitize_text(request.values.get("packages") or request.values.get("package") or "", 200).lower()
booking_flow = _sanitize_text(request.values.get("flow") or "payment", 24).lower()
is_trial = booking_flow in {"trial", "testversion"} or request.values.get("testversion", "").strip().lower() in {"1", "on", "true", "yes"}
requested_trial = request.values.get("testversion", "").strip().lower() in {"1", "on", "true", "yes"}
package_requests_trial = "testversion" in {
package.strip().lower()
for package in packages_str.split(",")
if package.strip()
}
is_trial = booking_flow in {"trial", "testversion"} or requested_trial or package_requests_trial
trial_days = int(request.values.get("trial_days") or 14)
if booking_flow not in BOOKING_FLOW_MAP and booking_flow != "trial":