Handle Errors

If an error prevents buyer checkout, show an error page using the onError callback:

  onError: function (err) {
    // Show an error page here, when an error occurs

Note: This error handler is a catch-all. Errors at this point are not expected to be handled beyond showing a generic error message or page.