Mini Shell
<?php require_once('function-file.php');
require_once('function-menu.php');
require_once('function-testo-footer.php');
$stu_id=$_GET['usf'];
$data=$conn->prepare("select * from student_reg a left join courses b on a.course_id=b.course_id where stu_id='$stu_id'");
$data->execute();$row=$data->fetch();
session_unset();
//$paymentType = $_REQUEST['paymentType'];
?>
<!--
<script language="JavaScript">
function generateCC(){
var cc_number = new Array(16);
var cc_len = 16;
var start = 0;
var rand_number = Math.random();
switch(document.perform.creditCardType.value)
{
case "Visa":
cc_number[start++] = 4;
break;
case "Discover":
cc_number[start++] = 6;
cc_number[start++] = 0;
cc_number[start++] = 1;
cc_number[start++] = 1;
break;
case "MasterCard":
cc_number[start++] = 5;
cc_number[start++] = Math.floor(Math.random() * 5) + 1;
break;
case "Amex":
cc_number[start++] = 3;
cc_number[start++] = Math.round(Math.random()) ? 7 : 4 ;
cc_len = 15;
break;
}
for (var i = start; i < (cc_len - 1); i++) {
cc_number[i] = Math.floor(Math.random() * 10);
}
var sum = 0;
for (var j = 0; j < (cc_len - 1); j++) {
var digit = cc_number[j];
if ((j & 1) == (cc_len & 1)) digit *= 2;
if (digit > 9) digit -= 9;
sum += digit;
}
var check_digit = new Array(0, 9, 8, 7, 6, 5, 4, 3, 2, 1);
cc_number[cc_len - 1] = check_digit[sum % 10];
document.perform.creditCardNumber.value = "";
for (var k = 0; k < cc_len; k++) {
document.perform.creditCardNumber.value += cc_number[k];
}
}
</script> -->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>Home | Lanka Virtual Academy</title>
<?php commoncss();?>
</head><!--/head-->
<body class="homepage">
<?php headermenu();?>
<section >
<div class="container">
<div class="row" >
<div class="col-sm-12">
<form method="post" action="https://sandbox.payhere.lk/pay/checkout">
<input type="hidden" name="merchant_id" value="1213544"> <!-- Replace your Merchant ID -->
<input type="text" name="studentpri_id" value="<?php echo $stu_id;?>">
<input type="hidden" name="notify_url" value="https://www.lankavirtualacademy.com/notifypay.php">
<input type="hidden" name="return_url" value="https://lankavirtualacademy.com/successpayhere.php">
<input type="hidden" name="cancel_url" value="http://sample.com/cancel">
<br><br>Item Details<br>
<input type="text" name="order_id" value="ItemNo12345">
<input type="text" name="items" value="Door bell wireless"><br>
<input type="text" name="currency" value="LKR">
<input type="text" name="amount" value="1000">
<br><br>Customer Details<br>
<input type="text" name="first_name" value="Saman">
<input type="text" name="last_name" value="Perera"><br>
<input type="text" name="email" value="samanp@gmail.com">
<input type="text" name="phone" value="0771234567"><br>
<input type="text" name="address" value="No.1, Galle Road">
<input type="text" name="city" value="Colombo">
<input type="hidden" name="country" value="Sri Lanka"><br><br>
<input type="submit" value="Buy Now">
</form>
</div>
</div>
</div>
</section>
</body>
</html>
Zerion Mini Shell 1.0