-
Notifications
You must be signed in to change notification settings - Fork 1
/
wallet.php
59 lines (51 loc) · 2.13 KB
/
wallet.php
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
<?php
$page = "wallet";
include('header.php');
$uuID = generateRandomString(20);
?>
<!-- content begins here -->
<div class="container">
<div class="row justify-content-md-center">
<div class="col-md-4">
<div class="card">
<div class="card-header">Fund Wallet</div>
<div class="card-body">
<input type="text" value="<?php echo $userId ?>" id="client" name="client" hidden>
<input type="text" value="<?php echo $uuID ?>" id="uuId" name="uuId" hidden>
<style>
#blockoPayModal.modal .modal-footer small {
display: none;
}
</style>
<a href="" id="btn-deposit" class="blockoPayBtn btn btn-primary" data-toggle="modal" data-extra="customer_id: <?php echo $_SESSION['username'] ?>, cuid: <?php echo $uuID ?>" data-uid=e9d4a334d0704357>CLick to Pay</a>
<script>
$(document).ready(function() {
$('#btn-deposit').on("click", function() {
var client = $('#client').val();
var uuId = $('#uuId').val();
// $('#btn-deposit').hide();
$.ajax({
url: "uniqueId.php",
method: "POST",
data: {
client: client,
uuId: uuId
},
success: function(data) {
$('#payData').html(data);
}
})
});
});
</script>
</div>
</div>
</div>
</div>
</div>
<!-- content ends here -->
<?php
include('footer.php');
?>
<!-- blockonomics -->
<script src="https://www.blockonomics.co/js/pay_button.js"></script>