Hello all, I am working on integrating new payment module in satchmo. When payment gateway notify shop that payment is succesful I am doing following actions with order and tempCart:
record_payment (from payment.common.utils) order.add_status(status='Pending', notes = "Order successfully submitted") tempCart.empty() for item in order.orderitem_set.all(): product = item.product; product.total_sold += item.quantity; product.items_in_stock -= item.quantity; product.save() del request.session['orderID'] I wander if this actions include everything and in right order or do I miss something? thanks, Bojan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en -~----------~----~----~----~------~----~------~--~---
