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'], }