'Set the status of payment requests to success or failure.
Accepts one POST param "status" that can be either "success"
or "failure".'

def put(self, request):

    new_status = request.body
    if (new_status not in ['success', 'failure', 'decline']):
        return HttpResponseBadRequest()
    else:
        PaymentFakeView.PAYMENT_STATUS_RESPONSE = new_status
        return HttpResponse()
