Esempio n. 1
0
        /// <summary>
        /// Sets the FPS rules applied.
        /// </summary>
        /// <param name="XmlData">Xml String</param>
        /// <returns>FPS Xml Data object</returns>
        private FpsXmlData SetRules(String XmlData)
        {
            try
            {
                FpsXmlData FpsData = new FpsXmlData();
                if (XmlData != null && XmlData.Length > 0)
                {
                    ArrayList RuleList = null;

                    RuleList = ParseXmlData(XmlData);
                    if (RuleList != null && RuleList.Count > 0)
                    {
                        FpsData.SetRuleList(RuleList);
                    }
                }
                return(FpsData);
            }
            catch (BaseException)
            {
                throw;
            }
            catch (Exception Ex)
            {
                DataObjectException DEx = new DataObjectException(Ex);
                throw DEx;
            }
            //catch
            //{
            //    throw new Exception();
            //}
        }
Esempio n. 2
0
        /// <summary>
        /// Sets the Fps Xml data
        /// </summary>
        ///<param name="ResponseHashTable">Response Hash table by ref</param>
        private void SetFpsXmlData(ref Hashtable ResponseHashTable)
        {
            String XmlData = null;

            try
            {
                XmlData         = (String)ResponseHashTable[PayflowConstants.PARAM_FPS_PREXMLDATA];
                mFpsPreXmlData  = SetRules(XmlData);
                XmlData         = (String)ResponseHashTable[PayflowConstants.PARAM_FPS_POSTXMLDATA];
                mFpsPostXmlData = SetRules(XmlData);
                ResponseHashTable.Remove(PayflowConstants.PARAM_FPS_PREXMLDATA);
                ResponseHashTable.Remove(PayflowConstants.PARAM_FPS_POSTXMLDATA);
            }
            catch (BaseException)
            {
                throw;
            }
            catch (Exception Ex)
            {
                DataObjectException DEx = new DataObjectException(Ex);
                throw DEx;
            }
            //catch
            //{
            //    throw new Exception();
            //}
        }