I don't mean to thread jack, but I was about to post because I was having the same issue. I added the code you posted and it does empty my cart, but it also goes immediately to the empty cart page without displaying the order receipt. If this will confuse the original issue, I can start a new thread. I just didn't know if it was a simple fix.