public void Copy(PayPalStandardPaymentSettings settings, bool fromSettings)
 {
     if (fromSettings)
     {
         UseSandbox                = settings.UseSandbox;
         BusinessEmail             = settings.BusinessEmail;
         PdtToken                  = settings.PdtToken;
         PdtValidateOrderTotal     = settings.PdtValidateOrderTotal;
         AdditionalFee             = settings.AdditionalFee;
         AdditionalFeePercentage   = settings.AdditionalFeePercentage;
         PassProductNamesAndTotals = settings.PassProductNamesAndTotals;
         EnableIpn                 = settings.EnableIpn;
         IpnUrl = settings.IpnUrl;
     }
     else
     {
         settings.UseSandbox                = UseSandbox;
         settings.BusinessEmail             = BusinessEmail;
         settings.PdtToken                  = PdtToken;
         settings.PdtValidateOrderTotal     = PdtValidateOrderTotal;
         settings.AdditionalFee             = AdditionalFee;
         settings.AdditionalFeePercentage   = AdditionalFeePercentage;
         settings.PassProductNamesAndTotals = PassProductNamesAndTotals;
         settings.EnableIpn                 = EnableIpn;
         settings.IpnUrl = IpnUrl;
     }
 }
 public PaymentPayPalStandardController(IWorkContext workContext,
     IStoreService storeService, 
     ISettingService settingService, 
     IPaymentService paymentService, 
     IOrderService orderService, 
     IOrderProcessingService orderProcessingService,
     ILocalizationService localizationService,
     IStoreContext storeContext,
     ILogger logger, 
     IWebHelper webHelper,
     PaymentSettings paymentSettings,
     PayPalStandardPaymentSettings payPalStandardPaymentSettings)
 {
     this._workContext = workContext;
     this._storeService = storeService;
     this._settingService = settingService;
     this._paymentService = paymentService;
     this._orderService = orderService;
     this._orderProcessingService = orderProcessingService;
     this._localizationService = localizationService;
     this._storeContext = storeContext;
     this._logger = logger;
     this._webHelper = webHelper;
     this._paymentSettings = paymentSettings;
     this._payPalStandardPaymentSettings = payPalStandardPaymentSettings;
 }
Exemple #3
0
        public override void Install()
        {
            var paypalExpressSettings = new PayPalExpressPaymentSettings()
            {
                UseSandbox   = true,
                TransactMode = TransactMode.Authorize
            };

            _settingService.SaveSetting <PayPalExpressPaymentSettings>(paypalExpressSettings);

            var paypalDirectSettings = new PayPalDirectPaymentSettings()
            {
                TransactMode = TransactMode.Authorize,
                UseSandbox   = true,
            };

            _settingService.SaveSetting <PayPalDirectPaymentSettings>(paypalDirectSettings);

            var paypalStandardSettings = new PayPalStandardPaymentSettings()
            {
                UseSandbox            = true,
                PdtValidateOrderTotal = true,
                EnableIpn             = true,
            };

            _settingService.SaveSetting <PayPalStandardPaymentSettings>(paypalStandardSettings);

            _localizationService.ImportPluginResourcesFromXml(this.PluginDescriptor);

            base.Install();
        }
Exemple #4
0
 public PaymentPaypalLib()
 {
     if (_paypalStandardPaymentSettings == null)
     {
         _paypalStandardPaymentSettings = PayPalStandardPaymentSettings.getSetting();
     }
 }
 public PaymentPayPalStandardController(IWorkContext workContext,
                                        IStoreService storeService,
                                        ISettingService settingService,
                                        IPaymentService paymentService,
                                        IOrderService orderService,
                                        IOrderProcessingService orderProcessingService,
                                        IPermissionService permissionService,
                                        IGenericAttributeService genericAttributeService,
                                        ILocalizationService localizationService,
                                        IStoreContext storeContext,
                                        ILogger logger,
                                        IWebHelper webHelper,
                                        PaymentSettings paymentSettings,
                                        PayPalStandardPaymentSettings payPalStandardPaymentSettings,
                                        ShoppingCartSettings shoppingCartSettings)
 {
     this._workContext             = workContext;
     this._storeService            = storeService;
     this._settingService          = settingService;
     this._paymentService          = paymentService;
     this._orderService            = orderService;
     this._orderProcessingService  = orderProcessingService;
     this._permissionService       = permissionService;
     this._genericAttributeService = genericAttributeService;
     this._localizationService     = localizationService;
     this._storeContext            = storeContext;
     this._logger          = logger;
     this._webHelper       = webHelper;
     this._paymentSettings = paymentSettings;
     this._payPalStandardPaymentSettings = payPalStandardPaymentSettings;
     this._shoppingCartSettings          = shoppingCartSettings;
 }
