forked from littlewind/demo-vnpay-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
101 lines (95 loc) · 5.45 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<title>Tạo mới đơn hàng</title>
<!-- Bootstrap core CSS -->
<link href="/vnpay_php/assets/bootstrap.min.css" rel="stylesheet"/>
<!-- Custom styles for this template -->
<link href="/vnpay_php/assets/jumbotron-narrow.css" rel="stylesheet">
<script src="/vnpay_php/assets/jquery-1.11.3.min.js"></script>
</head>
<body>
<div class="container">
<div class="header clearfix">
<h3 class="text-muted">VNPAY DEMO</h3>
</div>
<h3>Tạo mới đơn hàng</h3>
<div class="table-responsive">
<form action="/vnpay_php/vnpay_create_payment.php" id="create_form" method="post">
<!-- <form action="http://sandbox.vnpayment.vn/paymentv2/vpcpay.html" id="create_form" method="get"> -->
<div class="form-group">
<label for="language">Loại hàng hóa </label>
<select name="order_type" id="order_type" class="form-control">
<option value="topup">Nạp tiền điện thoại</option>
<option value="billpayment">Thanh toán hóa đơn</option>
<option value="fashion">Thời trang</option>
<option value="other">Khác - Xem thêm tại VNPAY</option>
</select>
</div>
<div class="form-group">
<label for="order_id">Mã hóa đơn</label>
<input class="form-control" id="order_id" name="order_id" type="text" value="<?php echo date("YmdHis") ?>"/>
</div>
<div class="form-group">
<label for="amount">Số tiền</label>
<input class="form-control" id="amount"
name="amount" type="number" value="10000"/>
</div>
<div class="form-group">
<label for="order_desc">Nội dung thanh toán</label>
<textarea class="form-control" cols="20" id="order_desc" name="order_desc" rows="2">Noi dung thanh toan</textarea>
</div>
<div class="form-group">
<label for="bank_code">Ngân hàng</label>
<select name="bank_code" id="bank_code" class="form-control">
<option value="">Không chọn</option>
<option value="NCB"> Ngan hang NCB</option>
<option value="AGRIBANK"> Ngan hang Agribank</option>
<option value="SCB"> Ngan hang SCB</option>
<option value="SACOMBANK">Ngan hang SacomBank</option>
<option value="EXIMBANK"> Ngan hang EximBank</option>
<option value="MSBANK"> Ngan hang MSBANK</option>
<option value="NAMABANK"> Ngan hang NamABank</option>
<option value="VNMART"> Vi dien tu VnMart</option>
<option value="VIETINBANK">Ngan hang Vietinbank</option>
<option value="VIETCOMBANK"> Ngan hang VCB</option>
<option value="HDBANK">Ngan hang HDBank</option>
<option value="DONGABANK"> Ngan hang Dong A</option>
<option value="TPBANK"> Ngân hàng TPBank</option>
<option value="OJB"> Ngân hàng OceanBank</option>
<option value="BIDV"> Ngân hàng BIDV</option>
<option value="TECHCOMBANK"> Ngân hàng Techcombank</option>
<option value="VPBANK"> Ngan hang VPBank</option>
<option value="MBBANK"> Ngan hang MBBank</option>
<option value="ACB"> Ngan hang ACB</option>
<option value="OCB"> Ngan hang OCB</option>
<option value="IVB"> Ngan hang IVB</option>
<option value="VISA"> Thanh toan qua VISA/MASTER</option>
</select>
</div>
<div class="form-group">
<label for="language">Ngôn ngữ</label>
<select name="language" id="language" class="form-control">
<option value="vn">Tiếng Việt</option>
<option value="en">English</option>
</select>
</div>
<button type="submit" class="btn btn-primary">Thanh toán</button>
</form>
</div>
<p>
</p>
<footer class="footer">
<p>© VNPAY 2015</p>
</footer>
</div>
<link href="https://sandbox.vnpayment.vn/paymentv2/lib/vnpay/vnpay.css" rel="stylesheet"/>
</body>
</html>