requestEnvelope = $requestEnvelope; $service = new PermissionsService('Permissions'); try { $response = $service->RequestPermissions($request); } catch(Exception $ex) { require 'Error.php'; exit; } /* Display the API response back to the browser. If the response from PayPal was a success, display the response parameters' If the response was an error, display the errors received using APIError.php. */ ?>

RequestPermissions - Response

token; if(strtoupper($response->responseEnvelope->ack) == 'SUCCESS') { $payPalURL = 'https://www.sandbox.paypal.com/webscr&cmd='.'_grant-permission&request_token='.$token; echo ""; echo ""; echo ""; echo ""; echo "
Ack :
". $response->responseEnvelope->ack ."
Token :
". $response->token ."
* Redirect URL to Complete RequestPermissions API operation
"; } require_once 'ShowAllResponse.php'; ?>