Exemple #6
0
 public PaymentPayPalStandardController(IWorkContext workContext,
                                        IStoreService storeService,
                                        ISettingService settingService,
                                        IPaymentService paymentService,
                                        IOrderService orderService,
                                        IOrderProcessingService orderProcessingService,
                                        ILocalizationService localizationService,
                                        IStoreContext storeContext,
                                        ILogger logger,
                                        IWebHelper webHelper,
                                        PaymentSettings paymentSettings,
                                        PayPalStandardPaymentSettings payPalStandardPaymentSettings)
 {
     this._workContext            = workContext;
     this._storeService           = storeService;
     this._settingService         = settingService;
     this._paymentService         = paymentService;
     this._orderService           = orderService;
     this._orderProcessingService = orderProcessingService;
     this._localizationService    = localizationService;
     this._storeContext           = storeContext;
     this._logger          = logger;
     this._webHelper       = webHelper;
     this._paymentSettings = paymentSettings;
     this._payPalStandardPaymentSettings = payPalStandardPaymentSettings;
 }
Exemple #7
0
 protected override void Initialize(RequestContext requestContext)
 {
     if (_paypalStandardPaymentSettings == null)
     {
         _paypalStandardPaymentSettings = PayPalStandardPaymentSettings.getSetting();
     }
     base.Initialize(requestContext);
 }
        public PayPalStandardHttpClient(HttpClient client,
                                        PayPalStandardPaymentSettings payPalStandardPaymentSettings)
        {
            //configure client
            client.Timeout = TimeSpan.FromSeconds(20);
            client.DefaultRequestHeaders.Add(HeaderNames.UserAgent, $"SmiMarketplace-{SmiVersion.CurrentVersion}");

            _httpClient = client;
            _payPalStandardPaymentSettings = payPalStandardPaymentSettings;
        }
Exemple #9
0
        public PayPalStandardHttpClient(HttpClient client,
                                        PayPalStandardPaymentSettings payPalStandardPaymentSettings)
        {
            //configure client
            client.Timeout = TimeSpan.FromMilliseconds(5000);
            client.DefaultRequestHeaders.Add(HeaderNames.UserAgent, $"QNet-{QNetVersion.CurrentVersion}");

            _httpClient = client;
            _payPalStandardPaymentSettings = payPalStandardPaymentSettings;
        }
        public PayPalStandardHttpClient(HttpClient client,
                                        PayPalStandardPaymentSettings payPalStandardPaymentSettings)
        {
            //configure client
            client.Timeout = TimeSpan.FromSeconds(20);
            client.DefaultRequestHeaders.Add(HeaderNames.UserAgent, $"nopCommerce-{NopVersion.CURRENT_VERSION}");

            _httpClient = client;
            _payPalStandardPaymentSettings = payPalStandardPaymentSettings;
        }
Exemple #11
0
 public void Copy(PayPalStandardPaymentSettings settings, bool fromSettings)
 {
     if (fromSettings)
     {
         MiniMapper.Map(settings, this);
     }
     else
     {
         MiniMapper.Map(this, settings);
         settings.BusinessEmail = BusinessEmail.TrimSafe();
     }
 }
