我将 Paypal 集成到了我的 asp.net 网站中,它在某些计算机上完美运行,而在其他计算机上则不然。
编辑:发现问题但正在寻找解决方案
问题如下:
一切似乎工作正常,我可以使用贝宝付款,然后当它调用“获取 ExpressCheckout 详细信息”时,它会返回10411 错误 '此快速结帐会话已过期'
我使用以下代码调用“设置快速结帐详细信息”:
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;
}
}
这仅发生在一些电脑...并且它立即发生,而不是会话应该还没有过期。
知道我做错了什么吗?任何人都可以请帮忙吗???
非常非常感谢你!
您使用的是沙盒模式吗?我怀疑这是导致问题的原因,但实际操作中不应发生这种情况。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)