Skip to content

Commit

Permalink
Merge pull request #3 from eyra/fix-decline
Browse files Browse the repository at this point in the history
Fixed decline dondation use case
  • Loading branch information
vloothuis authored Dec 20, 2023
2 parents 38cc40b + dfb3549 commit e6b0eef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/framework/processing/py/port/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e6b0eef

Please sign in to comment.