- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
def is_regular_pay(self, order):
return order.account is None
def is_card_binding(self, order):
return order.account != None
...
if self.is_regular_pay(order):
...
return HttpResponse("OK", status=200)
elif self.is_card_binding(order):
...
start_cancel_request(order)
else:
get_logger().warn("Unknown successefull operation")
order.save()
guest8 09.12.2018 15:32 # −999
MAPTbIwKA 16.10.2019 15:39 # +90
rss 16.10.2019 15:40 # −102