form instance.md

Form Instance

The object returned by Finix.PaymentForm(). Exposes methods for interacting with the rendered payment form.

const form = Finix.PaymentForm(element, environment, application, options);

Manually triggers form submission and tokenization. Use this when you want a custom submit button outside the iframe instead of the auto-rendered button provided by onSubmit.

form.submit(callback)
Parameter Type Required Description
callback function(error, response) Yes Receives the same parameters as onSubmit

Use onUpdate to track validation state and enable or disable your button, then call form.submit() on click.

This pattern lets you keep your submit button in your own DOM with your own styles, while still getting real-time validation feedback from the form.