Use Order.mark_as_paid() in EpayCallbackView
This commit is contained in:
parent
02edd45b20
commit
d8a1ec132b
|
@ -299,9 +299,8 @@ class EpayCallbackView(SingleObjectMixin, View):
|
|||
callback=callback,
|
||||
txnid=query.get('txnid'),
|
||||
)
|
||||
### and mark order as paid
|
||||
order.paid=True
|
||||
order.save()
|
||||
### and mark order as paid (this will create tickets)
|
||||
order.mark_as_paid()
|
||||
else:
|
||||
print "valid epay callback with wrong amount detected"
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue