medipass / react-payment-inputs

A React Hook & Container to help with payment card input fields.
https://medipass.github.io/react-payment-inputs
342 stars 62 forks source link

QUESTION: Form Complete? #7

Open agrohs opened 5 years ago

agrohs commented 5 years ago

Is there any standard way to have one onComplete method for the entire form? Looking to replicate the same functionality found in the Stripe Elements API whereby I can listen onChange for the form and then check the form to see if its completed.

checor commented 4 years ago

A workaround I use is onError, when it's undefined, means that the form is complete.