GetExpressCheckoutDetailsRequest = $getExpressCheckoutDetailsRequest; $paypalService = new PayPalAPIInterfaceServiceService(); try { /* wrap API method calls on the service object with a try catch */ $getECResponse = $paypalService->GetExpressCheckoutDetails($getExpressCheckoutReq); } catch (Exception $ex) { include_once("error.php"); exit; } if (isset($getECResponse)) { /* echo ""; echo ""; echo ""; echo ""; echo ""; echo "
Ack :
" . $getECResponse->Ack . "
Token :
" . $getECResponse->GetExpressCheckoutDetailsResponseDetails->Token . "
PayerID :
" . $getECResponse->GetExpressCheckoutDetailsResponseDetails->PayerInfo->PayerID . "
PayerStatus :
" . $getECResponse->GetExpressCheckoutDetailsResponseDetails->PayerInfo->PayerStatus . "
"; echo '
';
    print_r($getECResponse);
    echo '
'; */ header('Location: ' . $vDomaine . '/paypal_prod/api/ExpressCheckout/DoExpressCheckout.php?token=' . $getECResponse->GetExpressCheckoutDetailsResponseDetails->Token . '&PayerID=' . $getECResponse->GetExpressCheckoutDetailsResponseDetails->PayerInfo->PayerID); exit; } if ($strLangue == 'fr') $_SESSION['msg'] = 'e118'; else $_SESSION['msg'] = 'e518'; echo(!empty($_GET['lang'])); if ($_SESSION['lang'] == 'fr') $strPage = 'panier'; else $strPage = 'cart'; header('Location: ' . $vDomaine . '/' . $strPage . '/checkout/' . $_SESSION['eve_label_url'] ); exit; //require_once '../Response.php'; ?>