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 e16776d5
authored
Jun 28, 2019
by
wangyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 调整撤单及退款
1 parent
462836df
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
2 deletions
src/Cancel/FuCancel.php
src/Query/Fu/FuChargeQuery.php
src/Query/Fu/FuRefundQuery.php
src/Refund/FuRefund.php
src/Cancel/FuCancel.php
View file @
e16776d
...
...
@@ -37,6 +37,7 @@ class FuCancel extends FuBaseStrategy
'refund_no'
=>
$data
[
'cancel_order_no'
]
??
''
,
//商户撤销单号
'out_trade_no'
=>
$data
[
'transaction_id'
]
??
''
,
//渠道交易流水号
'out_cancel_no'
=>
$data
[
'cancel_id'
]
??
''
,
//渠道撤销流水号
'other'
=>
$data
];
return
$backData
;
}
...
...
src/Query/Fu/FuChargeQuery.php
View file @
e16776d
...
...
@@ -47,7 +47,8 @@ class FuChargeQuery extends FuBaseStrategy
'transaction_id'
=>
$data
[
'transaction_id'
],
//渠道订单号
'time_end'
=>
empty
(
$data
[
'reserved_txn_fin_ts'
])
?
''
:
date
(
'Y-m-d H:i:s'
,
strtotime
(
$data
[
'reserved_txn_fin_ts'
])),
//用户支付时间
'return_param'
=>
$data
[
'addn_inf'
]
??
''
,
//附加数据
'bank_type'
=>
$data
[
'reserved_bank_type'
]
??
''
//付款方式
'bank_type'
=>
$data
[
'reserved_bank_type'
]
??
''
,
//付款方式
'other'
=>
$data
];
return
$backData
;
}
...
...
src/Query/Fu/FuRefundQuery.php
View file @
e16776d
...
...
@@ -42,6 +42,7 @@ class FuRefundQuery extends FuBaseStrategy
'out_trade_no'
=>
$data
[
'transaction_id'
]
??
''
,
//渠道交易流水号
'out_refund_no'
=>
$data
[
'refund_id'
]
??
''
,
//渠道撤销流水号
'refund_fee'
=>
$data
[
'reserved_refund_amt'
]
??
0
,
//退款金额
'other'
=>
$data
];
return
$backData
;
}
...
...
src/Refund/FuRefund.php
View file @
e16776d
...
...
@@ -48,10 +48,11 @@ class FuRefund extends FuBaseStrategy
$backData
=
[
'order_type'
=>
$data
[
'order_type'
]
??
''
,
//订单类型
'order_no'
=>
$data
[
'mchnt_order_no'
]
??
''
,
//原交易商户订单号
'refund_no'
=>
$data
[
'
cancel_order_no'
]
??
''
,
//商户撤销
单号
'refund_no'
=>
$data
[
'
refund_order_no'
]
??
''
,
//商户退款
单号
'out_trade_no'
=>
$data
[
'transaction_id'
]
??
''
,
//渠道交易流水号
'out_refund_no'
=>
$data
[
'refund_id'
]
??
''
,
//渠道撤销流水号
'refund_fee'
=>
$data
[
'reserved_refund_amt'
]
??
0
,
//退款金额
'other'
=>
$data
];
return
$backData
;
}
...
...
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