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

[QUESTION] How to disabled the button #75

Open cescoferraro opened 4 years ago

cescoferraro commented 4 years ago

Ask your Question First of all, thanks for the library. Is there a disabled prop so I can prevent the user from clicking the button when the my payment form is not fully filled?

Tags

yocmen commented 4 years ago

I think this needs to be implemented on the component Sync validation , with this you can validate forms when the user click on the PayPal button.

etodanik commented 3 years ago

This component doesn't seem to have onInit though, am I correct?