Skip to main content

Factory

Options

All keys are optional. bank does not accept a top-level required or validate. Both modes are implicitly required. See required for the exact behavior.

fields (manual mode)

accountType

When hidden, the validator skips the account-type check. placeholder is not supported on the <select>.

routingNumber, accountNumber, confirmAccountNumber

Each accepts: hidden is not supported on these three fields: they are interdependent and cannot be individually collapsed.

Value

The bank element emits a discriminated union on onSubmit keyed by mode. Manual-mode payloads carry encrypted account credentials; fast-signin (Plaid) payloads carry a linked-account token.
Forward the full envelope to your server verbatim. Do not attempt to unpack the encrypted* fields on the manual branch; they are decrypted server-side by Overflow.

FieldError.field values

'accountType', 'routingNumber', 'accountNumber', 'confirmAccountNumber', 'bank' (synthetic error when the shopper selects bank inside Checkout but never completes fast-signin).

Events

Every element event is supported. See Events overview.

Methods

  • bank.mount(selector)
  • bank.update(partialOptions)
  • bank.submit()
  • bank.unmount()
  • bank.destroy()
  • bank.on(event, handler)
Last modified on July 22, 2026