-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
36 lines (34 loc) · 1.04 KB
/
Copy pathindex.html
File metadata and controls
36 lines (34 loc) · 1.04 KB
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
<form>
<script src="https://api.payant.ng/assets/js/inline.min.js"></script>
<button type="button" onclick="payWithPayant()"> Pay </button>
</form>
<script>
function payWithPayant() {
var handler = Payant.invoice({
"key": "PUBLIC-KEY",
"client": {
"first_name": "Albert",
"last_name": "Jane",
"email": "albert.jane@domain.com",
"phone": "+2348012345678"
},
"due_date": "12/30/2019",
"fee_bearer": "client",
"items": [
{
"item": "Donuts",
"description": "The best donuts in the world!",
"unit_cost": "1000.00",
"quantity": "1"
}
],
callback: function(response) {
console.log(response);
},
onClose: function() {
console.log('Window Closed.');
}
});
handler.openIframe();
}
</script>