react-authorize-net icon indicating copy to clipboard operation
react-authorize-net copied to clipboard

Custom Payment Form submission trigger.

Open annshress opened this issue 5 years ago • 1 comments

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?

annshress avatar Aug 30 '19 14:08 annshress

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!

j-em avatar Aug 30 '19 18:08 j-em