From 91f60d32aa71977f3609270cac1f8f8a8cfc4b37 Mon Sep 17 00:00:00 2001 From: ParthipPR Date: Mon, 24 Jun 2024 20:16:50 +0530 Subject: [PATCH] "fix: key error at /api/v1/donate/verify/" --- api/donate/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/donate/views.py b/api/donate/views.py index ef32bd7c..9e790564 100644 --- a/api/donate/views.py +++ b/api/donate/views.py @@ -104,7 +104,7 @@ def post(self, request): ) transaction_details = { "Amount": float(data['amount']) / 100, - "Currency": data['currency', None], + "Currency": data.get('currency', None), "Name": data['notes']['name'], "Email": data['notes']['email'], }