title: woocommerce_payment_complete hook, how to cancel order and return an error to checkout form
body: <p>I'm sending data from the checkout form to an external API, using the woocommerce_payment_complete hook.</p>
  <p>I would like to cancel the checkout process if the API returns an error. And return the user to the checkout form with an error message displayed.</p>