-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
336 lines (309 loc) · 15.5 KB
/
index.html
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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Assinaturas Demo</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="css/assinaturas-demo.css" rel="stylesheet">
<script type="text/javascript" src="https://s3.amazonaws.com/assets-sandbox.moip.com.br/assinaturas/moip-assinaturas.min.js"></script>
<script type="text/javascript" src="//code.jquery.com/jquery-1.12.3.min.js"></script>
<script type="text/javascript" src="js/assinaturas-demo.js"></script>
</head>
<body>
<div class="container-narrow">
<div class="masthead">
<ul class="nav nav-pills pull-right">
<li><a href="http://moiplabs.github.com/assinaturas-docs">Documentação do JavaScript</a></li>
</ul>
<h3 class="muted">moip-assinaturas.min.js</h3>
</div>
<div class="jumbotron">
<h1>Moip Assinaturas</h1>
<p class="lead">Checkout de exemplo moip-assinaturas.min.js</p>
<a href="https://github.com/moiplabs/assinaturas-js-demo/archive/master.zip" class="btn btn-large"><i class="icon-download-alt"></i> Download</a>
</div>
<div class="alert alert-error hide" id="to-show">
<ul id="erros">
</ul>
</div>
<form class="form-horizontal" method="post">
<div class="alert alert-info">
<input type="text" class="input-xlarge" placeholder="TOKEN" id="token">
<input type="text" class="input-xlarge" placeholder="Código do Plano" id="plan_code">
</div>
<div class="tabbable"> <!-- Only required for left/right tabs -->
<ul class="nav nav-tabs">
<li class="active"><a href="#tab1" data-toggle="tab">Criar Assinatura</a></li>
<li><a href="#tab3" data-toggle="tab">Criar assinatura com Cliente já existente</a></li>
<li><a href="#tab2" data-toggle="tab">Atualizar cartão de crédito</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="tab1">
<legend>Dados do assinante (<a href="#" id="carregar_dados">Preencher Formulário</a>)</legend>
<div class="control-group">
<label class="control-label" for="fullname">Nome</label>
<div class="controls">
<input id="fullname" maxlength="150" name="fullname" placeholder="Seu nome completo" type="text">
</div>
</div>
<div class="control-group">
<label class="control-label" for="email">E-mail</label>
<div class="controls">
<input id="email" maxlength="65" name="email" placeholder="Seu e-mail" type="text">
</div>
</div>
<div class="control-group">
<label class="control-label" for="cpf">CPF</label>
<div class="controls">
<input id="cpf" maxlength="11" name="cpf" placeholder="Somente números" type="text">
</div>
</div>
<div class="control-group">
<label class="control-label" for="phone">DDD / Telefone</label>
<div class="controls">
<input class="input-mini" id="ddd" maxlength="2" name="ddd" placeholder="00" type="text">
<input class="input-small" id="phone" maxlength="9" name="phone" placeholder="00000000" type="text">
</div>
</div>
<div class="control-group">
<label class="control-label" for="birthdate">Nascimento</label>
<div class="controls">
<input class="input-mini" id="birthdate_day" maxlength="2" name="birthdate_day" placeholder="DD" type="text">
<input class="input-mini" id="birthdate_month" maxlength="2" name="birthdate_month" placeholder="MM" type="text">
<input class="input-mini" id="birthdate_year" maxlength="4" name="birthdate_year" placeholder="AAAA" type="text">
</div>
</div>
<div class="control-group">
<label class="control-label" for="rua">Rua</label>
<div class="controls">
<input id="rua" maxlength="45" name="rua" placeholder="Rua, Avenida, Praça..." type="text">
</div>
</div>
<div class="control-group">
<label class="control-label" for="numero">Número</label>
<div class="controls">
<input class="input-mini" id="numero" maxlength="20" name="numero" placeholder="Número" type="text">
</div>
</div>
<div class="control-group">
<label class="control-label" for="complemento">Complemento</label>
<div class="controls">
<input class="input-mini" id="complemento" maxlength="45" name="complemento" placeholder="Complemento" type="text">
</div>
</div>
<div class="control-group">
<label class="control-label" for="bairro">Bairro</label>
<div class="controls">
<input id="bairro" maxlength="45" name="bairro" placeholder="Bairro" type="text">
</div>
</div>
<div class="control-group">
<label class="control-label" for="cep">CEP</label>
<div class="controls">
<input class="input-small" id="cep" maxlength="9" name="cep" placeholder="00000-000" type="text">
</div>
</div>
<div class="control-group">
<label class="control-label" for="estado">Estado</label>
<div class="controls">
<select name="estado" id="estado">
<option selected="" value="">Selecione o Estado (UF)</option>
<option value="Acre">Acre</option>
<option value="Alagoas">Alagoas</option>
<option value="Amapá">Amapá</option>
<option value="Amazonas">Amazonas</option>
<option value="Bahia">Bahia</option>
<option value="Ceará">Ceará</option>
<option value="Distrito Federal">Distrito Federal</option>
<option value="Espírito Santo">Espírito Santo</option>
<option value="Goiás">Goiás</option>
<option value="Maranhão">Maranhão</option>
<option value="Mato Grosso">Mato Grosso</option>
<option value="Mato Grosso do Sul">Mato Grosso do Sul</option>
<option value="Minas Gerais">Minas Gerais</option>
<option value="Pará">Pará</option>
<option value="Paraíba">Paraíba</option>
<option value="Paraná">Paraná</option>
<option value="Pernambuco">Pernambuco</option>
<option value="Piauí">Piauí</option>
<option value="Rio de Janeiro">Rio de Janeiro</option>
<option value="Rio Grande do Sul">Rio Grande do Sul</option>
<option value="Rio Grande do Norte">Rio Grande do Norte</option>
<option value="Rondônia">Rondônia</option>
<option value="Roraima">Roraima</option>
<option value="Santa Catarina">Santa Catarina</option>
<option value="São Paulo" selected="selected">São Paulo</option>
<option value="Sergipe">Sergipe</option>
<option value="Tocantins">Tocantins</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label" for="cidade">Cidade</label>
<div class="controls">
<input id="cidade" maxlength="32" name="cidade" placeholder="Cidade" type="text">
</div>
</div>
<legend>Informações de Cobrança</legend>
<div class="control-group">
<label class="control-label" for="holder_name">Nome do Portador</label>
<div class="controls">
<input id="holder_name" maxlength="45" name="holder_name" placeholder="Nome escrito no cartão" type="text">
</div>
</div>
<div class="control-group">
<label class="control-label" for="credit_card">Número Cartão de Credito</label>
<div class="controls">
<input id="credit_card" maxlength="16" name="credit_card" placeholder="XXXXXXXXXXXX1234" type="text">
</div>
</div>
<div class="control-group">
<label class="control-label" for="credit_card">Data de Expiração</label>
<div class="controls">
<select name="expiration_month" id="expiration_month" class="input-mini">
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12" selected="selected">12</option>
</select> / <select name="expiration_year" id="expiration_year" class="input-small">
<option value="13">2013</option>
<option value="14">2014</option>
<option value="15">2015</option>
<option value="16">2016</option>
<option value="17">2017</option>
<option value="18">2018</option>
<option value="19">2019</option>
<option value="20" selected="selected">2020</option>
</select>
</div>
</div>
<div class="form-actions">
<a href="#" class="btn btn-large btn-primary" id="assinar">Assinar</a>
</div>
</form>
</div>
<div class="tab-pane" id="tab2">
<legend>Atualizar cartão de cliente (<a href="#" id="carregar_dados_novo_cartao">Preencher dados de cartão</a>)</legend>
<div class="control-group">
<label class="control-label" for="customer_code">Código do cliente</label>
<div class="controls">
<input id="customer_code" maxlength="150" name="customer_code" placeholder="Código do seu cliente" type="text">
</div>
</div>
<legend>Novo cartão</legend>
<form class="form-horizontal" method="post">
<div class="control-group">
<label class="control-label" for="holder_name">Nome do Portador</label>
<div class="controls">
<input id="new_holder_name" maxlength="45" name="new_holder_name" placeholder="Nome escrito no cartão" type="text">
</div>
</div>
<div class="control-group">
<label class="control-label" for="credit_card">Número Cartão de Credito</label>
<div class="controls">
<input id="new_credit_card" maxlength="16" name="new_credit_card" placeholder="XXXXXXXXXXXX1234" type="text">
</div>
</div>
<div class="control-group">
<label class="control-label" for="credit_card">Data de Expiração</label>
<div class="controls">
<select name="new_expiration_month" id="new_expiration_month" class="input-mini">
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12" selected="selected">12</option>
</select> / <select name="new_expiration_year" id="new_expiration_year" class="input-small">
<option value="13">2013</option>
<option value="14">2014</option>
<option value="15">2015</option>
<option value="16">2016</option>
<option value="17">2017</option>
<option value="18">2018</option>
<option value="19">2019</option>
<option value="20" selected="selected">2020</option>
</select>
</div>
</div>
<div class="form-actions">
<a href="#" class="btn btn-large btn-primary" id="atualizar">Atualizar</a>
</div>
</form>
</div>
<!-- Criar assinatura com cliente já existente -->
<div class="tab-pane" id="tab3">
<legend>Criar assinatura com Cliente já existente (<a href="#" id="carregar_dados_novo_cartao">Preencher dados de cartão</a>)</legend>
<div class="control-group">
<label class="control-label" for="customer_code">Código do cliente</label>
<div class="controls">
<input id="existent_customer_code" maxlength="150" name="customer_code" placeholder="Código do seu cliente" type="text">
</div>
</div>
<legend>Novo cartão</legend>
<form class="form-horizontal" method="post">
<div class="control-group">
<label class="control-label" for="holder_name">Nome do Portador</label>
<div class="controls">
<input id="new_holder_name" maxlength="45" name="new_holder_name" placeholder="Nome escrito no cartão" type="text">
</div>
</div>
<div class="control-group">
<label class="control-label" for="credit_card">Número Cartão de Credito</label>
<div class="controls">
<input id="new_credit_card" maxlength="16" name="new_credit_card" placeholder="XXXXXXXXXXXX1234" type="text">
</div>
</div>
<div class="control-group">
<label class="control-label" for="credit_card">Data de Expiração</label>
<div class="controls">
<select name="new_expiration_month" id="new_expiration_month" class="input-mini">
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12" selected="selected">12</option>
</select> / <select name="new_expiration_year" id="new_expiration_year" class="input-small">
<option value="14">2014</option>
<option value="15">2015</option>
<option value="16">2016</option>
<option value="17">2017</option>
<option value="18">2018</option>
<option value="19">2019</option>
<option value="20" selected="selected">2020</option>
</select>
</div>
</div>
<div class="form-actions">
<a href="#" class="btn btn-large btn-primary" id="subscribe_with_customer">Assinar</a>
</div>
</form>
</div>
<!-- Fim -->
</div>
</div>
</body>
<script type="text/javascript" src="js/bootstrap.js"></script>
</html>