C# ASP.NET,登录后出现PayPal沙盒错误

C# ASP.NET,登录后出现PayPal沙盒错误,c#,asp.net,paypal-sandbox,C#,Asp.net,Paypal Sandbox,我正在关注ASP.NET官方网站上的教程,在输入我的PayPal Sandbox模拟买家帐户后出现以下错误:“我们无法验证您的信息。”“目前,我们无法处理您的请求。” 我对ASP.NET和Web开发非常陌生,但我对C#很熟悉。正如您所看到的,没有错误代码,所以我不确定出了什么问题 在本地主机上使用Visual Studio 2013 Professional RC 2、Windows 7 32位、ASP.NET 4.5从Firefox 29.01运行教程。我已在另一个选项卡中登录到我的PayP

我正在关注ASP.NET官方网站上的教程,在输入我的PayPal Sandbox模拟买家帐户后出现以下错误:“我们无法验证您的信息。”“目前,我们无法处理您的请求。”

我对ASP.NET和Web开发非常陌生,但我对C#很熟悉。正如您所看到的,没有错误代码,所以我不确定出了什么问题

在本地主机上使用Visual Studio 2013 Professional RC 2、Windows 7 32位、ASP.NET 4.5从Firefox 29.01运行教程。我已在另一个选项卡中登录到我的PayPal开发者帐户。模拟买家电子邮件/密码正确。本地主机端口正确

我在本教程第11步:

PayPal的调用代码为:

public bool ShortcutExpressCheckout(string amt, ref string token, ref string retMsg)
{
    if (bSandbox)
    {
        pEndPointURL = pEndPointURL_SB;
        host = host_SB;
    }

    string returnURL = "http://localhost:9038/Checkout/CheckoutReview.aspx";
    string cancelURL = "http://localhost:9038/Checkout/CheckoutCancel.aspx";

    NVPCodec encoder = new NVPCodec();
    encoder["METHOD"] = "SetExpressCheckout";
    encoder["RETURNURL"] = returnURL;
    encoder["CANCELURL"] = cancelURL;
    encoder["BRANDNAME"] = "Wingtip Toys Sample Application";
    encoder["PAYMENTREQUEST_0_AMT"] = amt;
    encoder["PAYMENTREQUEST_0_ITEMAMT"] = amt;
    encoder["PAYMENTREQUEST_0_PAYMENTACTION"] = "Sale";
    encoder["PAYMENTREQUEST_0_CURRENCYCODE"] = "USD";

    //Get the Shopping Cart Products.
    using (ShoppingCartActions myCartOrders = new ShoppingCartActions())
    {
        List<CartItem> myOrderList = myCartOrders.GetCartItems();

        for (int i = 0; i < myOrderList.Count; i++)
        {
            encoder["L_PAYMENTREQUEST_0_NAME" + i] = myOrderList[i].Product.ProductName.ToString();
            encoder["L_PAYMENTREQUEST_0_AMT" + i] = myOrderList[i].Product.UnitPrice.ToString();
            encoder["L_PAYMENTREQUEST_0_QTY" + i] = myOrderList[i].Quantity.ToString();
        }

        string pStrrequestforNvp = encoder.Encode();
        string pStrresponsenvp = HttpCall(pStrrequestforNvp);

        NVPCodec decoder = new NVPCodec();
        decoder.Decode(pStrresponsenvp);

        string strAck = decoder["ACK"].ToLower();
        if (strAck != null && (strAck == SUCCESS || strAck == SUCCESSWITHWARNING))
        {
            token = decoder["TOKEN"];
            string ECURL = "https://" + host + "/cgi-bin/webscr?cmd=_express-checkout" + "&token=" + token;
            retMsg = ECURL;
            return true;
        }
        else
        {
            retMsg = "ErrorCode=" + decoder["L_ERRORCODE0"] + "&" +
                "Desc=" + decoder["L_SHORTMESSAGE0"] + "&" +
                "Desc2=" + decoder["L_LONGMESSAGE0"];
            return false;
        }
    }
}
public bool ShortcutExpressCheckout(字符串金额、参考字符串令牌、参考字符串retMsg)
{
如果(bSandbox)
{
pEndPointURL=pEndPointURL_SB;
host=host_SB;
}
字符串returnURL=”http://localhost:9038/Checkout/CheckoutReview.aspx";
字符串取消URL=”http://localhost:9038/Checkout/CheckoutCancel.aspx";
NVPCodec编码器=新的NVPCodec();
编码器[“方法”]=“SetExpressCheckout”;
编码器[“RETURNURL”]=RETURNURL;
编码器[“取消URL”]=取消URL;
编码器[“BRANDNAME”]=“翼尖玩具示例应用程序”;
编码器[“付款请求金额”]=金额;
编码器[“PAYMENTREQUEST\u 0\u ITEMAMT”]=金额;
编码器[“PAYMENTREQUEST\u 0\u PAYMENTACTION”]=“销售”;
编码器[“PAYMENTREQUEST\u 0\u CURRENCYCODE”]=“USD”;
//购买购物车产品。
使用(ShoppingCartActions myCartOrders=new ShoppingCartActions())
{
List myOrderList=myCartOrders.GetCartItems();
for(int i=0;i

任何尝试的建议都将不胜感激

您确定用API值替换了代码中的API信息吗<代码>公共字符串APIUsername=“”
私有字符串APIPassword=”“
私有字符串APISignature=“”是的,APIUsername、APIPassword和APISignature变量都填充了我的沙盒业务帐户API凭据。我从昨天起也收到了这个响应。我打开了一张Paypal支持的票据,他们回答说这是一个他们正在研究的已知问题。解决方案没有预计到达时间。由于这个原因,我们的发布被搁置了——贝宝一如既往地提供卓越的服务。