WixPay Paypal Returns Pending on modal click out

Hello all!

Seeing some weird behavior with the WixPay frontend library, specifically when connecting to PayPal. What’s happening is that when I select PayPal as my payment method, I get redirected to a 2nd modal window for PayPal authentication. If I click outside of that modal, both the PayPal window and the WixPay windows close, and the “wixPay.startPayment” method returns a payment result of “pending”. In any other scenario (i.e regular credit card), when I click outside of the payment modal, the method returns a response of “cancelled”, which is what I would expect.

Any ideas on how to handle this? It’s not a major issue, but does cause confusion, because our frontend handles a status of pending much differently than a status of cancelled in terms of how we redirect and notify.

Hello, if you believe this issue is due to some code that you. have written then please share the code here so anyone passing through can try to help…

If you believe you are experiencing a bug, please take a look at this post which will show you how to report bugs

Reporting Bugs

Hi Amanda,

Thanks for the feedback. I’ve submitted a bug report to Velo Feedback in the editor. I’m not 100% sure it’s an actual bug or intended behavior that I need to account for. How can I track if there is any movement on the submission?

@admin30811 Hello! Looking into this but likely won’t be able to respond until tomorrow. Will follow up

Hello again, I have received word that your bug was reproducible by QA and that you have been contacted. Let me know if you need anything else.