IIS似乎阻止了PayPal代码。

时间:2017-03-10 04:55:00

标签: asp.net iis paypal

我一直在使用paypal按钮,当我通过Visual Studio运行它时工作正常但是当我通过IIS运行它时它不会重定向到paypal。我没有关于如何使其工作的想法。救命啊!

我的代码如下所示:

           {string url = "";
            string business = "samplemerchantproj@yahoo.com";  
            string description = "Buy";            
            string country = "US";                  
            string currency = "PHP";                 
            string amount = Label1.Text;

            url += "https://www.sandbox.paypal.com/cgi-bin/webscr" +
                "?cmd=" + "_xclick" +
                "&business=" + business +
                "&amount=" + amount +
                "&lc=" + country +
                "&item_name=" + description +
                "&currency_code=" + currency +
                "&bn=" + "PP%2dBuyNowBF";

            System.Diagnostics.Process.Start(url);
        }

0 个答案:

没有答案