mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-30 22:29:32 +00:00
eboutic: change HTTP return code to avoid blaming the bank's service
This commit is contained in:
1 parent
b20df930a2
commit
c2e0ea70e4
2 files changed
+8
-6
No files matched your search
+4
-2
@@ -301,9 +301,11 @@ class EtransactionAutoAnswer(View):
|
||||
i.validate()
|
||||
b.delete()
|
||||
except Exception as e:
|
||||
return HttpResponse("Payment failed with error: " + repr(e), status=400)
|
||||
return HttpResponse(
|
||||
"Basket processing failed with error: " + repr(e), status=500
|
||||
)
|
||||
return HttpResponse()
|
||||
else:
|
||||
return HttpResponse(
|
||||
"Payment failed with error: " + request.GET["Error"], status=400
|
||||
"Payment failed with error: " + request.GET["Error"], status=202
|
||||
)
|
||||
Reference in new issue
Block a user