Skip to content

Commit 8dfc3f7

Browse files
committed
fix: resolve merge conflict
2 parents 6d586ce + 4475d01 commit 8dfc3f7

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

examples/commonjs/App.vue

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<template>
2+
<div class="App">
3+
<p class="App-intro">
4+
<paystack
5+
:amount="amount"
6+
:email="email"
7+
:paystackkey="paystackkey"
8+
:reference="reference"
9+
:callback="callback"
10+
:close="close"
11+
:embed="false"
12+
>
13+
<i>Pay me, My Money</i>
14+
</paystack>
15+
</p>
16+
</div>
17+
</template>
18+
19+
<script type="text/javascript">
20+
import paystack from '../../src';
21+
export default {
22+
components: {
23+
paystack
24+
},
25+
data(){
26+
return{
27+
paystackkey: "pk_test_a137d402b5975716e89952a898aad2832c961d69",
28+
29+
amount: 1000000
30+
}
31+
},
32+
computed: {
33+
reference(){
34+
let text = "";
35+
let possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
36+
37+
for( let i=0; i < 10; i++ )
38+
text += possible.charAt(Math.floor(Math.random() * possible.length));
39+
40+
return text;
41+
}
42+
},
43+
methods: {
44+
callback: function(response){
45+
console.log(response)
46+
},
47+
close: function(){
48+
console.log("Payment closed")
49+
}
50+
}
51+
}
52+
</script>
53+
<style>
54+
.App {
55+
text-align: center;
56+
}
57+
58+
.App-intro {
59+
font-size: large;
60+
}
61+
.payButton{
62+
color: #61DAFB;
63+
width: 250px;
64+
height: 50px;
65+
font-weight: 800;
66+
}
67+
</style>

0 commit comments

Comments
 (0)