예제 #1
0
 /// <summary>
 /// Saves Payment Gateway and their setting in json data format.
 /// </summary>
 /// <param name="objPaymentInfo"></param>
 public void SavePaymentGateways(PaymentGatewayInfo objPaymentInfo)
 {
     try
     {
         PaymentDataProvider objDataProvider = new PaymentDataProvider();
         objDataProvider.SavePaymentGateways(objPaymentInfo);
     }
     catch (Exception ex)
     {
         throw;
     }
 }
 /// <summary>
 /// Saves Payment Gateway and their setting in json data format.
 /// </summary>
 /// <param name="objPaymentInfo"></param>
 public void SavePaymentGateways(PaymentGatewayInfo objPaymentInfo)
 {
     try
     {
         PaymentDataProvider objDataProvider = new PaymentDataProvider();
         objDataProvider.SavePaymentGateways(objPaymentInfo);
     }
     catch 
     {
         throw;
     }
 }
예제 #3
0
 /// <summary>
 /// Fetch payment gateway settings key value collection
 /// </summary>
 /// <param name="portalID">portalID</param>
 /// <returns>PaymentGatewaySetting object containing the payment gateway setting keys and values</returns>
 public PaymentGatewaySetting FetchSetting(int portalID)
 {
     try
     {
         PaymentGatewayInfo objGatewayInfo = new PaymentGatewayInfo();
         objGatewayInfo = GetPaymentGatewaysSetting(portalID);
         PaymentGatewaySetting objSettings = new JavaScriptSerializer().Deserialize <PaymentGatewaySetting>(objGatewayInfo.SettingValue);
         return(objSettings);
     }
     catch (Exception ex)
     {
         throw;
     }
 }
 /// <summary>
 /// Fetch payment gateway settings key value collection 
 /// </summary>
 /// <param name="portalID">portalID</param>
 /// <returns>PaymentGatewaySetting object containing the payment gateway setting keys and values</returns>
 public PaymentGatewaySetting FetchSetting(int portalID)
 {
     try
     {
         PaymentGatewayInfo objGatewayInfo = new PaymentGatewayInfo();
         objGatewayInfo = GetPaymentGatewaysSetting(portalID);
         PaymentGatewaySetting objSettings = new JavaScriptSerializer().Deserialize<PaymentGatewaySetting>(objGatewayInfo.SettingValue);
         return objSettings;
     }
     catch
     {
         throw;
     }
 }
 /// <summary>
 /// Connects to database and saves Payment Gateway and their setting in json data format.
 /// </summary>
 /// <param name="objPaymentInfo"> Object of class PaymentGatewayInfo.</param>
 public void SavePaymentGateways(PaymentGatewayInfo objPaymentInfo)
 {
     try
     {
         List<KeyValuePair<string, object>> Param = new List<KeyValuePair<string, object>>();
         Param.Add(new KeyValuePair<string, object>("@SettingValue", objPaymentInfo.SettingValue));
         Param.Add(new KeyValuePair<string, object>("@PortalID", objPaymentInfo.PortalID));
         Param.Add(new KeyValuePair<string, object>("@UserModuleID", objPaymentInfo.UserModuleID));
         Param.Add(new KeyValuePair<string, object>("@UserName", objPaymentInfo.UserName));
         Param.Add(new KeyValuePair<string, object>("@CultureCode", objPaymentInfo.CultureCode));
         SQLHandler sqlh = new SQLHandler();
         sqlh.ExecuteNonQuery("usp_PaymentGatewaySetting_Save", Param);
     }
     catch 
     {
         throw;
     }
 }
 /// <summary>
 /// Connects to database and saves Payment Gateway and their setting in json data format.
 /// </summary>
 /// <param name="objPaymentInfo"> Object of class PaymentGatewayInfo.</param>
 public void SavePaymentGateways(PaymentGatewayInfo objPaymentInfo)
 {
     try
     {
         List <KeyValuePair <string, object> > Param = new List <KeyValuePair <string, object> >();
         Param.Add(new KeyValuePair <string, object>("@SettingValue", objPaymentInfo.SettingValue));
         Param.Add(new KeyValuePair <string, object>("@PortalID", objPaymentInfo.PortalID));
         Param.Add(new KeyValuePair <string, object>("@UserModuleID", objPaymentInfo.UserModuleID));
         Param.Add(new KeyValuePair <string, object>("@UserName", objPaymentInfo.UserName));
         Param.Add(new KeyValuePair <string, object>("@CultureCode", objPaymentInfo.CultureCode));
         SQLHandler sqlh = new SQLHandler();
         sqlh.ExecuteNonQuery("usp_PaymentGatewaySetting_Save", Param);
     }
     catch
     {
         throw;
     }
 }