42 lines
1.3 KiB
PHP
42 lines
1.3 KiB
PHP
<!doctype html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
|
|
<title>Pay With PayTM</title>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-sm-3"></div>
|
|
<div class="col-sm-6">
|
|
<div class="form-group">
|
|
<span class="text-danger">* - Mandatory Fields</span>
|
|
</div>
|
|
<form method="post" action="<?php echo htmlspecialchars(PAYTM_TXN_URL) ?>" id='f1' name="f1">
|
|
<?php
|
|
foreach($paramList as $name => $value) {
|
|
// Changed to hidden input to prevent data from being visible in the source
|
|
echo '<input type="hidden" name="' . $name .'" value="' . htmlspecialchars($value) . '">';
|
|
}
|
|
?>
|
|
<!-- Hidden field for checksum -->
|
|
<input id = "CHECKSUMHASH" type="hidden" name="CHECKSUMHASH" value="<?php echo htmlspecialchars($checkSum) ?>">
|
|
<!-- <input type="submit" placeholder="SUbmit"> -->
|
|
<script type="text/javascript">
|
|
// Automatically submitting the form when the page is loaded
|
|
console.log("Before Submitting")
|
|
document.forms['f1'].submit();
|
|
</script>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|