Example #1
0
        public void ServerConfigurationCast(object sender, EventArgs e)
        {
            try
            {
                SocioBoard.Helper.Payment payme = new SocioBoard.Helper.Payment();

                string amount   = "100";
                string plantype = "Professional Installation";
                string UserName = "******";
                String EmailId  = "*****@*****.**";

                String EnterPriseSuccessURL  = ConfigurationManager.AppSettings["EnterPriseSuccessURL"];
                String EnterPriseFailedURL   = ConfigurationManager.AppSettings["EnterPriseFailedURL"];
                String EnterPrisepaypalemail = ConfigurationManager.AppSettings["EnterPrisepaypalemail"];
                String userId = "";

                string pay = payme.PayWithPayPal(amount, plantype, UserName, "", EmailId, "USD", ConfigurationManager.AppSettings["EnterPrisepaypalemail"], ConfigurationManager.AppSettings["EnterPriseSuccessURL"],
                                                 ConfigurationManager.AppSettings["EnterPriseFailedURL"], ConfigurationManager.AppSettings["EnterPriseSuccessURL"], ConfigurationManager.AppSettings["EnterPrisecancelurl"], ConfigurationManager.AppSettings["EnterPrisenotifyurl"], userId);

                Response.Redirect(pay);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
Example #2
0
        protected void PayPalEnterprice_click()
        {
            try
            {
                SocioBoard.Helper.Payment payme = new SocioBoard.Helper.Payment();

                string amount = "2999";
                string plantype = "White Label";
                string UserName = "******";
                String EmailId = "*****@*****.**";

                String EnterPriseSuccessURL = ConfigurationManager.AppSettings["EnterPriseSuccessURL"];
                String EnterPriseFailedURL = ConfigurationManager.AppSettings["EnterPriseFailedURL"];
                String EnterPrisepaypalemail = ConfigurationManager.AppSettings["EnterPrisepaypalemail"];
                String userId = "";

                string pay = payme.PayWithPayPal(amount, plantype, UserName, "", EmailId, "USD", ConfigurationManager.AppSettings["EnterPrisepaypalemail"], ConfigurationManager.AppSettings["EnterPriseSuccessURL"],
                                        ConfigurationManager.AppSettings["EnterPriseFailedURL"], ConfigurationManager.AppSettings["EnterPriseSuccessURL"], ConfigurationManager.AppSettings["EnterPrisecancelurl"], ConfigurationManager.AppSettings["EnterPrisenotifyurl"], userId);

                Response.Redirect(pay);
            }
            catch (Exception ex)
            {

                Console.WriteLine(ex.Message);
            }
        }
Example #3
0
        public void ServerConfigurationCast(object sender, EventArgs e)
        {
            try
            {
                SocioBoard.Helper.Payment payme = new SocioBoard.Helper.Payment();

                string amount = "100";
                string plantype = "Professional Installation";
                string UserName = "******";
                String EmailId = "*****@*****.**";

                String EnterPriseSuccessURL = ConfigurationManager.AppSettings["EnterPriseSuccessURL"];
                String EnterPriseFailedURL = ConfigurationManager.AppSettings["EnterPriseFailedURL"];
                String EnterPrisepaypalemail = ConfigurationManager.AppSettings["EnterPrisepaypalemail"];
                String userId = "";

                string pay = payme.PayWithPayPal(amount, plantype, UserName, "", EmailId, "USD", ConfigurationManager.AppSettings["EnterPrisepaypalemail"], ConfigurationManager.AppSettings["EnterPriseSuccessURL"],
                                        ConfigurationManager.AppSettings["EnterPriseFailedURL"], ConfigurationManager.AppSettings["EnterPriseSuccessURL"], ConfigurationManager.AppSettings["EnterPrisecancelurl"], ConfigurationManager.AppSettings["EnterPrisenotifyurl"], userId);

                Response.Redirect(pay);
            }
            catch (Exception ex)
            {

                Console.WriteLine(ex.Message);
            }
        }
Example #4
0
        protected void PayPalEnterprice_click()
        {
            try
            {
                SocioBoard.Helper.Payment payme = new SocioBoard.Helper.Payment();

                string amount   = "2999";
                string plantype = "White Label";
                string UserName = "******";
                String EmailId  = "*****@*****.**";

                String EnterPriseSuccessURL  = ConfigurationManager.AppSettings["EnterPriseSuccessURL"];
                String EnterPriseFailedURL   = ConfigurationManager.AppSettings["EnterPriseFailedURL"];
                String EnterPrisepaypalemail = ConfigurationManager.AppSettings["EnterPrisepaypalemail"];
                String userId = "";

                string pay = payme.PayWithPayPal(amount, plantype, UserName, "", EmailId, "USD", ConfigurationManager.AppSettings["EnterPrisepaypalemail"], ConfigurationManager.AppSettings["EnterPriseSuccessURL"],
                                                 ConfigurationManager.AppSettings["EnterPriseFailedURL"], ConfigurationManager.AppSettings["EnterPriseSuccessURL"], ConfigurationManager.AppSettings["EnterPrisecancelurl"], ConfigurationManager.AppSettings["EnterPrisenotifyurl"], userId);

                Response.Redirect(pay);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
Example #5
0
        protected void PayPalEnterprice_click(object sender, EventArgs e)
        {
            SocioBoard.Helper.Payment payme = new SocioBoard.Helper.Payment();

            string amount = "9999";
            string plantype = "Enterprise";
            string UserName = "******";
            String EmailId = "*****@*****.**";

            String EnterPriseSuccessURL = ConfigurationManager.AppSettings["EnterPriseSuccessURL"];
            String EnterPriseFailedURL = ConfigurationManager.AppSettings["EnterPriseFailedURL"];
            String EnterPrisepaypalemail = ConfigurationManager.AppSettings["EnterPrisepaypalemail"];
            String userId = "";

            string pay = payme.PayWithPayPal(amount, plantype, UserName, "", EmailId, "USD", ConfigurationManager.AppSettings["EnterPrisepaypalemail"], ConfigurationManager.AppSettings["EnterPriseSuccessURL"],
                                    ConfigurationManager.AppSettings["EnterPriseFailedURL"], ConfigurationManager.AppSettings["EnterPriseSuccessURL"], ConfigurationManager.AppSettings["EnterPrisecancelurl"], ConfigurationManager.AppSettings["EnterPrisenotifyurl"], userId);

            Response.Redirect(pay);
        }