From 604228470409f7fc2523177ab0465442ba9c1470 Mon Sep 17 00:00:00 2001 From: ndeet Date: Wed, 31 Jul 2024 14:19:23 +0200 Subject: [PATCH] Make sure email is passed, also if used in PoS context. --- payment_btcpay/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payment_btcpay/controllers/main.py b/payment_btcpay/controllers/main.py index 48bf000..974a96f 100644 --- a/payment_btcpay/controllers/main.py +++ b/payment_btcpay/controllers/main.py @@ -62,7 +62,7 @@ class BTCPayController(http.Controller): "redirectURL": redirect_url, "notificationURL": notification_url, "extendedNotifications": True, - "buyer": {"email": data.get('email'), + "buyer": {"email": data.get('email') or 'noemailavailable@example.com', "name": data.get('name'), "address1": data.get('street'), "locality": data.get('city'),