forked from xendit/invoice-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinvoice-modal.html
53 lines (49 loc) · 1.63 KB
/
invoice-modal.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
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Invoice iFrame Demo</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" crossorigin="anonymous">
<style type="text/css">
.modal-dialog {
max-width: 500px
}
.modal-body {
height: 100vh;
overflow: hidden;
}
iframe {
height: 100%;
width: 100%;
position: absolute;
top: 0px;
left: 0px;
overflow: hidden;
}
</style>
</head>
<body>
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-2.2.4.min.js" crossorigin="anonymous"></script>
<!-- bootstrap -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" crossorigin="anonymous"></script>
<center style="margin-top:4em">
<button type="button" class="btn btn-default" onclick="$('.modal').modal()">Pay Invoice</button>
</center>
<!-- Xendit Invoice Modal -->
<div class="modal fade" id="modal-id">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<iframe src="https://invoice.xendit.co/web/invoices/59aa2c1b18eee121596e45ce" frameborder="0"></iframe>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Complete Order</button>
</div>
</div>
</div>
</div>
</body>
</html>