DEV Community

loading...

Discussion on: How to collect payments with PayPal in your React application

Collapse
jai_type profile image
Jai Sandhu

I'm getting this in Next Js, Uncaught DOMException: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded. I think it might only work with regular React

Collapse
debosthefirst profile image
Adebola Author

This example was written with NextJS so it should work. Have you tried using the example code in the Git repo I provided? Also make sure you're using the react-paypal version I specified in this example.

Collapse
jai_type profile image
Jai Sandhu

Awesome, downgrading it worked. Thanks!!