protected virtual void OnErrorOccurred(GatewayErrorEventArgs e)
        {
            EventHandler <GatewayErrorEventArgs> handler = ErrorOccurred;

            if (handler != null)
            {
                handler(this, e);
            }
        }
 protected virtual void OnErrorOccurred(GatewayErrorEventArgs e)
 {
     EventHandler<GatewayErrorEventArgs> handler = ErrorOccurred;
     if (handler != null) handler(this, e);
 }