-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathTransactionSearch.php
More file actions
92 lines (84 loc) · 2.51 KB
/
TransactionSearch.php
File metadata and controls
92 lines (84 loc) · 2.51 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
81
82
83
84
85
86
87
88
89
90
91
92
<!--
TransactionSearch.html
This is the main page for TransactionSearch sample.
This page allow the user to enter the required
parameters for TransactionSearch API call and a Submit button
that calls TransactionSearchResults.php.
Called by index.html.
Calls TransactionSearchResults.php.
-->
<?php
/**
* Default startDateStr to yesterday date and endtDateStr to today date in mm/dd/yyyy format
*/
if (isset($_POST['startDateStr'])) {
$start_date_str = $_POST['startDateStr'];
} else {
$yesterdayDate = time()-86400;
$start_date_str = date('m/d/Y', $yesterdayDate);
}
if (isset($_POST['endDateStr'])) {
$end_date_str = $_POST['endDateStr'];
} else {
$currentDate = time();
$end_date_str = date('m/d/Y', $currentDate);
}
?>
<html>
<head>
<title>PayPal PHP SDK - TransactionSearch API</title>
<link href="sdk.css" rel="stylesheet" type="text/css" />
</head>
<body>
<center>
<form action="TransactionSearchResults.php">
<span id=apiheader>TransactionSearch</span>
<table class="api">
<tr>
<td class="field">
StartDate:</td>
<td>
<input type="text" name="startDateStr" maxlength="20" size="10" value="<?php echo $start_date_str ?>" />
</td>
<td>(Required)</td>
</tr>
<tr>
<td>
</td>
<td>
MM/DD/YYYY
</td>
</tr>
<tr>
<td class="field">
EndDate:</td>
<td>
<input type="text" name="endDateStr" maxlength="20" size="10" value="<?php echo $end_date_str ?>" />
</td>
</tr>
<tr>
<td>
</td>
<td>
MM/DD/YYYY
</td>
</tr>
<tr>
<td class="field">
TransactionID:</td>
<td>
<input type="text" name="transactionID" /></td>
</tr>
<tr>
<td class="field">
</td>
<td>
<br />
<input type="Submit" value="Submit" /></td>
</tr>
</table>
</form>
</center>
<a class="home" id="CallsLink" href="index.html">Home</a>
</body>
</html>