cancel
Showing results for 
Search instead for 
Did you mean: 

Who Me Too'd this topic

How to destroy Payal Smart Button

erikpham
Contributor
Contributor

Hello,

 

I am integrating PayPal SmartButton into our site using SPA.

In the Checkout Page, I create a PayPal button. However, Users can go back to the homepage from here, so the PayPal Smart button's DOM will be lost and SDK will fire "Window closed" exception.

I tried to find in your documents but found no way to destroy created Smart Button.

So is there any way to remove Smart Button without having exceptions?

Login to Me Too
Who Me Too'd this topic