Disabled CSRF Validation for checkout cancel page

CyberSource will POST to this view if the user cancels payment. CSRF validation cannot be enabled when this happens.

ECOM-1689
This commit is contained in:
Clinton Blackburn
2015-06-03 17:14:21 -04:00
parent bfe7527686
commit dbfd77e661

View File

@@ -136,6 +136,7 @@ class BasketsView(APIView):
return InternalRequestErrorResponse(ex.message)
@csrf_exempt
@cache_page(1800)
def checkout_cancel(_request):
""" Checkout/payment cancellation view. """