changes to the processing
This commit is contained in:
+7
-1
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user