Your IP : 13.59.83.202


Current Path : /home/lentoinv/finationglobal.com/account/
Upload File :
Current File : //home/lentoinv/finationglobal.com/account/fundwallet.php

<?php
session_start(); ob_start();
?>
<!doctype html>
<html lang="en" dir="ltr">

    <head>

        <!-- META DATA -->
        <meta charset="UTF-8">
        <meta name='viewport' content='width=device-width, initial-scale=1.0, user-scalable=0'>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="description" content="Fination Global Services">
        <meta name="author" content="Fination Global Services">
        <meta name="keywords" content="">

        <!-- FAVICON -->
        <link rel="shortcut icon" type="image/x-icon" href="../assets/images/brand/favicon.ico" />

        <!-- TITLE -->
        <title>Dashboard</title>

        <!-- BOOTSTRAP CSS -->
        <link id="style" href="../assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" />

        <!-- STYLE CSS -->
        <link href="../assets/css/style.css" rel="stylesheet" />
        <link href="../assets/css/plugins.css" rel="stylesheet" />

        <!--- FONT-ICONS CSS -->
        <link href="../assets/css/icons.css" rel="stylesheet" />

    </head>

    <body class="app sidebar-mini ltr light-mode">

        <!-- GLOBAL-LOADER 
        <div id="global-loader">
            <img src="../assets/images/loader.svg" class="loader-img" alt="Loader">
        </div>-->
        <!-- /GLOBAL-LOADER -->

        <!-- PAGE -->
        <div class="page">
            <div class="page-main">

                <!-- app-Header -->
                <?php include('header.php');
                if(isset($_GET['order'])){
                    $order = $_GET['order'];
                    $db->query("DELETE FROM walletorder WHERE trno='$order' ");
                    $report = 'Operation successful';
                } ?>
   <?php 
if(array_key_exists('FundMyWallet',$_POST)){
 $order_id = $pro->win_hash(12);  
 $amount = $_POST['pay_amount'];                         
 $baseurl = 'https://api.cryptomus.com/';
 $merchant = '60dacb0e-e671-4c1a-b146-c26ca3ea2894';
 $API_KEY = 'xKfWweopK8FWyXD6lapJagvyMn9VsKuffHSzLgl0uEckC1DPfTWLqwDundGJZxOEZERy7xtPj2KyxW1dFrEIuk4gJ1uUbjmr7yH0o1k0cKWTLwQQ0LsbPGLrcaATd2z3';

 $data = [
    'amount'=>$amount,
    'currency'=>'USDT',
    'network'=>'TRON',
    'order_id'=>$order_id,
   'url_return'=>'https://finationglobal.com/account/fundwallet',
   'url_callback'=>'https://finationglobal.com/account/mypayinfo'
];

$data = json_encode($data,true);
$sign = md5(base64_encode($data) . $API_KEY);

//echo $data;
//echo PHP_EOL . PHP_EOL;
//echo $sign;

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => $baseurl . 'v1/payment',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_POST => 1,
  CURLOPT_POSTFIELDS => $data,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_HTTPHEADER => array(
    "Content-Type: application/json",
    "merchant: " . $merchant,
    "sign: " . $sign
  ),
));

$response = curl_exec($curl);

curl_close($curl);

$url = $pro->logCryptomus($response);
header('location: '.$url);

}


                             ?>
                <!--/APP-SIDEBAR-->

                <!--app-content open-->
                <div class="main-content app-content mt-0">
                    <div class="side-app">

                        <!-- CONTAINER -->
                        <div class="main-container container-fluid">

                            <!-- PAGE-HEADER -->
                            <div class="page-header">
                                <div>
                                    <h1 class="page-title">Fund Wallet</h1>
                                    <ol class="breadcrumb">
                                        <li class="breadcrumb-item"><a href="javascript:void(0);">Home</a></li>
                                        <li class="breadcrumb-item active" aria-current="page">Fund Wallet</li>
                                    </ol>
                                </div>
                                <?php include('pagebtn.php');
