Make sure order receipt is only sent once order updating has finished (so that sent data is correct).
Fixes: #238