Luehang / react-paypal-button-v2

An easy and simple to use React button component to implement PayPal Checkout with Smart Payment Buttons V2 (Version 2).
https://luehangs.site/lue_hang/projects/react-paypal-button-v2
MIT License
273 stars 81 forks source link

Uncaught Error: zoid destroyed all components #69

Open MAJRint opened 4 years ago

MAJRint commented 4 years ago

zoid destroyed error occurs when second button is added on same page

I get the above error when I add a second paypal button to the same page. I guess it is because the script gets loaded twice but I have no clue how to avoid it.

If anyone has an idea or a solution please share it.

Thanks

juona commented 4 years ago

Duplicate of https://github.com/Luehang/react-paypal-button-v2/issues/30

willkuerlich commented 3 years ago

I get this also, even with only 1 PayPal button rendered. My paypal script is loaded and available in the window object.

Jhon-Idrovo commented 3 years ago

I have the same issue with one button on a React implementation