Esempio n. 1
0
        /// <summary>
        /// adds a new parameter to the parameter list
        /// </summary>
        /// <param name="uiParams"></param>
        public override void AppendItemsTo(Dictionary <string, string> uiParams)
        {
            if (uiParams == null)
            {
                return;
            }

            if (PaymentParams == null)
            {
                return;
            }

            foreach (var param in PaymentParams.Where(param => !uiParams.ContainsKey(param.Key)))
            {
                uiParams.Add(param.Key, param.Value);
            }
        }
Esempio n. 2
0
        public override void AppendItemsTo(Dictionary <string, string> uiParams)
        {
            if (uiParams == null)
            {
                return;
            }

            foreach (var param in PaymentParams.Where(param => !uiParams.ContainsKey(param.Key)))
            {
                uiParams.Add(param.Key, param.Value);
            }

            if (String.IsNullOrEmpty(InstanceId) || PaymentParams.ContainsKey("instance_id"))
            {
                return;
            }

            uiParams.Add("instance_id", InstanceId);
        }