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 90dc4366
authored
May 29, 2024
by
yeran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
1 parent
2e08edff
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
src/Notify/AliNotify.php
src/Refund/AliRefund.php
src/Notify/AliNotify.php
View file @
90dc436
...
@@ -131,18 +131,18 @@ class AliNotify extends NotifyStrategy
...
@@ -131,18 +131,18 @@ class AliNotify extends NotifyStrategy
'buyer_account'
=>
$data
[
'buyer_logon_id'
],
'buyer_account'
=>
$data
[
'buyer_logon_id'
],
'auth_app_id'
=>
$data
[
'auth_app_id'
],
'auth_app_id'
=>
$data
[
'auth_app_id'
],
'notify_type'
=>
$data
[
'notify_type'
],
'notify_type'
=>
$data
[
'notify_type'
],
'invoice_amount'
=>
$data
[
'invoice_amount'
],
'invoice_amount'
=>
$data
[
'invoice_amount'
]
??
0
,
'order_no'
=>
$data
[
'out_trade_no'
],
'order_no'
=>
$data
[
'out_trade_no'
],
'trade_state'
=>
$this
->
getTradeStatus
(
$data
[
'trade_status'
]),
'trade_state'
=>
$this
->
getTradeStatus
(
$data
[
'trade_status'
]),
'pay_time'
=>
$data
[
'gmt_payment'
],
// 交易付款时间
'pay_time'
=>
$data
[
'gmt_payment'
],
// 交易付款时间
'point_amount'
=>
$data
[
'point_amount'
],
// 使用集分宝支付的金额
'point_amount'
=>
$data
[
'point_amount'
],
// 使用集分宝支付的金额
'trade_create_time'
=>
$data
[
'gmt_create'
],
// 交易创建时间
'trade_create_time'
=>
$data
[
'gmt_create'
],
// 交易创建时间
'pay_amount'
=>
$data
[
'buyer_pay_amount'
],
// 用户在交易中支付的金额
'pay_amount'
=>
$data
[
'buyer_pay_amount'
]
??
0
,
// 用户在交易中支付的金额
'receipt_amount'
=>
$data
[
'receipt_amount'
],
// 商家在交易中实际收到的款项,单位为元
'receipt_amount'
=>
$data
[
'receipt_amount'
]
??
''
,
// 商家在交易中实际收到的款项,单位为元
'fund_bill_list'
=>
$data
[
'fund_bill_list'
],
// 支付成功的各个渠道金额信息
'fund_bill_list'
=>
$data
[
'fund_bill_list'
]
??
''
,
// 支付成功的各个渠道金额信息
'app_id'
=>
$data
[
'app_id'
],
'app_id'
=>
$data
[
'app_id'
]
??
''
,
'seller_id'
=>
$data
[
'seller_id'
],
'seller_id'
=>
$data
[
'seller_id'
]
??
''
,
'seller_email'
=>
$data
[
'seller_email'
],
'seller_email'
=>
$data
[
'seller_email'
]
??
''
,
'channel'
=>
Config
::
ALI_CHARGE
,
'channel'
=>
Config
::
ALI_CHARGE
,
];
];
}
}
...
...
src/Refund/AliRefund.php
View file @
90dc436
...
@@ -57,12 +57,12 @@ class AliRefund extends AliBaseStrategy
...
@@ -57,12 +57,12 @@ class AliRefund extends AliBaseStrategy
'transaction_id'
=>
$rsqData
[
'trade_no'
],
'transaction_id'
=>
$rsqData
[
'trade_no'
],
'order_no'
=>
$rsqData
[
'out_trade_no'
],
'order_no'
=>
$rsqData
[
'out_trade_no'
],
'logon_id'
=>
$rsqData
[
'buyer_logon_id'
],
'logon_id'
=>
$rsqData
[
'buyer_logon_id'
],
'buyer_id'
=>
$rsqData
[
'buyer_user_id'
],
'buyer_id'
=>
$rsqData
[
'buyer_user_id'
]
??
$rsqData
[
'buyer_open_id'
]
,
'refund_no'
=>
$refundNo
,
'refund_no'
=>
$refundNo
,
'fund_change'
=>
$rsqData
[
'fund_change'
],
// 本次退款是否发生了资金变化
'fund_change'
=>
$rsqData
[
'fund_change'
]
??
0
,
// 本次退款是否发生了资金变化
'refund_fee'
=>
$rsqData
[
'refund_fee'
],
// 返回的总金额,这里支付宝会累计
'refund_fee'
=>
$rsqData
[
'refund_fee'
],
// 返回的总金额,这里支付宝会累计
'refund_time'
=>
$rsqData
[
'gmt_refund
_pay
'
],
'refund_time'
=>
$rsqData
[
'gmt_refund'
],
'channel'
=>
Config
::
ALI_REFUND
,
'channel'
=>
Config
::
ALI_REFUND
,
],
],
...
...
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