react-authorize-net
react-authorize-net copied to clipboard
Custom Payment Form submission trigger.
Can we remove the default FormComponent button, and trigger the card submission ourselves?
In our case, Payment
form is a part of another form, and Pay button is triggering the form submission. Or do I need to create a custom payment form for this?
Hello!
The initial idea was that if you need custom behavior like this, you can trigger the submission by passing a custom view to FormContainer
and call the handleSubmit
handler yourself wherever you want.
With that being said, I'm totally open to suggestions (or PRs) that would help with a use case like yours.
Thanks!