PayPal Checkout

Handle Errors

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

paypal.Buttons({
  onError: function (err) {
    // Show an error page here, when an error occurs
  }
}).render('#paypal-button-container');

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.

Feedback