I got Paypal integrated in my asp.net web site, Its works perfectly on some computers, while others it doesnt.
EDIT: found the problem but looking for a solution
The problem is as fallowing:
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'
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???
Thank you very very much!
Are you using sandbox mode? I suspect it's causing the problem, while this shouldn't happen with real operations.
Try to get the token from query, not from session:
use the function: Request.QueryString["token"];
Thanks, Çağlar
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With