Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
baa-pay-server
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
贺超
baa-pay-server
Commits
2dd1e9fc
Commit
2dd1e9fc
authored
Sep 29, 2021
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建项目
parent
45a278c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
PayTestController.java
...rc/main/java/cn/quant/baa/pay/rest/PayTestController.java
+1
-1
h5.html
baa-pay-server/src/main/resources/templates/pay/h5.html
+10
-5
No files found.
baa-pay-server/src/main/java/cn/quant/baa/pay/rest/PayTestController.java
View file @
2dd1e9fc
...
...
@@ -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
);
...
...
baa-pay-server/src/main/resources/templates/pay/h5.html
View file @
2dd1e9fc
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment