Paypal subscription button - Popup not closing and onApprove not triggered

seedjgs
Contributor
Contributor

I have implemented Paypal subscriptions using this approach and the buttons from this example https://paypal.github.io/react-paypal-js/?path=/docs/example-subscriptions--default.

 

Everything was working fine until today, as we noticed following bug.

onApprove never gets triggered and also popup window never gets closed, even though the payment is successful.

This happens in both the sandbox and production environments I have and also in your storybook example.

 

😕 Current Behavior

Paypal popup stays opened and it needs to be closed manually, after the payment is completed.
OnApprove is not triggered.

 

🤔 Expected Behavior

The Paypal popup closes after the payment is completed
OnApprove is triggered.

 

Please give us a feedback on it.

Login to Me Too
2 REPLIES 2

HTMangaka
New Community Member

YES! I am having the exact same issue. Never had it before just recently. Seems to have something to do with the new message that displays after a user subscribes. I could use a solution to this. O_O

 

EDIT: Ah, nevermind! It seems paypal figured out this was happening and fixed it! ^^

Login to Me Too

seedjgs
Contributor
Contributor

This is happening again to me, randomly. Is this happening also to you?

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.