Yesterday we had an issue where an order had been saved, and sent to PayPal for payment. The payment was successful and PayPal sent back IPN data for verification which was approved. However, in between the payment being made and the IPN data sent from PayPal Satchmo had deleted the order:
[Thu Jun 11 00:41:05 2009] [error] Thu, 11 Jun 2009 00:41:05 satchmo_store.shop.models INFO Deleting incomplete order #9614 from database That mean that when the IPN data came and was verified a few minutes later, the order status could not be updated as it had been deleted, and there is no order now in Satchmo that matches the PayPal payment, so we can't create an invoice from Satchmo. [Thu Jun 11 00:43:25 2009] [error] Thu, 11 Jun 2009 00:43:25 root INFO PayPal IPN data verification was successful. [Thu Jun 11 00:43:25 2009] [error] Thu, 11 Jun 2009 00:43:25 root ERROR Traceback (most recent call last): [Thu Jun 11 00:43:25 2009] [error] File "/home/x/src/satchmo-trunk/ satchmo/apps/payment/modules/paypal/views.py", line 166, in ipn [Thu Jun 11 00:43:25 2009] [error] order = Order.objects.get (pk=invoice) [Thu Jun 11 00:43:25 2009] [error] File "/home/x/webapps/django/lib/ python2.5/django/db/models/manager.py", line 93, in get [Thu Jun 11 00:43:25 2009] [error] return self.get_query_set().get (*args, **kwargs) [Thu Jun 11 00:43:25 2009] [error] File "/home/x/webapps/django/lib/ python2.5/django/db/models/query.py", line 342, in get [Thu Jun 11 00:43:25 2009] [error] % self.model._meta.object_name) [Thu Jun 11 00:43:25 2009] [error] DoesNotExist: Order matching query does not exist. [Thu Jun 11 00:43:25 2009] [error] Traceback (most recent call last): [Thu Jun 11 00:43:25 2009] [error] File "/home/x/src/satchmo-trunk/ satchmo/apps/payment/modules/paypal/views.py", line 166, in ipn [Thu Jun 11 00:43:25 2009] [error] order = Order.objects.get (pk=invoice) [Thu Jun 11 00:43:25 2009] [error] File "/home/x/webapps/django/lib/ python2.5/django/db/models/manager.py", line 93, in get [Thu Jun 11 00:43:25 2009] [error] return self.get_query_set().get (*args, **kwargs) [Thu Jun 11 00:43:25 2009] [error] File "/home/x/webapps/django/lib/ python2.5/django/db/models/query.py", line 342, in get [Thu Jun 11 00:43:25 2009] [error] % self.model._meta.object_name) [Thu Jun 11 00:43:25 2009] [error] DoesNotExist: Order matching query does not exist. Why did Satchmo delete the order? I looked into the code and its a function called by a signal that happens when the shopping cart changes. There are several other 'Deleting incomplete order #xxxx' in our logs. If an order has been sent to PayPal surely it should not be deleted as then there is no reference in Satchmo. Is this a bug, or can I safely remove this function and stop Satchmo deleting orders? Thanks, Arthur --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
