Files
ms1inscription-v5/paypal_prod/api/Permissions/APIError.php
2026-05-13 09:43:32 -04:00

59 lines
1.2 KiB
PHP

<?php
/*************************************************
APIError.php
Displays error parameters.
*************************************************/
session_start();
$response=$_SESSION['reshash'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<body>
<div id="request_form">
<h3>
<b>The PayPal API has returned an error!</b>
</h3>
<table width="280">
<?php //it will print if any URL errors
if(isset($_SESSION['curl_error_no'])) {
$errorCode= $_SESSION['curl_error_no'] ;
$errorMessage=$_SESSION['curl_error_msg'] ;
?>
<tr>
<td class="thinfield">Error Number:</td>
<td><?php $errorCode ?></td>
</tr>
<tr>
<td>Error Message:</td>
<td><?php $errorMessage ?></td>
</tr>
</table>
<?php } else {
/* If there is no URL Errors, Construct the HTML page with
Response Error parameters.
*/
?>
<font size=2 color=black face=Verdana><b></b> </font> <b> PayPal API
Error</b><br></br>
<table width=400>
<?php
require 'ShowAllResponse.php';
?>
</table>
<?php
}// end else
session_unset();
?>
</div>
</body>
</html>