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 ononSubmit keyed by mode. Manual-mode payloads carry encrypted account credentials; fast-signin (Plaid) payloads carry a linked-account token.
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)