Commit 2dd1e9fc authored by Administrator's avatar Administrator

创建项目

parent 45a278c5
......@@ -86,7 +86,7 @@ public class PayTestController extends BusinessController {
payRequestData.setSubject(data.getSubject());
payRequestData.setAmount(data.getAmount());
payRequestData.setNotifyUrl(data.getNotifyUrl());
payRequestData.setRequestIp("127.0.0.1");
payRequestData.setRequestIp(requestData.getRequestIp());
AcquirerProperties properties = check(payRequestData);
ChannelResponse response = transactionService.pay(properties, payRequestData);
HttpResponseData responseData = response(response);
......
......@@ -5,6 +5,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery.serializeJSON/3.2.1/jquery.serializejson.min.js"></script>
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
<!-- <meta http-equiv="refresh" content="url=[[${payUrl}]]">-->
<style>
* {
......@@ -166,8 +167,7 @@
<h1>手机网站支付接口</h1>
</header>
<div id="main">
<form name=payment action='' method=post target="_blank" enctype="application/x-www-form-urlencoded"
th:object="${requestData}">
<form name=payment action='' method=post target="_blank" enctype="application/x-www-form-urlencoded" th:object="${requestData}">
<div id="body" style="clear:left">
<dl class="content">
<dt>支付方式
......@@ -214,8 +214,12 @@
<hr class="one_line">
<dt>通知地址:</dt>
<dd>
<input id="notifyUrl" name="data[notify_url]"
value="https://baa-pay-server-pay.liangkebang.net/debug/merchant/pay"/>
<input id="notifyUrl" name="data[notify_url]" value="https://baa-pay-server-pay.liangkebang.net/debug/merchant/pay"/>
</dd>
<hr class="one_line">
<dt>IP地址:</dt>
<dd>
<input id="requestIp" name="request_ip" value=""/>
</dd>
<hr class="one_line">
<dt></dt>
......@@ -238,7 +242,7 @@
</div>
</body>
<script language="javascript">
$(".new-btn-login").click(function () {
$(".new-btn-login").click(function() {
$.ajax({
type: "post",
url: '/pay/goPay',
......@@ -267,6 +271,7 @@
document.getElementById("subject").value = "测试";
document.getElementById("amount").value = "0.01";
document.getElementById("body").value = "购买测试商品0.01元";
document.getElementById("requestIp").value = returnCitySN["cip"];
}
GetDateNow();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment