-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathSetExpressCheckout.php
More file actions
162 lines (138 loc) · 4.2 KB
/
SetExpressCheckout.php
File metadata and controls
162 lines (138 loc) · 4.2 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<?php
/***********************************************************
SetExpressCheckout.php
This is the main web page for the Express Checkout sample.
The page allows the user to enter amount and currency type.
It also accept input variable paymentType which becomes the
value of the PAYMENTACTION parameter.
When the user clicks the Submit button, ReviewOrder.php is
called.
Called by index.html.
Calls ReviewOrder.php.
***********************************************************/
// clearing the session before starting new API Call
session_unset();
$paymentType = $_GET['paymentType'];
?>
<html>
<head>
<title>PayPal NVP SDK - Simplified Shopping Cart Page for a Spiritual Store</title>
<link href="sdk.css" rel="stylesheet" type="text/css" />
</head>
<body>
<center>
<form action="ReviewOrder.php" method="POST">
<input type=hidden name=paymentType value='<?php echo $paymentType?>' >
<table class="api">
<tr>
<td colspan="2" class="header">
Step 1: SetExpressCheckout
</td>
</tr>
<tr>
<td colspan="2">
<center></br>
You must be logged into <a href="https://developer.paypal.com" id="PayPalDeveloperCentralLink" target="_blank">Developer
Central</br> </a> </br>
</center>
</td>
</tr>
</table>
<table>
<th>Shopping cart Products:</th>
<tr>
<td class="field">
CDs:</td>
<td>
<input type="text" size="30" maxlength="32" name="L_NAME1" value="Path To Nirvana" /></td>
<td class="field"> Amount: </td>
<td>
<input type="text" name="L_AMT1" size="5" maxlength="32" value="39.00" /> </td>
<td class="field">
Quantity: </td>
<td>
<input type="text" size="3" maxlength="32" name="L_QTY1" value="2" /> </td>
</tr>
<tr>
<td class="field">
Books:</td>
<td>
<input type="text" size="30" maxlength="32" name="L_NAME0" value="Know Thyself" /> </td>
<td class="field">
Amount: <br /> </td>
<td>
<input type="text" name="L_AMT0" size="5" maxlength="32" value="9.00" /> </td>
<td class="field">
Quantity: </td>
<td> <input type="text" size="3" maxlength="32" name="L_QTY0" value="2" /> </td>
</tr>
<tr>
<td class="field">
Currency: <br /> </td>
<td>
<select name="currencyCodeType">
<option value="USD">USD</option>
<option value="GBP">GBP</option>
<option value="EUR">EUR</option>
<option value="JPY">JPY</option>
<option value="CAD">CAD</option>
<option value="AUD">AUD</option>
</select> </td>
</tr>
<tr>
<td class="field">
Ship To:
</td>
<td> </td>
</tr>
<tr>
<td class="field">
Name:</td>
<td>
<input type="text" size="30" maxlength="32" name="PERSONNAME" value="True Seeker" /></td>
</tr>
<tr>
<td class="field">
Street:</td>
<td>
<input type="text" size="30" maxlength="32" name="SHIPTOSTREET" value="111, Bliss Ave" /></td>
</tr>
<tr>
<td class="field">
City:</td>
<td>
<input type="text" size="30" maxlength="32" name="SHIPTOCITY" value="San Jose" /></td>
</tr>
<tr>
<td class="field">
State:</td>
<td>
<input type="text" size="30" maxlength="32" name="SHIPTOSTATE" value="CA" /></td>
</tr>
<tr>
<td class="field">
Country:</td>
<td>
<input type="text" size="30" maxlength="32" name="SHIPTOCOUNTRYCODE" value="US" /></td>
</tr>
<tr>
<td class="field">
Zip Code:</td>
<td>
<input type="text" size="30" maxlength="32" name="SHIPTOZIP" value="95128" /></td>
</tr>
<tr>
<td>
<input type="image" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" />
</td>
<td colspan=6>
<br />
<br />
Save time. Pay securely without sharing your financial information.
</td>
</tr>
</table>
</center>
<a class="home" id="CallsLink" href="index.html">Home</a>
</body>
</html>