Thank you for your reply. We did receive an order notification from PayPal but the order did not appear in our Cart Orders.
I sent a test order today and all worked fine so this was probably a glitch on the PayPal side but I will investigate further.
Thank you for your help.
Thanks, this has fixed the issue for me.
I was about to ask the same question so thanks for this. I have used your code in my style sheet and does the job.