commit 70d12958b8cf2b2edd6625096227716e19b0ca80 parent 1289d8bb108f2632deea0532876a91e3764ec7e2 Author: NicholasFarrow <nicholas.w.farrow@gmail.com> Date: Fri, 15 Jan 2021 02:26:06 +1100 fix invalid dict item bug Diffstat:
M | server.py | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server.py b/server.py @@ -59,14 +59,14 @@ def make_payment(payload): return # Return if label missing - if 'label' not in payload.keys(): + if 'id' not in payload.keys(): return # label = payload['label'] # else: # label = "undefined" # Initialise this payment - payment = create_invoice(amount, "USD", label) + payment = create_invoice(amount, "USD", payload['id']) process_payment(payment)