Exemple #12
0
        /// <summary>
        /// Generate response signarture to compare
        /// </summary>
        /// <param name="item"></param>
        /// <param name="PaymentId"></param>
        /// <returns></returns>
        public string generate_SHA1keyResponse(Order item, int PaymentId)
        {
            // get the config
            PayPalStandardPaymentSettings settings = PayPalStandardPaymentSettings.getSetting();

            var Key = string.Format("{0}{1}{2}{3}{4}{5}{6}", settings.iPay88_MerchantKey, settings.iPay88_MerchantCode, PaymentId, item.Order_Number, item.Bill_Total.ToString("0.00").Replace(".", ""), "MYR", "1");
            SHA1CryptoServiceProvider objSHA1 = new SHA1CryptoServiceProvider();

            objSHA1.ComputeHash(System.Text.Encoding.UTF8.GetBytes(Key.ToCharArray()));

            byte[] buffer    = objSHA1.Hash;
            string HashValue = System.Convert.ToBase64String(buffer);

            return(HashValue);
        }
 public PaymentPayPalStandardController(ISettingService settingService, 
     IPaymentService paymentService, IOrderService orderService,
     IOrderProcessingService orderProcessingService,
     ILogger logger, IWebHelper webHelper,
     PayPalStandardPaymentSettings paypalStandardPaymentSettings,
     PaymentSettings paymentSettings)
 {
     this._settingService = settingService;
     this._paymentService = paymentService;
     this._orderService = orderService;
     this._orderProcessingService = orderProcessingService;
     this._logger = logger;
     this._webHelper = webHelper;
     this._paypalStandardPaymentSettings = paypalStandardPaymentSettings;
     this._paymentSettings = paymentSettings;
 }
Exemple #14
0
 public PaymentPayPalStandardController(ISettingService settingService,
                                        IPaymentService paymentService, IOrderService orderService,
                                        IOrderProcessingService orderProcessingService,
                                        ILogger logger, IWebHelper webHelper,
                                        PayPalStandardPaymentSettings paypalStandardPaymentSettings,
                                        PaymentSettings paymentSettings)
 {
     this._settingService         = settingService;
     this._paymentService         = paymentService;
     this._orderService           = orderService;
     this._orderProcessingService = orderProcessingService;
     this._logger    = logger;
     this._webHelper = webHelper;
     this._paypalStandardPaymentSettings = paypalStandardPaymentSettings;
     this._paymentSettings = paymentSettings;
 }
        /// <summary>
        /// Gets PDT details
        /// </summary>
        /// <param name="tx">TX</param>
        /// <param name="values">Values</param>
        /// <param name="response">Response</param>
        /// <returns>Result</returns>
        public bool GetPDTDetails(string tx, PayPalStandardPaymentSettings settings, out Dictionary <string, string> values, out string response)
        {
            var request = (HttpWebRequest)WebRequest.Create(settings.GetPayPalUrl());

            request.Method      = "POST";
            request.ContentType = "application/x-www-form-urlencoded";

            var formContent = string.Format("cmd=_notify-synch&at={0}&tx={1}", settings.PdtToken, tx);

            request.ContentLength = formContent.Length;

            using (var sw = new StreamWriter(request.GetRequestStream(), Encoding.ASCII))
            {
                sw.Write(formContent);
            }

            response = null;
            using (var sr = new StreamReader(request.GetResponse().GetResponseStream()))
            {
                response = HttpUtility.UrlDecode(sr.ReadToEnd());
            }

            values = new Dictionary <string, string>(StringComparer.OrdinalIgnoreCase);

            var firstLine = true;
            var success   = false;

            foreach (string l in response.Split('\n'))
            {
                string line = l.Trim();
                if (firstLine)
                {
                    success   = line.Equals("SUCCESS", StringComparison.OrdinalIgnoreCase);
                    firstLine = false;
                }
                else
                {
                    int equalPox = line.IndexOf('=');
                    if (equalPox >= 0)
                    {
                        values.Add(line.Substring(0, equalPox), line.Substring(equalPox + 1));
                    }
                }
            }

            return(success);
        }
		public PaymentPayPalStandardController(IWorkContext workContext,
			 IStoreService storeService,
			 ISettingService settingService,
			 IPaymentService paymentService,
			 IOrderService orderService,
			 IOrderProcessingService orderProcessingService,
			 ILocalizationService localizationService,
			 IStoreContext storeContext,
			 ILogger logger,
			 IWebHelper webHelper,
			 PaymentSettings paymentSettings,
			 PayPalStandardPaymentSettings payPalStandardPaymentSettings,
			 IGenericAttributeService genericAttributeService,
			 HttpContextBase httpContext,
			 OrderSettings orderSettings,
			 ICurrencyService currencyService,
			 IPriceFormatter priceFormatter,
			 IPaypalStandardOrderProcessingService payPalOrderProcessingService,
			 IOrderTotalCalculationService orderTotalCalculationService,
			 ITempOrder tempOrderService
			)
		{
			this._workContext = workContext;
			this._storeService = storeService;
			this._settingService = settingService;
			this._paymentService = paymentService;
			this._orderService = orderService;
			this._orderProcessingService = orderProcessingService;
			this._localizationService = localizationService;
			this._storeContext = storeContext;
			this._logger = logger;
			this._webHelper = webHelper;
			this._paymentSettings = paymentSettings;
			this._payPalStandardPaymentSettings = payPalStandardPaymentSettings;
			this._genericAttributeService = genericAttributeService;
			this._httpContext = httpContext;
			this._orderSettings = orderSettings;
			this._currencyService = currencyService;
			this._priceFormatter = priceFormatter;
			this._payPalOrderProcessingService = payPalOrderProcessingService;
			this._orderTotalCalculationService = orderTotalCalculationService;
			this._tempOrderService = tempOrderService;
		}
