What will PayPal do if there is a duplicate transaction, or will this change in the code simply prevent that from ever happening in the first place?
What does appear to be happening, when a problem has occurred, is that when the user attempts to submit the order again, it hasn’t carried over the ItemName or ItemDescription, or sometimes those are muddled. On quite a few occasions, also, PayPal takes two payments so even though it reports an error, they still process the payment. The customer is returned to the website on the first fail, so as far as they can see, unless they check their email and see the receipt from PayPal, they have still to pay because the order shows as payment outstanding because PayPal doesn’t arrive at the page that updates the order status ID.
Appreciate the help Ray, thank you.
NJ