Hey @russian-dima , I am trying to run code that saves some info to the database after a customer successfully pays through wixpay pop-up payment. If they use PayPal, sometimes it doesn’t send them back to the page to finish running the code. I’ve thought about triggering a onPaymentUpdate but I need to extract the payment id for the payment and don’t know how. PLEASE HELP!!!
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?
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