New: Work on paypal module (finished)

This commit is contained in:
Laurent Destailleur 2010-11-01 14:11:36 +00:00
parent 717ae6d9c1
commit e604d48519

View File

@ -117,6 +117,8 @@ if ($PAYPALTOKEN)
$ipaddress = $_SESSION['ipaddress']; $ipaddress = $_SESSION['ipaddress'];
if (! empty($paymentType))
{
dol_syslog("We call GetExpressCheckoutDetails"); dol_syslog("We call GetExpressCheckoutDetails");
$resArray=GetDetails($token); $resArray=GetDetails($token);
//var_dump($resarray); //var_dump($resarray);
@ -155,10 +157,14 @@ if ($PAYPALTOKEN)
} }
} }
else else
{
dol_print_error('','Session expired');
}
}
else
{ {
// No TOKEN parameter in URL // No TOKEN parameter in URL
dol_print_error($langs->trans("ErrorBadPArameter")); dol_print_error('','No TOKEN parameter in URL');
dol_syslog("No TOKEN parameter in URL");
} }
print "\n</div>\n"; print "\n</div>\n";