Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ldy
/
payment
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0fcc877f
authored
Mar 04, 2021
by
赵凯(PHP)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
1 parent
5105f24a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
10 deletions
examples/yspay/cancel.php
examples/yspay/close.php
examples/yspay/query.php
src/Notify/YSNotify.php
examples/yspay/cancel.php
View file @
0fcc877
...
@@ -18,7 +18,7 @@ $config = [
...
@@ -18,7 +18,7 @@ $config = [
];
];
$payData
=
[
$payData
=
[
'tradetrace'
=>
'11620210303155407146230'
,
'tradetrace'
=>
'11620210303155407146230'
,
'oritradetrace'
=>
'201906201708519642585110191
3
'
,
'oritradetrace'
=>
'201906201708519642585110191
4
'
,
];
];
...
...
examples/yspay/close.php
View file @
0fcc877
...
@@ -17,8 +17,9 @@ $config = [
...
@@ -17,8 +17,9 @@ $config = [
'termid'
=>
'10006468'
,
'termid'
=>
'10006468'
,
];
];
$payData
=
[
$payData
=
[
'tradetrace'
=>
'11620210304155042147189'
,
// 'tradetrace' => '11620210304155042147189',
// 'oritradetrace' => '2019062017085196425851101913',
'tradetrace'
=>
'2019062017085196425851101914'
,
// 'oritradetrace' => '2019062017085196425851101914',
];
];
...
...
examples/yspay/query.php
View file @
0fcc877
...
@@ -18,8 +18,8 @@ $config = [
...
@@ -18,8 +18,8 @@ $config = [
];
];
$payData
=
[
$payData
=
[
// 'notifyurl' => 'https://www.test.com/test/test.t',
// 'notifyurl' => 'https://www.test.com/test/test.t',
// 'tradetrace' => '2019062017085196425851101913
',
'tradetrace'
=>
'2019062017085196425851101914
'
,
'tradetrace'
=>
'2019062017085196425851101915'
,
//
'tradetrace' => '2019062017085196425851101915',
// 'openid' =>'oDqg_5Za0tc23LhTkUR6PfFZ8O2g',
// 'openid' =>'oDqg_5Za0tc23LhTkUR6PfFZ8O2g',
// 'tradeamt'=>1
// 'tradeamt'=>1
];
];
...
...
src/Notify/YSNotify.php
View file @
0fcc877
...
@@ -108,11 +108,11 @@ class YSNotify extends NotifyStrategy{
...
@@ -108,11 +108,11 @@ class YSNotify extends NotifyStrategy{
protected
function
getRetData
(
array
$data
){
protected
function
getRetData
(
array
$data
){
// TODO: Implement getRetData() method.
// TODO: Implement getRetData() method.
$retData
=
[
$retData
=
[
'
order_no'
=>
$data
[
'wtorderid
'
],
'
tradetrace'
=>
$data
[
'tradetrace
'
],
'
out_trade_no'
=>
$data
[
'tradetrace
'
],
'
wtorderid'
=>
$data
[
'wtorderid
'
],
'
transaction_
id'
=>
$data
[
'wxtransactionid'
],
'
wxtransaction
id'
=>
$data
[
'wxtransactionid'
],
'
pay_time'
=>
$data
[
'wxtimeend'
]
,
'
wxtimeend'
=>
$data
[
'wxtimeend'
]
??
''
,
'
user_id'
=>
$data
[
'wxopenid'
]
,
'
wxopenid'
=>
$data
[
'wxopenid'
]
??
''
,
'out_transaction_id'
=>
$data
[
'wxtransactionid'
],
'out_transaction_id'
=>
$data
[
'wxtransactionid'
],
'channel'
=>
Config
::
YS_CHARGE
,
'channel'
=>
Config
::
YS_CHARGE
,
];
];
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment