kit.checkout.submitFields()customFields, and best-effort mirrors them onto the underlying Stripe PaymentIntent or Subscription's metadata.| Field | Type | Description |
|---|---|---|
checkoutId | string | The session returned by create(). |
submitted | Record<string,string> | Keyed by each field's key, as defined in customFields. |
submitted:| Exception | When |
|---|---|
NotFoundError | The checkout session was not found. |
ValidationError | The session is no longer 'open' (already completed); or one or more fields fail validation, in which case error.fieldErrors is an array keyed by field key with a human-readable message per field, for example { company_name: 'Company name is required.' }. |
pattern, are collected into a single ValidationError, so you can show every problem to the customer at once instead of one at a time.field_<key>, wrapped in its own try/catch so a metadata write failure never blocks the checkout itself.