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
{{ message }}
This repository was archived by the owner on Aug 24, 2022. It is now read-only.
I am attempting to solve a use case that seems relatively simple, but I can't get it to work within this library. Essentially, we have some users and they may have a payment method on file already. If that's the case we wish to give them the ability to change the card they charge. Setting the card, however, is just one piece of information we need.
I would like to await the card nonce on form submission and then complete submission.
The solution I came up with is to start submission by calling onCreateNonce and then complete the form submission process in a useEffect hook, but I'm curious if there's a better approach.
Is it possible to access onCreateNonce without wrapping the unrelated component branches in SquarePaymentForm?From my understanding, I'm pretty sure the the answer here is no.