mount() so you cannot miss readiness or initialization failures.
Recommended handlers
Ready and validation
onReady means Checkout initialized and can accept customer input. Use it to remove loading UI; do not treat it as a payment event.
onValidation reports the current hosted card-form state. It is useful when your surrounding page needs to react to whether Checkout can submit or to the detected card brand. Validation does not authorize or confirm payment.
Payment results
Authentication challenges and wallet redirects are handled internally and are not public result states.
paymentMethod, when present, contains a non-sensitive summary. Card summaries can include brand, last four digits, expiry, and cardholder name; Idram summaries identify the wallet provider.
Checkout errors
onCheckoutError is for initialization and loading failures. It receives a LynqError with:
message: display-safe text you may show to the customercode: stable value for programmatic handling and diagnosticsretryable: whether offering another attempt is reasonable
Generic subscriptions
The named methods are the clearest choice for most integrations. The generic API is available for abstractions:off(event) without a handler to remove every listener for that event. destroy() clears all listeners.
See SDK reference for exact event payloads and Errors for handling each error code.