Trying to add code after successful wix pay (startpayment) but it doesn't work if paypal doesn't send the customer back to the page.

thanks for the answer. I have done that but sometimes if they are using PayPal through Facebook browser it doesn’t send them back no matter what. Is there any solution to this? Can I get the payment id out before the startpayment () is called so that I can save information that I will call on payment update