-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathAPIError.php
More file actions
80 lines (61 loc) · 1.52 KB
/
APIError.php
File metadata and controls
80 lines (61 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
/*************************************************
APIError.php
Displays error parameters.
Called by DoDirectPaymentReceipt.php, TransactionDetails.php,
GetExpressCheckoutDetails.php and DoExpressCheckoutPayment.php.
*************************************************/
session_start();
$resArray=$_SESSION['reshash'];
?>
<html>
<head>
<title>PayPal API Error</title>
<link href="sdk.css" rel="stylesheet" type="text/css"/>
</head>
<body alink=#0000FF vlink=#0000FF>
<center>
<table width="280">
<tr>
<td colspan="2" class="header">The PayPal API has returned an error!</td>
</tr>
<?php //it will print if any URL errors
if(isset($_SESSION['curl_error_no'])) {
$errorCode= $_SESSION['curl_error_no'] ;
$errorMessage=$_SESSION['curl_error_msg'] ;
session_unset();
?>
<tr>
<td>Error Number:</td>
<td><?php echo $errorCode; ?></td>
</tr>
<tr>
<td>Error Message:</td>
<td><?php echo $errorMessage; ?></td>
</tr>
</center>
</table>
<?php } else {
/* If there is no URL Errors, Construct the HTML page with
Response Error parameters.
*/
?>
<center>
<font size=2 color=black face=Verdana><b></b></font>
<br><br>
<b> PayPal API Error</b><br><br>
<table width = 400>
<?php
require 'ShowAllResponse.php';
?>
</table>
</center>
<?php
}// end else
?>
</center>
</table>
<br>
<a class="home" id="CallsLink" href="index.html"><font color=blue><B>Home<B><font></a>
</body>
</html>