<?php
require_once("../../app/config.php");
$trx=$_GET['id'];
$data = mysqli_fetch_array(mysqli_query($dbc, "SELECT * FROM deposits WHERE trx='$trx'"));
$gatewayData=mysqli_fetch_array(mysqli_query($dbc,"SELECT * FROM gateways WHERE id='".$data['gateway_id']."'"));
$user = mysqli_fetch_array(mysqli_query($dbc, "SELECT * FROM users WHERE id='".$data['user_id']."'"));
?><!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title><?php $set['site_name'];?></title>
</head>
<body>
    <form action="https://voguepay.com/pay/" method="POST" id="payment_form">
        <input type="hidden" name="v_merchant_id" value="<?php echo $gatewayData['val2'];?>" />
        <input type="hidden" name="memo" value="<?php echo $set['site_name'];?>" />
        <input type="hidden" name="success_url" value="<?php echo $url.'/app/payment?id=ipnstripe&track='.$trx;?>" />
        <input type="hidden" name="fail_url" value="<?php echo $url.'/user/fund/1';?>" />
        <input type="hidden" name="cur" value="<?php echo $scan2['currency'];?>" />
        <input type="hidden" name="item_1" value="Deposit To <?php echo $set['site_name'];?>" />
        <input type="hidden" name="price_1" value="<?php echo $data['amount'];?>" />
        <input type="hidden" name="description_1" value="Account funding" />
    </form>
<script type="text/javascript">
    document.getElementById("payment_form").submit();
</script>
</body>

</html>




