Private
Public Access
1
0

error catching

This commit is contained in:
Sander Roosendaal
2021-02-02 20:42:06 +01:00
parent 9fe3fd8340
commit b7e64f9198
2 changed files with 8 additions and 4 deletions

View File

@@ -6,7 +6,8 @@ from __future__ import unicode_literals
from rowers.views.statements import *
def braintree_webhook_view(request):
braintreestuff.webhook(request)
if request.method == 'POST':
braintreestuff.webhook(request)
return JsonResponse(status=200)
def paidplans_view(request):