public void DisplayError(ApiError apiError)
 {
     ErrorPanel.Visible = true;
     ErrorCode.Text = apiError.customCode;
     HttpStatus.Text = apiError.httpStatusCode.ToString();
     ErrorDescription.Text = apiError.description;
     ErrorMessage.Text = apiError.message;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 public WorldpayException(ApiError error, string message) : base(message)
 {
     apiError = error;
 }