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:
@@ -136,6 +136,7 @@ class BasketsView(APIView):
|
||||
return InternalRequestErrorResponse(ex.message)
|
||||
|
||||
|
||||
@csrf_exempt
|
||||
@cache_page(1800)
|
||||
def checkout_cancel(_request):
|
||||
""" Checkout/payment cancellation view. """
|
||||
|
||||
Reference in New Issue
Block a user