开发者

Putting Paypal ASP.Net SDK code Live

I have used the ASP.Net sample code in a website. All works fine when using the sandbox, but I can't work out the correct settings to put it live.

In the constants.cs file this setting is 'sandbox' for test, but what should it be when going live?

public const string ENVIRONMENT = "sandbox";

It is used in ReviewOrder.cs to construct the Paypal Url:

                string host = "www." + Session["stage"].ToString() + ".paypal.com";

I can hardcode the URL and get the application working, but I would rather understand the code before I put it live. 开发者_JAVA百科Anyone used the paypal SDK code samples?


Paypal have confirmed this is a bug in the SDK sample code. The workaround for anyone who needs it is:

string host = "www.paypal.com";
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