Exemple #17
0
 public PayPalStandardProvider(ICurrencyService currencyService,
                               HttpContextBase httpContext,
                               CurrencySettings currencySettings,
                               IOrderTotalCalculationService orderTotalCalculationService,
                               ICheckoutAttributeParser checkoutAttributeParser,
                               ITaxService taxService,
                               PayPalStandardPaymentSettings paypalStandardSettings,
                               ICommonServices commonServices,
                               ILogger logger)
 {
     _currencyService              = currencyService;
     _currencySettings             = currencySettings;
     _orderTotalCalculationService = orderTotalCalculationService;
     _checkoutAttributeParser      = checkoutAttributeParser;
     _taxService             = taxService;
     _httpContext            = httpContext;
     _paypalStandardSettings = paypalStandardSettings;
     _commonServices         = commonServices;
     _logger = logger;
 }
		public PaymentPayPalStandardController(ISettingService settingService,
			IPaymentService paymentService, IOrderService orderService,
			IOrderProcessingService orderProcessingService,
			IStoreContext storeContext,
			IWorkContext workContext,
			IWebHelper webHelper,
			PayPalStandardPaymentSettings paypalStandardPaymentSettings,
			PaymentSettings paymentSettings)
		{
			this._settingService = settingService;
			this._paymentService = paymentService;
			this._orderService = orderService;
			this._orderProcessingService = orderProcessingService;
			this._storeContext = storeContext;
			this._workContext = workContext;
			this._webHelper = webHelper;
			this._paypalStandardPaymentSettings = paypalStandardPaymentSettings;
			this._paymentSettings = paymentSettings;

			_helper = new PluginHelperBase("Payments.PayPalStandard");
		}
Exemple #19
0
 public PaymentPayPalStandardController(
     IWorkContext workContext,
     IPaymentService paymentService,
     IOrderService orderService,
     ILogger logger,
     IMediator mediator,
     IPaymentTransactionService paymentTransactionService,
     IPaypalHttpClient paypalHttpClient,
     PayPalStandardPaymentSettings payPalStandardPaymentSettings,
     PaymentSettings paymentSettings)
 {
     _workContext                   = workContext;
     _paymentService                = paymentService;
     _orderService                  = orderService;
     _logger                        = logger;
     _mediator                      = mediator;
     _paymentTransactionService     = paymentTransactionService;
     _paypalHttpClient              = paypalHttpClient;
     _payPalStandardPaymentSettings = payPalStandardPaymentSettings;
     _paymentSettings               = paymentSettings;
 }
        public PaymentPayPalStandardController(ISettingService settingService,
                                               IPaymentService paymentService, IOrderService orderService,
                                               IOrderProcessingService orderProcessingService,
                                               IStoreContext storeContext,
                                               IWorkContext workContext,
                                               IWebHelper webHelper,
                                               PayPalStandardPaymentSettings paypalStandardPaymentSettings,
                                               PaymentSettings paymentSettings)
        {
            this._settingService         = settingService;
            this._paymentService         = paymentService;
            this._orderService           = orderService;
            this._orderProcessingService = orderProcessingService;
            this._storeContext           = storeContext;
            this._workContext            = workContext;
            this._webHelper = webHelper;
            this._paypalStandardPaymentSettings = paypalStandardPaymentSettings;
            this._paymentSettings = paymentSettings;

            _helper = new PluginHelperBase("Payments.PayPalStandard");
        }
