Ejemplo n.º 1
0
        public void MustHaveSandboxedPaymentSettings()
        {
            var portalController = new PortalController();
            var site             = portalController.GetPortal(0);

            if (site.ProcessorPassword == string.Empty)
            {
                PortalController.UpdatePortalSetting(0, "paypalsandbox", "true");
                //uses PayPal sandbox account.
                site.ProcessorUserId   = "PayPal";
                site.ProcessorPassword = "******";
                site.ProcessorUserId   = "*****@*****.**";
                portalController.UpdatePortalInfo(site);
            }
            WebConfigManager.TouchConfig(PhysicalPath);
        }
Ejemplo n.º 2
0
 public void ClearSmtpSetings()
 {
     HostController.Instance.Update("SMTPServer", "", false);
     WebConfigManager.TouchConfig(PhysicalPath);
 }