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