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

[BUG] #45

Open pika-3kw opened 4 years ago

pika-3kw commented 4 years ago

To Do First

Software Package Version: 2.6.1

Describe the bug When add options props Error: Paypal SDK could not be loaded.

To Reproduce <PayPalButton ...
options={{ vault: true }} ... /> Desktop (please complete the following information):

talesdsp commented 4 years ago

i was given this error too, but for using wrong clientId. This solved: https://github.com/Luehang/react-paypal-button-v2/issues/49#issuecomment-578817324

elmarquis commented 4 years ago

For anyone else getting this error, to diagnose it, look in your dev tools network tab for the paypal JS url that gets loaded. Copy paste that link into a new browser tab and Paypal will output some more details.