Exemple #21
0
        public ActionResult Response(iPay_ResponseModel model)
        {
            // try to log into exception for later debug
            //Exceptions ex = new Exceptions();
            //ex.ExMessage = "iPay88 Calback";
            //ex.ExStackTrace = model.ToJson();
            //Db.Insert<Exceptions>(ex);

            // check the RefNo == OderNumber
            var order = Db.Select <Order>(x => x.Where(m => m.Order_Number == model.RefNo).Limit(1)).FirstOrDefault();

            // generate the signature
            PayPalStandardPaymentSettings settings = PayPalStandardPaymentSettings.getSetting();

            if (settings.UseSandbox)
            {
                order.Bill_Total = 1;
            }
            var signagure = new iPay88Helper().generate_SHA1keyResponse(order, model.PaymentId);

            if (order != null)
            {
                if (model.Status == "1" && signagure == model.Signature && order.PaymentStatusEnum != Enum_PaymentStatus.Paid)
                {
                    order.AddHistory("Receive callback from iPay88: " + model.ToJson(), "iPay88", 0, true);
                    order.Set_PaymentStatus(Enum_PaymentStatus.Paid);
                    order.AddHistory("Update payment method to iPay88", "System", 0, true);
                    Db.UpdateOnly <Order>(new Order()
                    {
                        Payment_AuthorizationTransactionId = model.TransId, PaymentMethod = Enum_PaymentMethod.iPay88
                    }, ev => ev.Update(p => new { p.Payment_AuthorizationTransactionId, p.PaymentMethod }).Where(m => m.Id == order.Id));
                    // return RedirectToAction("OrderInvoiceDetail", "Product", new { id = order.Order_Number });
                }
                return(RedirectToAction("OrderInvoiceDetail", "Product", new { id = order.Order_Number }));
            }
            else
            {
                return(Redirect("/"));
            }
        }
 public PaymentPayPalStandardController(IWorkContext workContext,
                                        IStoreService storeService,
                                        ISettingService settingService,
                                        IPaymentService paymentService,
                                        IOrderService orderService,
                                        IOrderProcessingService orderProcessingService,
                                        IGenericAttributeService genericAttributeService,
                                        ILocalizationService localizationService,
                                        IStoreContext storeContext,
                                        ILogger logger,
                                        IWebHelper webHelper,
                                        PaymentSettings paymentSettings,
                                        PayPalStandardPaymentSettings payPalStandardPaymentSettings,
                                        ShoppingCartSettings shoppingCartSettings,
                                        IEncryptionService encryptionService,
                                        ICustomerService customerService,
                                        HttpContextBase httpContext, IShoppingCartService shoppingCartService, IProductService productService)
 {
     this._workContext             = workContext;
     this._storeService            = storeService;
     this._settingService          = settingService;
     this._paymentService          = paymentService;
     this._orderService            = orderService;
     this._orderProcessingService  = orderProcessingService;
     this._genericAttributeService = genericAttributeService;
     this._localizationService     = localizationService;
     this._storeContext            = storeContext;
     this._logger          = logger;
     this._webHelper       = webHelper;
     this._paymentSettings = paymentSettings;
     this._payPalStandardPaymentSettings = payPalStandardPaymentSettings;
     this._shoppingCartSettings          = shoppingCartSettings;
     this._encryptionService             = encryptionService;
     this._customerService     = customerService;
     this._httpContext         = httpContext;
     this._shoppingCartService = shoppingCartService;
     this._productService      = productService;
 }
Exemple #23
0
 public void Copy(PayPalStandardPaymentSettings settings, bool fromSettings)
 {
     if (fromSettings)
     {
         SecurityProtocol        = settings.SecurityProtocol;
         UseSandbox              = settings.UseSandbox;
         IpnChangesPaymentStatus = settings.IpnChangesPaymentStatus;
         BusinessEmail           = settings.BusinessEmail;
         PdtToken = settings.PdtToken;
         PdtValidateOrderTotal     = settings.PdtValidateOrderTotal;
         PdtValidateOnlyWarn       = settings.PdtValidateOnlyWarn;
         AdditionalFee             = settings.AdditionalFee;
         AdditionalFeePercentage   = settings.AdditionalFeePercentage;
         IsShippingAddressRequired = settings.IsShippingAddressRequired;
         UsePayPalAddress          = settings.UsePayPalAddress;
         PassProductNamesAndTotals = settings.PassProductNamesAndTotals;
         EnableIpn = settings.EnableIpn;
         IpnUrl    = settings.IpnUrl;
     }
     else
     {
         settings.SecurityProtocol        = SecurityProtocol;
         settings.UseSandbox              = UseSandbox;
         settings.IpnChangesPaymentStatus = IpnChangesPaymentStatus;
         settings.BusinessEmail           = BusinessEmail;
         settings.PdtToken = PdtToken;
         settings.PdtValidateOrderTotal     = PdtValidateOrderTotal;
         settings.PdtValidateOnlyWarn       = PdtValidateOnlyWarn;
         settings.AdditionalFee             = AdditionalFee;
         settings.AdditionalFeePercentage   = AdditionalFeePercentage;
         settings.IsShippingAddressRequired = IsShippingAddressRequired;
         settings.UsePayPalAddress          = UsePayPalAddress;
         settings.PassProductNamesAndTotals = PassProductNamesAndTotals;
         settings.EnableIpn = EnableIpn;
         settings.IpnUrl    = IpnUrl;
     }
 }
 public PaypalHttpClient(HttpClient client, PayPalStandardPaymentSettings paypalStandardPaymentSettings, ILogger logger)
 {
     _client = client;
     _paypalStandardPaymentSettings = paypalStandardPaymentSettings;
     _logger = logger;
 }
