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
274 stars 81 forks source link

[BUG] Paypal SDK does not respect options props. #87

Closed zackkh closed 3 years ago

zackkh commented 3 years ago

i have just downloaded the package:

1 - pass my props in the PayPalButton component: options={{ clientId: '<...>', debug: false, commit:true, }}

2- after inspecting elemet i get this: <script type="text/javascript" src="https://www.paypal.com/sdk/js?client-id=<...>&commit=false&debug=true" data-uid-auto="..."></script>

3- why ?

zackkh commented 3 years ago

I am really sorry, i have used an old Payment.js that i have build and it was adding paypal sdk, my mistake.