Use Order.mark_as_paid() in EpayCallbackView

This commit is contained in:
Víðir Valberg Guðmundsson 2016-05-30 18:05:35 +02:00
parent 02edd45b20
commit d8a1ec132b

View file

@ -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: