PATH:
home
/
letacommog
/
letaweb
/
admin
/
classes
/
payments
/
paypal-merchant-sdk
/
samples
/
Permissions
<?php function getDetailedExceptionMessage($ex) { if ($ex instanceof PPConnectionException) { return 'Error connecting to '.$ex->getUrl(); } elseif ($ex instanceof PPConfigurationException) { return "Error at $ex->getLine() in $ex->getFile()"; } elseif ($ex instanceof PPInvalidCredentialException || $x instanceof PPMissingCredentialException) { return $ex->errorMessage(); } return ''; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <body> <br /> <div id="wrapper"> <img src="https://devtools-paypal.com/image/bdg_payments_by_pp_2line.png"/> <h3>SDK Exception</h3> <?php if (isset($ex) && $ex instanceof Exception) { ?> <table> <tr> <td>Type</td> <td><?php echo get_class($ex)?></td> </tr> <tr> <td>Message</td> <td><?php echo $ex->getMessage(); ?></td> </tr> <tr> <td>Detailed message</td> <td><?php echo getDetailedExceptionMessage($ex); ?></td> </tr> <?php }?> </table> <br /> <a href="index.php">Home</a> </div> </body> </html>
[+]
..
[-] RequestPermissionsReceipt.php
[edit]
[-] GetAccessToken.php
[edit]
[-] Permission.html.php
[edit]
[-] RequestPermissions.php
[edit]
[-] README.md
[edit]
[-] Error.php
[edit]
[-] index.php
[edit]
[-] APIError.php
[edit]
[-] GetAccessTokenReceipt.php
[edit]
[-] ShowAllResponse.php
[edit]