From ec120bca399af24182d2664355e1d7f3bbe9c895 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Tue, 11 Jul 2017 07:16:51 +0200 Subject: [PATCH] only pass the invoicejson not the whole thing --- src/shop/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shop/views.py b/src/shop/views.py index 713da09b..43d3d92b 100644 --- a/src/shop/views.py +++ b/src/shop/views.py @@ -580,7 +580,7 @@ class CoinifyCallbackView(SingleObjectMixin, View): return HttpResponseBadRequest('something is fucky') if callbackobject.payload['event'] == 'invoice_state_change' or callbackobject.payload['event'] == 'invoice_manual_resend': - coinifyinvoice = process_coinify_invoice_json(callbackobject.payload, self.get_object()) + coinifyinvoice = process_coinify_invoice_json(callbackobject.payload['data'], self.get_object()) return HttpResponse('OK') else: logger.error("unsupported callback event %s" % callbackobject.payload['event'])