File: /var/www/grapossconnect/center-admin/razorpay-gateway/addmoneyWallet.php
<?php
//include_once("../wp-config.php");
include '../../sample-wp/wp-config.php';
$agent_id = $_REQUEST['agent_id'];
$getAgPro = $wpdb->get_row("SELECT email, mobile from grp_agents where agent_id='$agent_id'");
?>
<div class="panel panel-info main m-t-lg">
<div class="panel-heading clearfix">
<h4 class="panel-title">Add Money in your wallet</h4>
</div>
<div class="spacer"></div>
<div class="panel-body">
<form class="form-horizontal" method="post" id="addwalletPopup">
<div class="form-group">
<label class="col-sm-4 control-label">Add Amount:</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="wallet_add_amount" name="wallet_add_amount" placeholder="Amount" value="" />
<input type="hidden" class="form-control" id="amount" name="amount" placeholder="Amount" value="" />
</div>
</div>
<div class="form-group">
<label class="col-sm-4 control-label">Total (incl. charges): </label>
<div class="col-sm-8">
<input type="text" class="form-control" id="afterTotal" placeholder="Includes Payment Gateway Charges" value="" readonly/>
<small>Total Amount To Pay Including Payment Gateway Charges</small>
</div>
</div>
<div id="step-1">
<div class="form-group">
<label class="col-sm-5 control-label"> </label>
<div class="col-sm-7">
<button type="button" id="makePayment" class="btn btn-danger btn-rounded"><span aria-hidden="true" class="icon-wallet"></span> Add Money</button>
</div>
</div>
</div>
<div id="step-2" style="display: none;">
<input type="hidden" id="agentinfo" value="<?php echo $agent_id; ?>">
<input type="hidden" id="pinfo" name="pinfo" placeholder="Product Info" value="P01,P02" />
<input type="hidden" value="razorpay" id="payMethod" name="payMethod" />
<input type="hidden" name="siteUrl" id="siteUrl" value="https://grapossconnect.com/center-admin" />
<input type="hidden" name="pageUrl" id="pageUrl" value="https://grapossconnect.com/center-admin/add-money"/>
<input type="hidden" value="Wallet" id="txn_type" name="txn_type" />
</div>
</form>
</div>
</div>