only pass the invoicejson not the whole thing
This commit is contained in:
parent
fe3e2b3d0a
commit
ec120bca39
|
@ -580,7 +580,7 @@ class CoinifyCallbackView(SingleObjectMixin, View):
|
||||||
return HttpResponseBadRequest('something is fucky')
|
return HttpResponseBadRequest('something is fucky')
|
||||||
|
|
||||||
if callbackobject.payload['event'] == 'invoice_state_change' or callbackobject.payload['event'] == 'invoice_manual_resend':
|
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')
|
return HttpResponse('OK')
|
||||||
else:
|
else:
|
||||||
logger.error("unsupported callback event %s" % callbackobject.payload['event'])
|
logger.error("unsupported callback event %s" % callbackobject.payload['event'])
|
||||||
|
|
Loading…
Reference in a new issue