Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zuiketang
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
zuiketang
Commits
a79f222a
Commit
a79f222a
authored
Oct 20, 2016
by
xiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加支付宝支付的return url
parent
25444040
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
index.php
src/frontend/views/weixin-js-pay/index.php
+7
-10
No files found.
src/frontend/views/weixin-js-pay/index.php
View file @
a79f222a
...
@@ -36,7 +36,7 @@ $jsApiParameters = $tools->GetJsApiParameters($order);
...
@@ -36,7 +36,7 @@ $jsApiParameters = $tools->GetJsApiParameters($order);
<head>
<head>
<meta
http-equiv=
"content-type"
content=
"text/html;charset=utf-8"
/>
<meta
http-equiv=
"content-type"
content=
"text/html;charset=utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<title>
微信支付
样例-支付
</title>
<title>
微信支付
</title>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
//调用微信JS api 支付
//调用微信JS api 支付
function
jsApiCall
()
{
function
jsApiCall
()
{
...
@@ -44,8 +44,11 @@ $jsApiParameters = $tools->GetJsApiParameters($order);
...
@@ -44,8 +44,11 @@ $jsApiParameters = $tools->GetJsApiParameters($order);
'getBrandWCPayRequest'
,
'getBrandWCPayRequest'
,
<?php
echo
$jsApiParameters
;
?>
,
<?php
echo
$jsApiParameters
;
?>
,
function
(
res
)
{
function
(
res
)
{
WeixinJSBridge
.
log
(
res
.
err_msg
);
if
(
res
.
err_msg
==
"get_brand_wcpay_request:ok"
)
{
alert
(
res
.
err_code
+
res
.
err_desc
+
res
.
err_msg
);
window
.
history
.
go
(
-
1
);
}
else
{
window
.
history
.
go
(
-
1
);
}
//
}
}
);
);
}
}
...
@@ -62,16 +65,10 @@ $jsApiParameters = $tools->GetJsApiParameters($order);
...
@@ -62,16 +65,10 @@ $jsApiParameters = $tools->GetJsApiParameters($order);
jsApiCall
();
jsApiCall
();
}
}
}
}
callpay
();
</script>
</script>
</head>
</head>
<body>
<body>
<br/>
<br/>
<font
color=
"#9ACD32"
><b>
该笔订单支付金额为
<span
style=
"color:#f00;font-size:50px"
>
<?=
$price
?>
</span
</b
></font><br/><br/>
<div
align=
"center"
>
<button
style=
"width:210px; height:50px; border-radius: 15px;background-color:#FE6714; border:0px #FE6714 solid; cursor: pointer; color:white; font-size:16px;"
type=
"button"
onclick=
"callpay()"
>
立即支付
</button>
</div>
</body>
</body>
</html>
</html>
\ No newline at end of file
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