-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
132 lines (130 loc) · 6.78 KB
/
index.html
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>藍新金流串接範例</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
</head>
<body>
<div class="container">
<div class="pt-5 text-center">
<img class="d-block mx-auto mb-4" src="https://www.newebpay.com/ud/img/logo_sm2.png" alt="">
<h2>藍新金流串接範例</h2>
<p class="lead">猴子都懂的藍新串接範例</p>
</div>
<div class="row my-5">
<hr class="my-4">
<div class="col-md-4">
<h2 class="mt-3 mb-3">送出 MPG 交易</h2>
<small style="color: red">MPG (Multiple Payment Gateway) 是藍新金流提供的 RWD 頁面 <br> 使用於線上交易的幕前情境供消費者進行付款</small>
<form action="/src/payment.php" method="post">
<div class="mb-3 mt-3">
<label class="form-label">訂單編號 (無填寫即隨機)</label>
<input type="text" class="form-control" name="MerchantOrderNo" placeholder="訂單編號">
</div>
<div class="mb-3">
<label class="form-label">訂單金額 (無填寫即隨機)</label>
<input type="text" class="form-control" name="Amt" placeholder="訂單金額">
</div>
<div class="mb-3">
<label class="form-label">商品名稱 (無填寫即隨機)</label>
<input type="text" class="form-control" name="ItemDesc" placeholder="商品名稱">
</div>
<div class="mb-3">
<label class="form-label">付款人電子信箱</label>
<input type="text" class="form-control" name="Email" placeholder="付款人電子信箱" value="[email protected]" required>
</div>
<input type="submit" class="btn btn-primary" value="送出">
</form>
</div>
<div class="col-md-4">
<h2 class="mt-3 mb-3">交易查詢</h2>
<form action="/src/Query/query.php" method="post">
<div class="mb-3">
<label class="form-label">訂單編號 (必填)</label>
<input type="text" class="form-control" name="MerchantOrderNo" placeholder="訂單編號">
</div>
<div class="mb-3">
<label class="form-label">訂單金額 (必填)</label>
<input type="text" class="form-control" name="Amt" placeholder="訂單金額">
</div>
<input type="submit" class="btn btn-primary" value="送出">
</form>
</div>
<div class="col-md-4">
<h2 class="mt-3 mb-3">信用卡取消授權</h2>
<form action="/src/CreditCard/cancelAuthorization.php" method="post">
<div class="mb-3">
<label class="form-label">訂單編號 (必填)</label>
<input type="text" class="form-control" name="MerchantOrderNo" placeholder="訂單編號">
</div>
<div class="mb-3">
<label class="form-label">訂單金額 (必填)</label>
<input type="text" class="form-control" name="Amt" placeholder="訂單金額">
</div>
<input type="submit" class="btn btn-primary" value="送出">
</form>
</div>
<hr class="my-4">
<div class="col-md-3">
<h2 class="mt-3 mb-3">信用卡請款</h2>
<form action="/src/CreditCard/chargeback.php" method="post">
<div class="mb-3">
<label class="form-label">訂單編號 (必填)</label>
<input type="text" class="form-control" name="MerchantOrderNo" placeholder="訂單編號">
</div>
<div class="mb-3">
<label class="form-label">訂單金額 (必填)</label>
<input type="text" class="form-control" name="Amt" placeholder="訂單金額">
</div>
<input type="submit" class="btn btn-primary" value="送出">
</form>
</div>
<div class="col-md-3">
<h2 class="mt-3 mb-3">信用卡取消請款</h2>
<form action="/src/CreditCard/cancelChargeback.php" method="post">
<div class="mb-3">
<label class="form-label">訂單編號 (必填)</label>
<input type="text" class="form-control" name="MerchantOrderNo" placeholder="訂單編號">
</div>
<div class="mb-3">
<label class="form-label">訂單金額 (必填)</label>
<input type="text" class="form-control" name="Amt" placeholder="訂單金額">
</div>
<input type="submit" class="btn btn-primary" value="送出">
</form>
</div>
<div class="col-md-3">
<h2 class="mt-3 mb-3">信用卡退款</h2>
<form action="/src/CreditCard/refund.php" method="post">
<div class="mb-3">
<label class="form-label">訂單編號 (必填)</label>
<input type="text" class="form-control" name="MerchantOrderNo" placeholder="訂單編號">
</div>
<div class="mb-3">
<label class="form-label">訂單金額 (必填)</label>
<input type="text" class="form-control" name="Amt" placeholder="訂單金額">
</div>
<input type="submit" class="btn btn-primary" value="送出">
</form>
</div>
<div class="col-md-3">
<h2 class="mt-3 mb-3">信用卡取消退款</h2>
<form action="/src/CreditCard/cancelRefund.php" method="post">
<div class="mb-3">
<label class="form-label">訂單編號 (必填)</label>
<input type="text" class="form-control" name="MerchantOrderNo" placeholder="訂單編號">
</div>
<div class="mb-3">
<label class="form-label">訂單金額 (必填)</label>
<input type="text" class="form-control" name="Amt" placeholder="訂單金額">
</div>
<input type="submit" class="btn btn-primary" value="送出">
</form>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
</body>
</html>