getId(), $apiContext); } catch (\Exception $ex) { echo "Exception: " . $ex->getMessage() . PHP_EOL; if (is_a($ex, '\PayPal\Exception\PPConnectionException')) { /** @var $ex \PayPal\Exception\PPConnectionException */ var_dump($ex->getData()); } exit(1); } ResultPrinter::printResult("Get Web Profile", "Web Profile", $webProfile->getId(), null, $webProfile); return $webProfile;