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.
If data passed to Paddle.js prevents Paddle from opening a checkout, a checkout.error event is emitted instead.
front-end_errorTypically means there's a problem with Paddle.js or your integration.api_errorTypically means there's a problem with the Paddle API.checkout.warningTypically means that the data passed to checkout is invalid or incomplete.
errors array.{ "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." } ]}