public static void UpdatePaymentMethod(AspxCommonInfo aspxCommonObj, PaymentGateWayBasicInfo updatePaymentObj) { try { AspxPaymentProvider.UpdatePaymentMethod(aspxCommonObj, updatePaymentObj); } catch (Exception e) { throw e; } }
public static List<PaymentGateWayInfo> GetAllPaymentMethod(int offset, int limit, AspxCommonInfo aspxCommonObj, PaymentGateWayBasicInfo paymentMethodObj) { try { List<PaymentGateWayInfo> lstPayGateWay = AspxPaymentProvider.GetAllPaymentMethod(offset, limit, aspxCommonObj, paymentMethodObj); return lstPayGateWay; } catch (Exception e) { throw e; } }
public static List<PaymentGateWayInfo> GetAllPaymentMethod(int offset, int limit, AspxCommonInfo aspxCommonObj, PaymentGateWayBasicInfo paymentMethodObj) { try { List<KeyValuePair<string, object>> parameterCollection = CommonParmBuilder.GetParamSP(aspxCommonObj); parameterCollection.Add(new KeyValuePair<string, object>("@offset", offset)); parameterCollection.Add(new KeyValuePair<string, object>("@limit", limit)); parameterCollection.Add(new KeyValuePair<string, object>("@PaymentGatewayName", paymentMethodObj.PaymentGatewayName)); parameterCollection.Add(new KeyValuePair<string, object>("@IsActive", paymentMethodObj.IsActive)); SQLHandler sqlH = new SQLHandler(); List<PaymentGateWayInfo> lstPayGateWay = sqlH.ExecuteAsList<PaymentGateWayInfo>("usp_Aspx_GetPaymentGateWayMethod", parameterCollection); return lstPayGateWay; } catch (Exception e) { throw e; } }
public List<GetOrderdetailsByPaymentGatewayIDInfo> GetOrderDetailsbyPayID(int offset, int limit, PaymentGateWayBasicInfo bindOrderObj, AspxCommonInfo aspxCommonObj) { try { List<GetOrderdetailsByPaymentGatewayIDInfo> lstOrderDetail = AspxPaymentController.GetOrderDetailsbyPayID(offset, limit, bindOrderObj, aspxCommonObj); return lstOrderDetail; } catch (Exception ex) { throw ex; } }
public void UpdatePaymentMethod(AspxCommonInfo aspxCommonObj, PaymentGateWayBasicInfo updatePaymentObj) { try { AspxPaymentController.UpdatePaymentMethod(aspxCommonObj, updatePaymentObj); } catch (Exception ex) { throw ex; } }
public static void UpdatePaymentMethod(AspxCommonInfo aspxCommonObj, PaymentGateWayBasicInfo updatePaymentObj) { try { var fileObj = new FileHelperController(); updatePaymentObj.DestinationUrl = updatePaymentObj.DestinationUrl.Substring(updatePaymentObj.DestinationUrl.LastIndexOf("Module")); updatePaymentObj.LogoUrl = fileObj.MoveFile(updatePaymentObj.LogoUrl, updatePaymentObj.DestinationUrl, updatePaymentObj.OldLogoUrl); if (updatePaymentObj.LogoUrl == "Modules/AspxCommerce/AspxPaymentGateWayManagement/Logos/") { updatePaymentObj.LogoUrl = ""; } List<KeyValuePair<string, object>> parameterCollection = CommonParmBuilder.GetParamSPU(aspxCommonObj); parameterCollection.Add(new KeyValuePair<string, object>("@PaymentGatewayTypeID", updatePaymentObj.PaymentGateWayID)); parameterCollection.Add(new KeyValuePair<string, object>("@IsActive", updatePaymentObj.IsActive)); parameterCollection.Add(new KeyValuePair<string, object>("@IsUse", updatePaymentObj.IsUse)); parameterCollection.Add(new KeyValuePair<string, object>("@PaymentGatewayTypeName", updatePaymentObj.PaymentGatewayName)); parameterCollection.Add(new KeyValuePair<string, object>("@LogoUrl", updatePaymentObj.LogoUrl)); SQLHandler sqlH = new SQLHandler(); sqlH.ExecuteNonQuery("usp_Aspx_UpdatePaymentMethod", parameterCollection); } catch (Exception e) { throw e; } }
public static List<GetOrderdetailsByPaymentGatewayIDInfo> GetOrderDetailsbyPayID(int offset, int limit, PaymentGateWayBasicInfo bindOrderObj, AspxCommonInfo aspxCommonObj) { try { List<KeyValuePair<string, object>> parameter = CommonParmBuilder.GetParamSPUC(aspxCommonObj); parameter.Add(new KeyValuePair<string, object>("@offset", offset)); parameter.Add(new KeyValuePair<string, object>("@limit", limit)); parameter.Add(new KeyValuePair<string, object>("@BillToName", bindOrderObj.BillToName)); parameter.Add(new KeyValuePair<string, object>("@ShipToName", bindOrderObj.ShipToName)); parameter.Add(new KeyValuePair<string, object>("@OrderStatusAliasName", bindOrderObj.OrderStatusName)); parameter.Add(new KeyValuePair<string, object>("@PaymentGatewayTypeID", bindOrderObj.PaymentGateWayID)); SQLHandler sqlH = new SQLHandler(); List<GetOrderdetailsByPaymentGatewayIDInfo> lstOrderDetail = sqlH.ExecuteAsList<GetOrderdetailsByPaymentGatewayIDInfo>("usp_Aspx_GetOrderDetailsByPaymentGetwayID", parameter); return lstOrderDetail; } catch (Exception e) { throw e; } }