You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed for the card to retrieve the token, you must click off the card component (i.e. another field) and only then the call is made to stripe to get the token.
Is there a way you can do this so it does it on key-up? As this should be seamless to the users.
Or on the submit button can I make my own call to get the token rather than waiting for the card to do it?
The text was updated successfully, but these errors were encountered:
This was really useful, thanks @DLO33. Unfortunately, I had an issue with the ref not being populated at time of mounting, but I was able to find a better way to do this is to using the focus and input events.
The focus event can only fire when the element has loaded, which means the ref will be populated. When this happens, we set a watch. Just be sure to only set one watch!
I've noticed for the card to retrieve the token, you must click off the card component (i.e. another field) and only then the call is made to stripe to get the token.
Is there a way you can do this so it does it on key-up? As this should be seamless to the users.
Or on the submit button can I make my own call to get the token rather than waiting for the card to do it?
The text was updated successfully, but these errors were encountered: