Hi! If the customer uses PayPal and is not redirected back to the page after making the payment, you may need to modify your PayPal settings to ensure that the customer is redirected back to your site after completing the payment.
“If they use PayPal, sometimes it doesn’t send them back to the page to finish running the code.”
So you have already the code right?