Exemple #25
0
 /// <summary>
 /// Gets Paypal URL
 /// </summary>
 /// <returns></returns>
 public string GetPaypalUrl()
 {
     return(PayPalStandardPaymentSettings.getSetting().UseSandbox ? "https://www.sandbox.paypal.com/us/cgi-bin/webscr" :
            "https://www.paypal.com/us/cgi-bin/webscr");
 }
Exemple #26
0
        /// <summary>
        /// Send transaction to iPay and wait for the response
        /// </summary>
        /// <param name="item"></param>
        /// <returns></returns>
        public iPay_RequestModel DoTransaction(Order item)
        {
            // get the config
            PayPalStandardPaymentSettings settings = PayPalStandardPaymentSettings.getSetting();

            //
            var p            = Db.Select <Product>(x => x.Where(m => m.Id == item.Product_Id).Limit(1)).FirstOrDefault();
            var product_name = item.Product_Name;

            if (p != null)
            {
                product_name += " - " + p.Size;
            }
            p.Dispose();

            var u          = Db.Select <ABUserAuth>(x => x.Where(m => m.Id == item.Customer_Id).Limit(1)).FirstOrDefault();
            var user_phone = "";

            if (u != null && !string.IsNullOrEmpty(u.Phone))
            {
                user_phone = u.Phone;
            }

            if (settings.UseSandbox)
            {
                item.Bill_Total = 1;
            }

            //
            var ret_url = ConfigurationManager.AppSettings.Get("PaypalWebsiteURL");

            //if (ret_url.Contains("http://localhost"))
            //{
            //    ret_url = "http://www.YourBackendURL.com/";
            //}

            if (string.IsNullOrEmpty(item.Customer_Name))
            {
                item.Customer_Name = "Order #" + item.Order_Number;
            }

            var country        = Db.Select <Country>(x => x.Where(m => m.CurrencyCode == item.Shipping_DisplayPriceSign).Limit(1)).FirstOrDefault();
            var currentcy_sign = "";

            if (country != null)
            {
                currentcy_sign = country.Currency3Letter;
            }
            string entryUrl     = entryURL;
            var    pay88Request = new iPay_RequestModel()
            {
                //MerchantKey = settings.iPay88_MerchantKey,
                MerchantCode = settings.iPay88_MerchantCode,
                Amount       = item.Bill_Total.ToString("0.00"),
                Currency     = currentcy_sign,
                RefNo        = item.Order_Number,
                ProdDesc     = product_name,
                UserName     = item.Customer_Name,
                UserContact  = user_phone,
                UserEmail    = item.Customer_Email,
                ResponseURL  = ret_url + "iPay88/Response",

                BackendURL = ret_url + "iPay88/Response",
                PaymentId  = "",
                Remark     = "Premier Photo Book Sdn Bhd",
                Signature  = generate_SHA1key(item),
            };


            Db.Close();

            return(pay88Request);
        }
        //[Authorize(Roles = "Administrator,Manager")]
        public ActionResult Edit()
        {
            PayPalStandardPaymentSettings model = PayPalStandardPaymentSettings.getSetting();

            return(View(model));
        }
        public ActionResult Update(PayPalStandardPaymentSettings model, IEnumerable <HttpPostedFileBase> FileUp)
        {
            Db.Update <PayPalStandardPaymentSettings>(model);

            return(RedirectToAction("Edit"));
        }