react-square-web-payments-sdk
react-square-web-payments-sdk copied to clipboard
onClick doesn't work
Describe the bug
In the old square form, I managed the click behavior myself. The first thing I did was start a pinwheel to let the user know we're doing something. I've tried using onClick in CreditCard, but it never gets called. So far, all of my attempts to hack the ability to waitch the event have failed. Even using onClick as documented, I never see the function called.
Your Example Website or App
Not public
Steps to Reproduce the Bug or Issue
Follow onClick example here: https://react-square-payments.weareseeed.com/docs/card/props In body, add console.info("Clicked"). Now use the credit card form. You'll never see console log.
Expected behavior
I was expecting to see my function called before any square activity is performed. Instead, I see nothing. So clients now click the pay button and nothing happens until square responds, which can be long enough that users don't understand what's happening.
Screenshots or Videos
No response
Platform
- OS: macOS
- Browser: Firefox
Additional context
No response