//echo $message;
                                 ?>
                            </div>
                            <!-- PAGE-HEADER END -->

<!-- ROW -->
<div class="row">
                                 <div class="col-xl-6 col-lg-12 col-md-12">
                                    <div class="card">
                                        <div class="card-header">
                                            <h3 class="card-title">Payment Methods</h3>
                                        </div>
                                        <div class="card-body">
                                            <div class="card-pay">
                                                <ul class="tabs-menu nav">
                                                    <li class=""><a href="#tab20" class="active" data-bs-toggle="tab">
                                                        <!-- <i class="fa fa-credit-card"></i> -->Crypto Payment</a></li> 
                                                    <li><a href="#tab22" data-bs-toggle="tab" class="">
                                                  <!-- <i class="fa fa-university"></i> -->
                                                          Bank Transfer</a></li>
                                                          <li><a href="#tab21" data-bs-toggle="tab" class="">
                                                        <!-- <i class="fa fa-paypal"></i> -->
                                                          Card Payment</a></li>
                                                    
                                                </ul>
                                                <div class="tab-content">
                                                    <div class="tab-pane active show" id="tab20">
                                                        <div class="bg-danger-transparent-2 px-4 py-2 br-3 mb-4" role="alert">Note: Only USDT (TRC20 on Tron Network) is acceptable. Sending to the wron network will lead to loss of funds</div>
                                                        <form method="post" >
                                        <div class="form-group">
                <input type="number" id="payamount" name="pay_amount" class="form-control form-control-lg" placeholder="Enter Amount (USDT)" required min="1" max="50000" onkeyup="if(this.value>=10){$('#pa').html('PAY '+this.value+' USDT');}else{$('#pa').html('')}">
                                        </div>
                                        <center><h3 id="pa"></h3></center>
                                        
                                        
                                        <div class="form-group">
                        <button class="btn btn-primary btn-lg btn-block" name="FundMyWallet" onclick="proc()" type="submit"  ><span id="pbtn">Pay Securely with Cryptomus</span></button></div>
                                            

                                    </form>
                                                    </div>
           <div class="tab-pane" id="tab21">
                 <p>Flutterwave secures your online payments</p>
                                                        <p><a href="https://flutterwave.com/pay/fination?email=<?= userName($uid,'email') ?>" class="btn btn-primary"> Pay Securely With Flutterwave</a></p>
                                                        <p class="mb-0"><strong>Note:</strong> Select your preferred currency and mode of payment. Your account will be automatically funded</p>
                                                    </div>
                                                    <div class="tab-pane" id="tab22">
                                                        <p>Bank account details</p>
                                                        <table class="table table-bordered table-striped">
                                                    <tr>
                         <th>BANK </th><th>Account Number </th> <th>ACCOUNT NAME </th>
                     </tr>
                     <tr>
                                                        <td> UBA BANK</td>
                                                        <td> 1026963230</td>
                                                        </dl>
                                                        <td>FINATION GLOBAL COMPANY LIMITED</td>
                                                        </tr>
                                                        <tr>
                                                        <td> ZENITH BANK</td>
                                                        <td> 1210312891</td>
                                                        </dl>
                                                        <td>ONE PAYMENT TECHNOLOGY</td>
                                                        </tr>
                     
                                                    </table>
                                                        <p class="mb-0">After a successful payment, submit the payment details here: </p><br>
                                                        <form method="post">
                                            <?php if(userName($uid,'naira')==1){ ?>
            <div class="pb-3">
            <label> <input type="radio" name="type" value="USD" checked class="m-2" onclick="document.getElementById('ausd').style.display='block';  document.getElementById('angn').classList.remove('col-lg-12')">USD WALLET</label>
                                                        <label> <input type="radio" name="type" class="m-2" onclick="document.getElementById('ausd').style.display='none'; document.getElementById('angn').classList.add('col-lg-12')" value="NGN">NGN WALLET</label>
            </div>
            <?php } ?>
                                                        
                              
                        <div class="row">
                        <div class="col-lg-6" id="ausd">
                                    <p><label>Amount (USD)</label>
                                        <input type="text" name="amt" class="form-control" placeholder="Enter Amount" onkeyup="ntod(this.value,1)" id="amtid" required>
                                    </div> 
                                <div class="col-lg-6" id="angn">
                            <label>Amount (NGN)</label>
                                        <input type="number" name="amount" class="form-control" placeholder="Enter Amount" onkeyup="ntod(this.value,2)" id="amountid" required>
                                    </div> 
                                </div>
                            </p>
                                        <p><label>Transaction Date</label>
                                        <input type="date" name="date" class="form-control" placeholder="Enter Transaction Date" required></p>

                                        <p><label>Payment Reference</label>
                                        <input type="text" name="ref" class="form-control" placeholder="Payment Reference/Depositor" required></p>
                                    
                               <br>
                                    <button type="submit" name="FundWallet" class="fund btn btn-primary">Fund Wallet</button>
                                </form> 
                               
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>



                                <div class="col-xl-6 col-lg-12 col-md-12">
                                    <div class="card">
                                        <div class="card-header">
                                            <h3 class="card-title">Funding Orders</h3>
                                        </div>
                                        <div class="card-body p-2">
                                          <div class="table-responsive mt-3">
                            <table id="example" class="table table-bordered table-striped table-sm">
                                <thead>
                                    <tr>
                                        <!-- <th>S/N</th> -->
                                        <!-- <th>Transaction ID</th> -->
                                        <th>Amount (NGN)</th>
                                        <th>Amount (USD)</th>
                                        <th>Date</th>
                                        <!-- <th>Reference</th>  -->
                                        <th>Status</th> 
                                        <th>Action</th> 
                                        
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php
                                    $i=1;
                                    $sql = $db->query("SELECT * FROM walletorder WHERE status=0 AND id='$uid' ORDER BY sn DESC LIMIT 200 "); 
                                    while($row = $sql->fetch_assoc()) { $e = $i++;
                                    
                                        ?>
                                        <tr>
                                            <!-- <td><?php echo $e; ?></td> -->

                                            <!-- <td><?php echo $row['trno']; ?> </td> -->
                                            <td>NGN<?php echo number_format(abs($row['amount'])) ?></td>
                                            <td>$<?php echo $row['type']=='USD' ? number_format(abs($row['amount']/sqLx('setup','sn',1,'ntod_d')),2) : '0.00'; ?></td>
                                            <td><?php echo $row['date']; ?></td>
                                            <!-- <td><?php  echo $row['ref']; ?></td> -->
                                            <td><?php echo $pro->walletStatus($row['status']); ?></td> 
                                            <td><a class="btn btn-sm btn-primary" href="?order=<?= $row['trno'] ?>">Cancel</a></td>
                                            </tr>
                                        <?php } ?>
                                    </tbody>
                                </table>
                            </div>
                                        </div>
                                    </div>
                                
                                    <div class="card">
                                        <div class="card-header">
                                            <h3 class="card-title">Recent Wallet Funding</h3>
                                        </div>
                                        <div class="card-body p-2">
                                          <div class="table-responsive mt-3">
                             <table id="example" class="table table-bordered table-striped table-sm">
                                <thead>
                                    <tr>
                                        
                                        <th>Date</th>
                                        <th>Amount</th>
                                        <th>Remark</th>
                                        <th>Status</th> 
                                    
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php
                                    $i=1;
                                    $sql = $db->query("SELECT * FROM wallet WHERE type=19 AND id='$uid' ORDER BY sn DESC LIMIT 50 "); 
                                    while($row = $sql->fetch_assoc()) { $e = $i++;
                                        $type = $row['cos']>0 ? 'Credit' : 'Debit';
                                        ?>
                                        <tr>
                                        
                                            <td><?php echo date('d/m/y', $row['ctime']); ?></td>
                                            <td><?php echo money(abs($row['cos']),2) ?></td>
                                            <td><?php echo $row['remark'] ?></td>
                                            <td><?php echo 'Complete'; ?></td></tr>
                                            
                                        <?php } ?>
                                    </tbody>
                                </table>
                            </div>
                                        </div>
                                    </div>
                                </div>
                               
                            </div>

                            <!-- COL END -->
                            <!-- ROW-3 END -->

                            <!-- ROW-5 -->
                          
                            <!-- ROW-5 END -->
                        </div>
                        <!-- CONTAINER END -->
                    </div>
                </div>
                <!--app-content end-->
            </div>

         

            <!-- FOOTER -->
