コード例 #1
0
        // Edited by Antima[09/12/2014]

        public ActionResult PaypalAgency(string PlanType)
        {
            string pay = "";

            try
            {
                Helper.Agency  agency = new Agency();
                Helper.Payment payme  = new Payment();

                agency.AgencyPlan(PlanType);
                string amount   = agency.amount;
                string plantype = agency.plantype;
                string UserName = agency.UserName;
                string EmailId  = agency.EmailId;
                string userId   = agency.userId;

                //pay = payme.PayWithPayPal(amount, plantype, UserName, "", EmailId, "USD", ConfigurationManager.AppSettings["Downloadpaypalemail"], ConfigurationManager.AppSettings["DownloadSuccessURL"],
                //                     ConfigurationManager.AppSettings["DownloadFailedURL"], ConfigurationManager.AppSettings["DownloadSuccessURL"], ConfigurationManager.AppSettings["EnterPrisecancelurl"], ConfigurationManager.AppSettings["EnterPrisenotifyurl"], userId);

                pay = payme.PayWithPayPal(amount, plantype, UserName, "", EmailId, "USD", ConfigurationManager.AppSettings["Downloadpaypalemail"], ConfigurationManager.AppSettings["DownloadSuccessURL"],
                                          ConfigurationManager.AppSettings["DownloadFailedURL"], ConfigurationManager.AppSettings["DownloadSuccessURL"], "", "", userId);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.StackTrace);
            }
            return(Content(pay));
        }