-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
196 lines (172 loc) · 7.77 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
<!--
30845004
-->
<html>
<head>
<title>POINT OF SALE | ACME (Exam)</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
<link rel="stylesheet" href="assets/style/acme.css">
</head>
<body>
<div>
<img width="100px" style="display:inline;" src="https://www.mercadopago.com/org-img/Manual/ManualMP/imgs/isologoHorizontal.png">
<h1>POINT OF SALE | ACME</h1>
<span>Mercado Pago inStore QR Seller. Attended Mode. Exam version 1.0</span>
</div>
<br/>
<div id="accordion">
<!-- Create New Store -->
<div class="card">
<div class="card-header" id="headingOne">
<h5 class="mb-0">
<button class="btn btn-link" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
CREATE NEW STORE
</button>
</h5>
</div>
<div id="collapseOne" class="collapse collapsed" aria-labelledby="headingOne" data-parent="#accordion">
<div class="card-body">
<table class="table table-striped">
<tbody>
<tr>
<th><label for="storeName">Store Name:</label></th>
<td><input type="text" placeholder="Store name" id="storeName"></td>
</tr>
<tr><th>
<label for="streetName">Street Name:</label></th><td><input type="text" placeholder="Street name" id="streetName"></td></tr>
<tr><th><label for="streetNumber">Street Number:</label></th><td><input type="text" placeholder="Street Number" id="streetNumber"></td></tr>
<tr><th><label for="country">Country:</label></th><td><select class="form-control" id="country">
</select></td></tr>
<tr><th><label for="states">State:</label></th><td><select class="form-control" id="states">
<option>Select region...</option>
</select></td></tr>
<tr><th><label for="cities">City:</label></th><td><select class="form-control" id="cities">
<option>Select city...</option>
</select></td></tr>
<tr><th><label for="latitude">Latitude:</label></th><td><input type="text" placeholder="Latitude" id="latitude"></td></tr>
<tr><th><label for="longitude">Longitude:</label></th><td><input type="text" placeholder="Longitude" id="longitude"></td></tr>
<tr><th><label for="addressReference">Address Reference:</label></th><td><input type="text" placeholder="Address Reference" id="addressReference"></td></tr>
<tr><th><label for="externalStoreID">External Store ID:</label></th><td><input type="text" placeholder="External ID" id="externalStoreID"></td></tr>
</tbody>
</table>
<button type="button" class="btn btn-primary" id="createStore">
Create Store
</button>
<br/><br/>
Q1) Store creation response:<br/>
<textarea id="responseStore"></textarea>
<br/>
</div>
</div>
</div>
<!-- Create New POS/QR -->
<div class="card">
<div class="card-header" id="headingTwo">
<h5 class="mb-0">
<button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
CREATE NEW POS/QR
</button>
</h5>
</div>
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordion">
<div class="card-body">
<label for="posName">POS Name:</label><input type="text" placeholder="POS Name" id="posName"><br/>
<label for="externalStoreIDPOS">External Store ID:</label><input type="text" placeholder="External Store ID" id="externalStoreIDPOS"><br/>
<label for="externalPOSID">External POS ID:</label><input type="text" placeholder="External ID" id="externalPOSID"><br/>
<br/>
<button type="button" class="btn btn-primary" id="createPOS">
Create POS/QR
</button>
<br/><br/>
Q2) POS creation response:<br/>
<textarea id="responsePOS"></textarea>
<br/>
</div>
</div>
</div>
<!-- Order and payment -->
<div class="card">
<div class="card-header" id="headingThree">
<h5 class="mb-0">
<button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
ORDER AND PAYMENT
</button>
</h5>
</div>
<div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-parent="#accordion">
<div class="card-body">
<label for="store_id">Store_ID:</label><input type="text" id="store_id" placeholder="Store_ID">
<label for="external_id">External_POS_ID:</label><input type="text" id="external_id" placeholder="External_ID">
<label for="external_reference">External_Reference:</label><input type="text" id="external_reference" placeholder="External_Reference">
<br/>
<div class=""><h3>Order:<h3></div>
<br/>
<div class="">
<table class="table table-striped">
<thead>
<tr>
<th scope="col">SKU</th>
<th scope="col">Photo</th>
<th scope="col">Product</th>
<th scope="col">Quantity</th>
<th scope="col">Price</th>
<th scope="col">Total</th>
</tr>
</thead>
<tbody id="productList">
</tbody>
</table>
</div>
<div id="paymentMethods" class=""></div>
<div id="paymentStatusView" class=""></div>
<!-- Button trigger modal -->
<center>
<span>Payment Method: </span>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" data-option="Cash">
Cash
</button>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" data-option="Mercado Pago">
Mercado Pago - QR
</button>
<br/>
<br/>
Q3) Preference:<br/><textarea id="createdOrder"></textarea><br/>
Q4) Rejected payment:<br/><textarea id="paymentStatusRejected"></textarea><br/>
Q5) Payment Closed Status via Notification:<br/><textarea id="paymentStatusNotification"></textarea><br/>
Q6) Payment Closed Status via Search:<br/><textarea id="paymentStatusSearch"></textarea><br/>
</center>
</div>
</div>
</div>
</div>
</div>
<br/><br/>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Pay with Mercado Pago</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary">Cancel Payment</button>
</div>
</div>
</div>
</div>
</body>
<!-- Main APP -->
<script src="assets/js/acme.js"></script>
<audio id="cash">
<source src="assets/sounds/cash.mp3" type="audio/mpeg">
</audio>
</html>