-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
81 lines (75 loc) · 2.56 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
<!DOCTYPE html>
<html>
<head>
<title>Basic Example - Mollie Components</title>
<meta charset="UTF-8" />
<link rel="stylesheet" href="./styles.css" />
<link
rel="icon"
type="image/x-icon"
href="https://cdn.mollie.com/assets/favicon.ico"
/>
</head>
<body>
<div class="wrapper">
<form method="post" class="form" id="mcForm">
<div class="form-fields">
<div class="row">
<div class="form-group form-group--card-holder">
<label class="label" for="card-holder">Name</label>
<div id="card-holder"></div>
<div
id="card-holder-error"
class="field-error"
role="alert"
></div>
</div>
</div>
<div class="row">
<div class="form-group form-group--card-number">
<label class="label" for="card-number">Card number</label>
<div id="card-number"></div>
<div
id="card-number-error"
class="field-error"
role="alert"
></div>
</div>
</div>
<div class="row">
<div class="form-group form-group--expiry-date">
<label class="label" for="expiry-date">Expiry date</label>
<div id="expiry-date"></div>
<div
id="expiry-date-error"
class="field-error"
role="alert"
></div>
</div>
<div class="form-group form-group--verification-code">
<label class="label" for="verification-code">CVC</label>
<div id="verification-code"></div>
<div
id="verification-code-error"
class="field-error"
role="alert"
></div>
</div>
</div>
</div>
<button id="submit-button" class="submit-button" type="submit">
Pay €239.00
</button>
<div id="form-error" class="field-error" role="alert"></div>
</form>
</div>
<!-- we need to polyfill Promise, so we have Promise functionality available in IE11 -->
<script
src="https://cdnjs.cloudflare.com/ajax/libs/promise-polyfill/8.2.0/polyfill.min.js"
integrity="sha512-YK+bAjUuYdjPksbGQIIIsUn5hgYFsc+nXgx21Wwby9Mv+rJd8WZH2FRe1RdlTjFu1vxlGia9/RqmUMcZtX+BrA=="
crossorigin="anonymous"
></script>
<script src="https://js.mollie.com/v1/mollie.js"></script>
<script src="./script.js"></script>
</body>
</html>