-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
207 lines (174 loc) · 5.66 KB
/
index.php
File metadata and controls
207 lines (174 loc) · 5.66 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,700,600' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/reset.css"> <!-- CSS reset -->
<link rel="stylesheet" href="css/style.css"> <!-- Resource style -->
<script src="js/modernizr.js"></script> <!-- Modernizr -->
<title>Animated Sign Up Flow | CodyHouse</title>
</head>
<body>
<header class="cd-main-header">
<h1>Animated Sign Up Flow</h1>
</header>
<ul class="cd-pricing">
<li>
<header class="cd-pricing-header">
<h2>Basic</h2>
<div class="cd-price">
<span>$9.99</span>
<span>month</span>
</div>
</header> <!-- .cd-pricing-header -->
<div class="cd-pricing-features">
<ul>
<li class="available"><em>Feature 1</em></li>
<li><em>Feature 2</em></li>
<li><em>Feature 3</em></li>
<li><em>Feature 4</em></li>
</ul>
</div> <!-- .cd-pricing-features -->
<footer class="cd-pricing-footer">
<a href="#0">Select</a>
</footer> <!-- .cd-pricing-footer -->
</li>
<li>
<header class="cd-pricing-header">
<h2>Popular</h2>
<div class="cd-price">
<span>$19.99</span>
<span>month</span>
</div>
</header> <!-- .cd-pricing-header -->
<div class="cd-pricing-features">
<ul>
<li class="available"><em>Feature 1</em></li>
<li class="available"><em>Feature 2</em></li>
<li><em>Feature 3</em></li>
<li><em>Feature 4</em></li>
</ul>
</div> <!-- .cd-pricing-features -->
<footer class="cd-pricing-footer">
<a href="#0">Select</a>
</footer> <!-- .cd-pricing-footer -->
</li>
<li>
<header class="cd-pricing-header">
<h2>Premier</h2>
<div class="cd-price">
<span>$29.99</span>
<span>month</span>
</div>
</header> <!-- .cd-pricing-header -->
<div class="cd-pricing-features">
<ul>
<li class="available"><em>Feature 1</em></li>
<li class="available"><em>Feature 2</em></li>
<li class="available"><em>Feature 3</em></li>
<li class="available"><em>Feature 4</em></li>
</ul>
</div> <!-- .cd-pricing-features -->
<footer class="cd-pricing-footer">
<a href="#0">Select</a>
</footer> <!-- .cd-pricing-footer -->
</li>
</ul> <!-- .cd-pricing -->
<div class="cd-form">
<div class="cd-plan-info">
<!-- content will be loaded using jQuery - according to the selected plan -->
</div>
<div class="cd-more-info">
<h3>Need help?</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
</div>
<form action="pay.php" method="POST">
<fieldset>
<legend>Account Info</legend>
<div class="half-width">
<label for="userName">Name</label>
<input type="text" id="userName" name="userName">
</div>
<div class="half-width">
<label for="userEmail">Email</label>
<input type="email" id="userEmail" name="userEmail">
</div>
<div class="half-width">
<label for="userPassword">Password</label>
<input type="password" id="userPassword" name="userPassword">
</div>
<div class="half-width">
<label for="userPasswordRepeat">Repeat Password</label>
<input type="password" id="userPasswordRepeat" name="userPasswordRepeat">
</div>
</fieldset>
<fieldset>
<legend>Payment Method</legend>
<div>
<ul class="cd-payment-gateways">
<li>
<input type="radio" onclick="enableButton(true)" name="type" id="paypal" value="PAYPAL">
<label for="paypal">Paypal</label>
</li>
<li>
<input type="radio" onclick="enableButton(false)" name="type" id="card" value="TOKEN" checked>
<label for="card">Credit Card</label>
</li>
<li>
<input type="radio" onclick="enableButton(true)" name="type" id="eps" value="EPS">
<label for="eps">EPS</label>
</li>
<li>
<input type="radio" onclick="enableButton(true)" name="type" id="sofort" value="SOFORT">
<label for="sofort">Sofort</label>
</li>
<li>
<input type="radio" onclick="enableButton(true)" name="type" id="paypage" value="PAYPAGE">
<label for="paypage">Payment Page</label>
</li>
</ul> <!-- .cd-payment-gateways -->
</div>
<div class="cd-credit-card">
<div>
<?php
require("bootstrap.php");
use Mpay24\Mpay24;
$mpay24 = new Mpay24();
// Each Line is Optional so only add the lines that you need
$tokenizerConfig = array(
"language" => "DE",
);
$tokenizer = $mpay24->token("CC", $tokenizerConfig);
?>
<iframe src="<?php echo $tokenizer->getLocation(); ?>" frameBorder="0" style="width: 80%;"></iframe>
<input name="token" type="hidden" value="<? echo $tokenizer->getToken(); ?>" />
<script>
window.addEventListener("message", checkValid, false);
function checkValid(form) {
var data = JSON.parse(form.data);
if (data.valid === "true") {
document.getElementById("paybutton").disabled=false;
}
}
function enableButton(enabled) {
document.getElementById("paybutton").disabled=!enabled;
}
</script>
</div>
</div> <!-- .cd-credit-card -->
</fieldset>
<fieldset>
<div>
<input id="paybutton" type="submit" value="Pay" disabled>
</div>
</fieldset>
</form>
<a href="#0" class="cd-close"></a>
</div> <!-- .cd-form -->
<div class="cd-overlay"></div> <!-- shadow layer -->
<script src="js/jquery-2.1.4.js"></script>
<script src="js/velocity.min.js"></script>
<script src="js/main.js"></script> <!-- Resource jQuery -->
</body>
</html>