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:
@@ -85,10 +85,12 @@ try {
|
||||
$payment->create($apiContext, $clientMetadataId);
|
||||
|
||||
} catch (Exception $ex) {
|
||||
ResultPrinter::printError("Future Payment", "Payment", null, $request, $ex);
|
||||
// NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
|
||||
ResultPrinter::printError("Future Payment", "Payment", null, $request, $ex);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
ResultPrinter::printResult("Future Payment", "Payment", $payment->getId(), $request, $payment);
|
||||
// NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
|
||||
ResultPrinter::printResult("Future Payment", "Payment", $payment->getId(), $request, $payment);
|
||||
|
||||
return $payment;
|
||||
|
||||
Reference in New Issue
Block a user