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,
|
callback=callback,
|
||||||
txnid=query.get('txnid'),
|
txnid=query.get('txnid'),
|
||||||
)
|
)
|
||||||
### and mark order as paid
|
### and mark order as paid (this will create tickets)
|
||||||
order.paid=True
|
order.mark_as_paid()
|
||||||
order.save()
|
|
||||||
else:
|
else:
|
||||||
print "valid epay callback with wrong amount detected"
|
print "valid epay callback with wrong amount detected"
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue