private void Initialize(NameValueCollection nvc)
{
List<string> items = new List<string>();
try
{
if (nvc.HasKeys())
{
foreach (string key in nvc.Keys)
{
items.Add(string.Concat(key, "=", System.Web.HttpUtility.UrlEncode(nvc[key], ipnEncoding)));
nvcMap.Add(key, nvc[key]);
}
ipnRequest = string.Join("&", items.ToArray())+"&cmd=_notify-validate";
}
}
catch (System.Exception ex)
{
logger.Error(this.GetType().Name + ": " + ex.Message, ex);
}
}