Skip to main content
When validation fails or a submit guard blocks payment, the widget emits an ERROR event before or instead of PAYMENT_ERROR.

Payment submission codes

Examples

Validation failed

Wrong submit method

Missing upsell session

When usePreviousPaymentMethod: true without upsell.initialPaymentSession:

SDK initialization errors

Config and messaging errors use separate SDK ERROR_CODES (e.g. INVALID_CONFIG, COMMUNICATION_ERROR) and are passed to onError — not the ERROR event type above.