fake gateway
This commit is contained in:
parent
f0edf10f53
commit
ecda2cf8f3
1 changed files with 1 additions and 1 deletions
|
|
@ -94,13 +94,13 @@ class PaymentConfirmView(UpdateView):
|
||||||
print(request.POST)
|
print(request.POST)
|
||||||
print(args)
|
print(args)
|
||||||
print(kwargs)
|
print(kwargs)
|
||||||
|
self.object = self.get_object()
|
||||||
|
|
||||||
if 'redirect-to-app' in request.POST:
|
if 'redirect-to-app' in request.POST:
|
||||||
response = HttpResponse(status=302)
|
response = HttpResponse(status=302)
|
||||||
response['Location'] = self.object.callback_url
|
response['Location'] = self.object.callback_url
|
||||||
return response
|
return response
|
||||||
|
|
||||||
self.object = self.get_object()
|
|
||||||
tool = self.object.get_gateway_tools()
|
tool = self.object.get_gateway_tools()
|
||||||
tool.confirm_request(request)
|
tool.confirm_request(request)
|
||||||
context = self.get_context_data(object=self.object)
|
context = self.get_context_data(object=self.object)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue