-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathservice.html
144 lines (129 loc) · 7.14 KB
/
service.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Pay with Openpay</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--===============================================================================================-->
<script src="https://npmcdn.com/vue/dist/vue.js"></script>
<script src="http://127.0.0.1:8777/dist/openpay-dom.js"></script>
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/util.css">
<link rel="stylesheet" type="text/css" href="css/service.css">
<!--===================== Material Assets =====================================-->
<link href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css" rel="stylesheet">
<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>
<!--===================== Fonts & Icons =====================================-->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<!--===================== Author Styles =====================================-->
<link rel="stylesheet" type="text/css" href="css/openpay.css">
</head>
<body>
<div id="app" class="openpay">
<div class="mdc-card mdc-card--outlined openpay__container">
<div class="openpay__base">
<form class="openpay__send-request screen" id="screen-1">
<div class="openpay__brand">
OpenPay
</div>
<div class="openpay__title">
Authenticate with your OpenPay ID
</div>
<div class="mdc-text-field mdc-text-field--outlined mdc-text-field--with-trailing-icon">
<i class="material-icons mdc-text-field__icon">perm_identity</i>
<input class="mdc-text-field__input" id="openpay-id" v-model="user_data.openpay_id">
<div class="mdc-notched-outline">
<div class="mdc-notched-outline__leading"></div>
<div class="mdc-notched-outline__notch">
<label for="text-field-hero-input" class="mdc-floating-label">OpenPay ID</label>
</div>
<div class="mdc-notched-outline__trailing"></div>
</div>
</div>
<div class="mdc-text-field mdc-text-field--outlined mdc-text-field--with-trailing-icon">
<i class="material-icons mdc-text-field__icon">lock</i>
<input class="mdc-text-field__input" id="openpay-password" type="password"
v-model="user_data.openpay_password">
<div class="mdc-notched-outline">
<div class="mdc-notched-outline__leading"></div>
<div class="mdc-notched-outline__notch">
<label for="text-field-hero-input" class="mdc-floating-label">Password</label>
</div>
<div class="mdc-notched-outline__trailing"></div>
</div>
</div>
<div class="mdc-form-field">
<div class="mdc-checkbox">
<input type="checkbox" class="mdc-checkbox__native-control" id="checkbox-1"
v-model="user_data.authenticate_long" />
<div class="mdc-checkbox__background">
<svg class="mdc-checkbox__checkmark" viewBox="0 0 24 24">
<path class="mdc-checkbox__checkmark-path" fill="none"
d="M1.73,12.91 8.1,19.28 22.79,4.59" />
</svg>
<div class="mdc-checkbox__mixedmark"></div>
</div>
</div>
<label for="checkbox-1" style="margin-bottom: 0px;">Add this merchant to trusted list</label>
</div>
<div class="openpay__footer">
<button class="mdc-button mdc-button--raised no-focus" type="button"
@click="send_payment_request">Authenticate</button>
</div>
</form>
<div class="openpay__payment-reminder screen" id="screen-2">
<div>
<div class="spin" style="margin: 0 auto;">
<div></div>
<div></div>
</div>
<div class="reminder-msg">{{current_block_message_text}}</div>
</div>
</div>
<div class="openpay__payment-reminder screen" id="screen-3">
<div>
<img src="https://image.flaticon.com/icons/svg/1521/1521378.svg" style="
width: 100px;
display: block;
margin: 0 auto;">
<div class="openpay__payment-awaiting">
<div class="awaiting-pill">
<div class="pulse"></div>
<div class="message">Awaiting Acceptance</div>
</div>
</div>
<div class="reminder-msg">{{current_block_message_text}}</div>
</div>
</div>
<div class="openpay__payment-success screen" id="screen-4">
<div>
<div class="success-checkmark">
<div class="check-icon">
<span class="icon-line line-tip"></span>
<span class="icon-line line-long"></span>
<div class="icon-circle"></div>
<div class="icon-fix"></div>
</div>
</div>
<div class="reminder-msg">{{current_block_message_text}}</div>
<div class="timeout-msg">Redirecting you back to merchant page in <strong>{{timer}}s</strong>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/service.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
window.initVue();
const textFields = document.querySelectorAll('.mdc-text-field');
for (const textField of textFields) {
mdc.textField.MDCTextField.attachTo(textField);
}
});
</script>
</body>
</html>