-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex-card.html
116 lines (113 loc) · 4.25 KB
/
index-card.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
/>
<link
rel="shortcut icon"
href="https://culqi.com/assets/images/brand/brand.svg"
type="image/x-icon"
/>
<title>CULQI 3DS DEMO</title>
</head>
<body>
<div class="container my-4">
<h1>CHECKOUT V4<br />(Tarjetas + 3DS)</h1>
<label>CREACION CARD</label><br />
<p id="loading" style="display: none">CARGANDO...</p>
<p id="payment-success" style="display: none">PAGO EXITOSO</p>
<p id="payment-fail" style="display: none; color: 'red'">PAGO FALLIDO</p>
<p id="authentication-fail" style="display: none; color: 'red'">
AUTENTICACIÓN FALLIDA
</p>
<p id="customer-creation-fail" style="display: none; color: 'red'">
CREACIÓN DE CLIENTE FALLO
</p>
</div>
<!----- -->
<div class="container" id="containerForm">
<div class="card-body">
<div class="row">
<!--GUARDAR CLIENTE:-->
<div class="col-md-6" id="customer-container">
<div>
<h3>Registrar Cliente</h3>
<form>
<div class="form-group">
<label>address:</label>
<input type="text" class="form-control" id="address" />
</div>
<div class="form-group">
<label>address_city:</label>
<input class="form-control" id="address_c" />
</div>
<div class="form-group">
<label>email:</label>
<input class="form-control" id="email" />
</div>
<div class="form-group">
<label>first_name:</label>
<input class="form-control" id="f_name" />
</div>
<div class="form-group">
<label>last_name:</label>
<input class="form-control" id="l_name" />
</div>
<div class="form-group">
<label>phone_number:</label>
<input class="form-control" id="phone" maxlength="9" />
</div>
<a id="crearCustomer" class="btn btn-primary btn-lg" href="#"
>Crear Cliente</a
>
<a
id="loadCustomerExampleData"
class="btn btn-primary btn-lg"
href="#"
>Cargar datos de ejemplo</a
>
</form>
<br /><br />
<div class="panel panel-default" id="response-panel">
<div class="panel-heading">Respuesta</div>
<div class="panel-body" id="response_customer"></div>
</div>
</div>
</div>
<div class="col-md-6">
<h3 id="createOrPayBtn">Guarda tu tarjeta</h3>
<label id="idCustomerLbl">ID cliente:</label>
<input
id="idCustomer"
class="form-control mb-4"
type="text"
placeholder="Ingresar id cliente (cli_test_xxxxxxxx)"
value=""
/>
<a id="crearCard" class="btn btn-primary btn-lg" href="#"
>Crear Tarjeta</a
><br /><br />
<div class="panel panel-default" id="response-panel">
<div class="panel-heading">Respuesta</div>
<div class="panel-body" id="response_card"></div>
</div>
</div>
</div>
</div>
</div>
<script src="https://3ds.culqi.com" defer></script>
<script src="https://checkout.culqi.com/js/v4"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<!--script src="/js/config/checkout_card.js" type="module"></script-->
<script>
const paymenType = "card";
</script>
<script src="./main.js" type="module"></script>
</body>
</html>