A customer's order processing was not completed although the credit card payment was processed successfully by PayPal. No payment data was received from PayPal or if it was, it didn't get into the database. No order confirmation emails were sent to the customer or store. The customer reported an error message but I don't know which one. Investigating the log files shows that the payment was processed successfully and then it appears the process started all over again, resulting in a 10415 error (transaction refused because of an invalid argument. A successful transaction has already been completed for this token). There were no php errors in the log folder.

I suspect the customer hit the back key or return key either on the PayPal site or after being returned to the store. I have noticed that while on the PayPal site, the cursor is spinning, but after return to the store, the cursor stops spinning, yet the order confirmation number page is not yet displayed. What page is displayed after PayPal returns the customer to the store and before the page with the order number is displayed? Is there any way to keep the cursor spinning until the page with the order number is displayed? What php file and what coding could I add to make this happen? Any hint would be gratefully appreciated. I've already decided to add some text telling the customer to be patient and wait until the order number appears before hitting any key, but I'd like to deal with the cursor as well.

Dave