<?php include('footer.php'); ?>
            <!-- FOOTER END -->
        </div>

        <!-- BACK-TO-TOP -->
        <a href="#top" id="back-to-top"><i class="fa fa-angle-up"></i></a>

        <!-- JQUERY JS -->
        <script src="../assets/js/jquery.min.js"></script>

        <!-- BOOTSTRAP JS -->
        <script src="../assets/plugins/bootstrap/js/popper.min.js"></script>
        <script src="../assets/plugins/bootstrap/js/bootstrap.min.js"></script>

        <!-- SPARKLINE JS-->
        <script src="../assets/js/jquery.sparkline.min.js"></script>

        <!-- CHART-CIRCLE JS-->
        <script src="../assets/js/circle-progress.min.js"></script>

        <!-- CHARTJS CHART JS-->
        <script src="../assets/plugins/chart/Chart.bundle.js"></script>
        <script src="../assets/plugins/chart/utils.js"></script>

        <!-- PIETY CHART JS-->
        <script src="../assets/plugins/peitychart/jquery.peity.min.js"></script>
        <script src="../assets/plugins/peitychart/peitychart.init.js"></script>

        <!-- INTERNAL SELECT2 JS -->
        <script src="../assets/plugins/select2/select2.full.min.js"></script>

        <!-- INTERNAL Data tables js-->
        <script src="../assets/plugins/datatable/js/jquery.dataTables.min.js"></script>
        <script src="../assets/plugins/datatable/js/dataTables.bootstrap5.js"></script>
        <script src="../assets/plugins/datatable/dataTables.responsive.min.js"></script>

        <!-- ECHART JS-->
        <script src="../assets/plugins/echarts/echarts.js"></script>

        <!-- SIDE-MENU JS-->
        <script src="../assets/plugins/sidemenu/sidemenu.js"></script>

        <!-- Sticky js -->
        <script src="../assets/js/sticky.js"></script>

        <!-- SIDEBAR JS -->
        <script src="../assets/plugins/sidebar/sidebar.js"></script>

        <!-- Perfect SCROLLBAR JS-->
        <script src="../assets/plugins/p-scroll/perfect-scrollbar.js"></script>
        <script src="../assets/plugins/p-scroll/pscroll.js"></script>
        <script src="../assets/plugins/p-scroll/pscroll-1.js"></script>

        <!-- APEXCHART JS -->
        <script src="../assets/js/apexcharts.js"></script>

        <!-- INDEX JS -->
        <script src="../assets/js/index1.js"></script>

        <!-- Color Theme js -->
        <script src="../assets/js/themeColors.js"></script>

        <!-- swither styles js -->
        <script src="../assets/js/swither-styles.js"></script>

        <!-- CUSTOM JS -->
        <script src="../assets/js/custom.js"></script>
        <script type="text/javascript">
            function ntod(v,u) {
            if(u==1){
              var x = <?= sqLx('setup','sn',1,'ntod_d') ?>;
              var y = v*x;
          
              // $('#youget').html('You Pay: NGN'+com(y));
              document.getElementById('amountid').value=y;
           

          }else{
           var x = <?= sqLx('setup','sn',1,'ntod_d') ?>;
              var y = v/x;
              document.getElementById('amtid').value=y; 
          }
            }


function com(v){
    return (v).toFixed(2).replace(/\d(?=(\d{3})+\.)/g, '$&,');
}

        </script>

    </body>

</html>

?>