cancel
Showing results for 
Search instead for 
Did you mean: 

[js sdk]How to close the PayPal popup opened by click paypal button

Options
ethan59
Contributor
Posted on

I rendered a paypal standard button in a spa page. it opened a popup when I click the button. I want to close the popup in some case such as user click the router back button in a spa page. How do I code it?  I have tried button.close, but it did not work

ethan59_0-1669521013907.png

 By the way, it does not open paypal popup but outlined the button if I click it immediately when the button rendered

ethan59_1-1669521292125.png

 

 

Haven't Found your Answer?

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