getPresentation()->setLogoImage("http://www.google.com/favico.ico"); try { // Update the web profile to change the logo image. if ($webProfile->update($apiContext)) { // If the update is successfull, we can now get the object, and verify the web profile // object $updatedWebProfile = \PayPal\Api\WebProfile::get($webProfile->getId(), $apiContext); } } catch (\Exception $ex) { ResultPrinter::printError("Updated Web Profile", "Web Profile", $webProfile->getId(), $webProfile, $ex); exit(1); } ResultPrinter::printResult("Updated Web Profile", "Web Profile", $updatedWebProfile->getId(), $webProfile, $updatedWebProfile);