Update order and payment after logging in.
Add some comments