submitButton element is a pure relay. It has no value, no validation, and no internal state. Fires onReady once on mount and onSubmit (with value: undefined) on every click.
Use it to:
- Compose the submit slot inside a Checkout element that mounts custom sub-elements.
- Drive an external
card.submit()/bank.submit()call while keeping the button’s chrome themed with the rest of the SDK.
Factory
Example
Options
submitButton does not accept required, validate, or validateAsync. It has no value to validate.
Events
Focus and blur are wired to the underlying
<button> and fire normally. onEscapeKeyPressed is not emitted (there is no shopper-dismissable input).
Value
onSubmit payload’s value is always undefined. Read data from other elements’ .value getters or onChange snapshots inside your onSubmit handler.
Updating at runtime
update() to toggle disabled based on other elements’ complete state:
Inside Checkout
Checkout renders its own submit control. Use standalonesubmitButton when composing elements outside Checkout, or when you need a themed button for a fully custom layout.