/
SetExpressCheckout.cfm
150 lines (138 loc) · 4.12 KB
/
SetExpressCheckout.cfm
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
<!--
*************************************************
SetExpressCheckout.cfm
This page has necessary inputs to perform setExpressCheckout transaction.
When clicking of submit button, action will submit reviewOrder.cfm page
there retrieving all form values and pass into doHttppost function.
*************************************************
-->
<cfoutput>
<head>
<title>PayPal CF SDK - ExpressCheckout API</title>
<link href="sdk.css" rel="stylesheet" type="text/css" />
</head>
<body>
<CFFORM ACTION="ReviewOrder.cfm" METHOD="post" >
<center>
<form action="ReviewOrder.cfm" method="POST">
<input type="hidden" name="paymentType" value="#URL.paymentaction#">
<span id="apiheader">Step 1: SetExpressCheckout</span>
<table class="api">
<tr>
<td colspan="2">
<br>
<center>
<center>
You must be logged into <a href="https://developer.paypal.com" target="_blank">Developer
Central</a> <br /> <br />
</center>
</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" id="L_NAME1" value="Path To Nirvana"></td>
<td class="field"> Amount: </td>
<td>
<input type="text" name="L_AMT1" size="5" maxlength="32" id="L_AMT1" value="39.00"> </td>
<td class="field">
Quantity: </td>
<td>
<input type="text" size="3" maxlength="32" name="L_QTY1" id="L_QTY1" value="2"> </td>
</tr>
<tr>
<td class="field">
Books:</td>
<td>
<input type="text" size="30" maxlength="32" name="L_NAME0" id="L_NAME0" value="Know Thyself"> </td>
<td class="field">
Amount: <br /> </td>
<td>
<input type="text" name="L_AMT0" size="5" maxlength="32" id="L_AMT0" value="9.00"> </td>
<td class="field">
Quantity: </td>
<td> <input type="text" size="3" maxlength="32" name="L_QTY0" id="L_QTY0" value="2"> </td>
</tr>
<tr>
<td class="field">
Currency: <br /> </td>
<td>
<select name="currencyCodeType" id="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>
</table>
<br/><br/>
<table>
<th>Ship To:</th>
<tr>
<td class="field">
Name:</td>
<td>
<input type="text" size="30" maxlength="32" name="NAME" value="True Seeker" id="NAME"></td>
</tr>
<tr>
<td class="field">
Street:</td>
<td>
<input type="text" size="30" maxlength="32" name="SHIPTOSTREET" id="SHIPTOSTREET" value="111, Bliss Ave"></td>
</tr>
<tr>
<td class="field">
City:</td>
<td>
<input type="text" size="30" maxlength="32" name="SHIPTOCITY" id="SHIPTOCITY" value="San Jose"></td>
</tr>
<tr>
<td class="field">
State:</td>
<td>
<input type="text" size="30" maxlength="32" name="SHIPTOSTATE" id="SHIPTOSTATE" value="CA"></td>
</tr>
<tr>
<td class="field">
Country:</td>
<td>
<input type="text" size="30" maxlength="32" name="SHIPTOCOUNTRYCODE" id="SHIPTOCOUNTRYCODE" value="US"></td>
</tr>
<tr>
<td class="field">
Zip Code:</td>
<td>
<input type="text" size="30" maxlength="32" name="SHIPTOZIP" id="SHIPTOZIP" runat="server" value="95128"></td>
</tr>
<tr>
<td>
<br>
<br>
<input type="image" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif"
id="submit" runat="server">
</td>
<td>
<br>
<br>
Save time. Pay securely without sharing your financial information.
</td>
</tr>
</table>
</center>
<!--
Using this hidden variable the system can identify whether it is Authorization, Sale or Order
This paymentaction coming from Calls.html
-->
<CFINPUT TYPE="hidden" NAME="PAYMENTACTION" VALUE="#URL.paymentaction#">
<a class="home" href="index.html">Home</a>
</CFFORM>
</body>
</html>
</cfoutput>