GETEX pressCheckoutDetails返回会议asp.net过期(10411错误)(仅在某些计算机上) [英] GetExpressCheckoutDetails returns session expired (10411 error) in asp.net (only on some computers)
问题描述
我得到了贝宝集成在我的asp.net网站,它完美的作品在某些电脑上,而另一些它不。
I got Paypal integrated in my asp.net web site, Its works perfectly on some computers, while others it doesnt.
编辑:发现问题,但寻找一个解决方案
found the problem but looking for a solution
问题是休耕:
事情似乎做工精细,我可以用PayPal支付,然后当它调用GETEX pressCheckoutDetails返回 10411错误 这个前preSS结帐会话已过期
Things seem to work fine I can pay with paypal and then when it calls GetExpressCheckoutDetails it returns 10411 error 'this express checkout session has expired'
我打电话与休耕code GETEX pressCheckoutDetails:
I call GetExpressCheckoutDetails with the fallowing code:
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;
}
}
这只是发生在某些计算机 ...和它发生就不是会话应该还没有过期。
This only happens on some computers... and it happens right away not the session should not expire yet.
任何想法,我做错了什么?任何一个可以请请帮助?
Any idea what I did wrong? Can any one please please help???
感谢您非常非常感谢!
推荐答案
您使用沙盒模式?我怀疑这是造成问题的原因,而这不应该用实际行动发生。
Are you using sandbox mode? I suspect it's causing the problem, while this shouldn't happen with real operations.
这篇关于GETEX pressCheckoutDetails返回会议asp.net过期(10411错误)(仅在某些计算机上)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!