forked from LiveCarta/PayPal-PHP-SDK
Sample ResultPrinter Not to be Used
- Comment everywhere the ResultPrinter is used to not use outside sample
This commit is contained in:
@@ -29,8 +29,10 @@ try {
|
||||
$userInfo = OpenIdUserinfo::getUserinfo($params, $apiContext);
|
||||
|
||||
} catch (Exception $ex) {
|
||||
ResultPrinter::printError("User Information", "User Info", null, $params, $ex);
|
||||
// NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
|
||||
ResultPrinter::printError("User Information", "User Info", null, $params, $ex);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
ResultPrinter::printResult("User Information", "User Info", $userInfo->getUserId(), $params, $userInfo);
|
||||
// NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
|
||||
ResultPrinter::printResult("User Information", "User Info", $userInfo->getUserId(), $params, $userInfo);
|
||||
|
||||
Reference in New Issue
Block a user