From dfb35491ab7085823abad16f373246b4c09d7135 Mon Sep 17 00:00:00 2001 From: emielvdveen Date: Fri, 15 Dec 2023 15:43:57 +0100 Subject: [PATCH] Fixed decline dondation use case --- src/framework/processing/py/port/script.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/framework/processing/py/port/script.py b/src/framework/processing/py/port/script.py index 45607648..c5eeb7c2 100644 --- a/src/framework/processing/py/port/script.py +++ b/src/framework/processing/py/port/script.py @@ -161,7 +161,10 @@ def process(sessionId): if consent_result.__type__ == "PayloadJSON": meta_data.append(("debug", f"donate consent data")) yield donate(f"{sessionId}", consent_result.value) - + if consent_result.__type__ == "PayloadFalse": + value = json.dumps('{"status" : "donation declined"}') + yield donate(f"{sessionId}-{key}", value) + def render_donation_page(body, progress): header = props.PropsUIHeader(