Пример #1
0
        internal static PaymentResponseParameters FromNameValueCollection(NameValueCollection coll)
        {
            var  res = new PaymentResponseParameters();
            Type t   = res.GetType();

            foreach (string name in coll.AllKeys)
            {
                PropertyInfo prop = t.GetProperty(name,
                                                  BindingFlags.GetProperty | BindingFlags.Public | BindingFlags.Instance |
                                                  BindingFlags.IgnoreCase);
                if (prop != null)
                {
                    prop.SetValue(res, coll.Get(name), null);
                }
            }
            return(res);
        }
Пример #2
0
 private void Callback(PaymentResponseParameters response)
 {
 }
Пример #3
0
        private void Callback(NameValueCollection data)
        {
            PaymentResponseParameters response = PaymentResponseParameters.FromNameValueCollection(data);

            Callback(response);
        }