Docs

checkout.warning

Emitted when a warning occurs on a checkout.

Use checkout.warning to run actions when a warning occurs on a checkout. Warnings occur when something is wrong with data passed to Paddle.js, but it doesn't prevent Paddle from opening a checkout.

For example, if you prefill customer details but the details you passed aren't valid, you can use checkout.warning to display a custom error message to the customer or log the warning to your analytics tool.

typestring
Type of error encountered.
Values
  • front-end_error
    Typically means there's a problem with Paddle.js or your integration.
  • api_error
    Typically means there's a problem with the Paddle API.
  • checkout.warning
    Typically means that the data passed to checkout is invalid or incomplete.
codestring
Short snake case string that describes this error.
detailstring
Some information about what went wrong as a human-readable string.
documentation_urlstring
Link to a page in the error reference for this specific error.
errorsarray
List of errors.
fieldstring
Field where validation error occurred.
messagestring
Information about how the field failed validation.
Example
{
"type": "checkout.warning",
"code": "checkout_creation_invalid_field",
"detail": "Invalid values for fields in request",
"documentation_url": "https://developer.paddle.com/errors/shared/invalid_field",
"errors": [
{
"field": "/data/customer",
"message": "Either id or email is required when customer is present."
}
]
}

Was this page helpful?