-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
65 lines (64 loc) · 1.79 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
<html>
<head>
<title>Vue Shockinflux Payview Example</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.4.1/css/all.css"
integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz"
crossorigin="anonymous"
/>
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<script src="../dist/shockinflux.min.js"></script>
<style>
body {
font-size: 1em;
font-family: "Tahoma", sans-serif;
}
</style>
</head>
<body>
<div id="app">
<shockinflux-payview
:email="email"
:amount="amount"
currency="ngn"
template="modern"
language="en"
action="float"
:transactionid="transactionid"
:storeid="storeid"
:comment="comment"
:callback="callback"
style-class="paymentbtn"
:close="close"
>
<i class="fas fa-money-bill-alt"></i>
Make Payment
</shockinflux-payview>
</div>
<script type="text/javascript">
new Vue({
el: "#app",
components: {
ShockinfluxPayview: ShockinfluxPayview.default
},
methods: {
callback: function(response) {
console.log(response);
},
close: function() {
console.log("Payment canceled");
}
},
data: {
email: "[email protected]",
amount: 10000,
transactionid: "836327236732632671009",
storeid: "g1xq8y87************9XBJbKXuZo+x3uqw=",
comment: "This is a test"
}
});
</script>
</body>
</html>