File tree 3 files changed +15
-7
lines changed
3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,17 @@ export default defineComponent({
41
41
amount: {
42
42
type: Number ,
43
43
required: true ,
44
+ validator : (value )=> {
45
+ return value > 0
46
+ },
44
47
},
45
48
reference: {
46
49
type: String ,
47
50
required: true ,
48
51
},
49
52
channels: {
50
53
type: Array ,
51
- default : function () {
54
+ default : () => {
52
55
return [" card" , " bank" ];
53
56
},
54
57
},
@@ -59,18 +62,18 @@ export default defineComponent({
59
62
callback: {
60
63
type: Function ,
61
64
required: true ,
62
- default : function (response ) {
65
+ default : (response )=> {
63
66
return response;
64
67
},
65
68
},
66
69
close: {
67
70
type: Function ,
68
71
required: true ,
69
- default : function () {},
72
+ default : () => {},
70
73
},
71
74
metadata: {
72
75
type: Object ,
73
- default : function () {
76
+ default : () => {
74
77
return {};
75
78
},
76
79
},
@@ -92,7 +95,7 @@ export default defineComponent({
92
95
},
93
96
split: {
94
97
type: Object ,
95
- default : function () {
98
+ default : () => {
96
99
return {};
97
100
},
98
101
},
@@ -112,7 +115,7 @@ export default defineComponent({
112
115
113
116
setup (props ) {
114
117
const scriptLoaded = ref (null );
115
- let loadScript = (callback ) => {
118
+ const loadScript = (callback ) => {
116
119
const script = document .createElement (" script" );
117
120
script .src = " https://js.paystack.co/v1/inline.js" ;
118
121
Original file line number Diff line number Diff line change 530
530
" resolved" " https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
531
531
" version" " 1.0.0"
532
532
533
+ " fsevents@~2.3.2 " :
534
+ " integrity" " sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA=="
535
+ " resolved" " https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz"
536
+ " version" " 2.3.2"
537
+
533
538
" function-bind@^1.1.1 " :
534
539
" integrity" " sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
535
540
" resolved" " https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz"
You can’t perform that action at this time.
0 commit comments