【发布时间】:2013-05-25 15:53:24
【问题描述】:
我将 Paypal 集成到我的 asp.net 网站中,它可以在某些计算机上完美运行,而在其他计算机上则不能。
编辑:发现问题但正在寻找解决方案
问题就这么解决了:
一切似乎都很好,我可以使用贝宝付款,然后当它调用 GetExpressCheckoutDetails 时,它返回 10411 错误“此快速结帐会话已过期”
我用下面的代码调用 GetExpressCheckoutDetails:
public bool GetDetails(string token, ref NVPCodec decoder, ref string retMsg)
{
if (bSandbox)
{
pendpointurl = pendpointurl_SB;
host = host_SB;
SetCredentials(APIUsername_SB, APIPassword_SB, APISignature_SB);
}
NVPCodec encoder = new NVPCodec();
encoder["METHOD"] = "GetExpressCheckoutDetails";
encoder["TOKEN"] = token;
string pStrrequestforNvp = encoder.Encode();
string pStresponsenvp = HttpCall(pStrrequestforNvp);
decoder = new NVPCodec();
decoder.Decode(pStresponsenvp);
string strAck = decoder["ACK"].ToLower();
if (strAck != null && (strAck == "success" || strAck == "successwithwarning"))
{
return true;
}
else
{
retMsg = "ErrorCode=" + decoder["L_ERRORCODE0"] + "&" +
"Desc=" + decoder["L_SHORTMESSAGE0"] + "&" +
"Desc2=" + decoder["L_LONGMESSAGE0"];
return false;
}
}
这只发生在某些计算机上...并且它会立即发生,而不是会话应该还没有到期。
知道我做错了什么吗?哪位大神帮忙看看???
非常感谢!
【问题讨论】:
-
您能否提供返回错误的 API 响应的副本?我正在寻找相关 ID
标签: c# asp.net paypal checkout