Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Jeepay
Commits
7f76ba9d
Commit
7f76ba9d
authored
Jun 22, 2021
by
xiaoyu
Browse files
退款订单号传入上游修改为refundOrderId
parent
0b9a27b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/wxpay/WxpayRefundService.java
View file @
7f76ba9d
...
...
@@ -71,7 +71,7 @@ public class WxpayRefundService extends AbstractRefundService {
WxpayKit
.
putApiIsvInfo
(
mchAppConfigContext
,
req
);
req
.
setOutTradeNo
(
payOrder
.
getPayOrderId
());
// 商户订单号
req
.
setOutRefundNo
(
refundOrder
.
get
Mch
Refund
No
());
// 退款单号
req
.
setOutRefundNo
(
refundOrder
.
getRefund
OrderId
());
// 退款单号
req
.
setTotalFee
(
payOrder
.
getAmount
().
intValue
());
// 订单总金额
req
.
setRefundFee
(
refundOrder
.
getRefundAmount
().
intValue
());
// 退款金额
WxPayService
wxPayService
=
mchAppConfigContext
.
getWxServiceWrapper
().
getWxPayService
();
...
...
@@ -89,7 +89,7 @@ public class WxpayRefundService extends AbstractRefundService {
// 微信统一下单请求对象
JSONObject
reqJSON
=
new
JSONObject
();
reqJSON
.
put
(
"out_trade_no"
,
refundOrder
.
getPayOrderId
());
// 订单号
reqJSON
.
put
(
"out_refund_no"
,
refundOrder
.
get
Mch
Refund
No
());
// 退款订单号
reqJSON
.
put
(
"out_refund_no"
,
refundOrder
.
getRefund
OrderId
());
// 退款订单号
JSONObject
amountJson
=
new
JSONObject
();
amountJson
.
put
(
"refund"
,
refundOrder
.
getRefundAmount
());
// 退款金额
...
...
@@ -140,7 +140,7 @@ public class WxpayRefundService extends AbstractRefundService {
//放置isv信息
WxpayKit
.
putApiIsvInfo
(
mchAppConfigContext
,
req
);
req
.
setOutRefundNo
(
refundOrder
.
get
Mch
Refund
No
());
// 退款单号
req
.
setOutRefundNo
(
refundOrder
.
getRefund
OrderId
());
// 退款单号
WxPayService
wxPayService
=
mchAppConfigContext
.
getWxServiceWrapper
().
getWxPayService
();
setCretPath
(
mchAppConfigContext
,
wxPayService
);
// 证书路径
...
...
@@ -159,9 +159,9 @@ public class WxpayRefundService extends AbstractRefundService {
if
(
mchAppConfigContext
.
isIsvsubMch
())
{
WxpayIsvsubMchParams
isvsubMchParams
=
mchAppConfigContext
.
getIsvsubMchParamsByIfCode
(
getIfCode
(),
WxpayIsvsubMchParams
.
class
);
wxPayService
.
getConfig
().
setSubMchId
(
isvsubMchParams
.
getSubMchId
());
resultJSON
=
WxpayV3Util
.
refundQueryV3Isv
(
refundOrder
.
get
Mch
Refund
No
(),
wxPayService
.
getConfig
());
resultJSON
=
WxpayV3Util
.
refundQueryV3Isv
(
refundOrder
.
getRefund
OrderId
(),
wxPayService
.
getConfig
());
}
else
{
resultJSON
=
WxpayV3Util
.
refundQueryV3
(
refundOrder
.
get
Mch
Refund
No
(),
wxPayService
.
getConfig
());
resultJSON
=
WxpayV3Util
.
refundQueryV3
(
refundOrder
.
getRefund
OrderId
(),
wxPayService
.
getConfig
());
}
String
status
=
resultJSON
.
getString
(
"status"
);
if
(
"SUCCESS"
.
equals
(
status
)){
// 退款成功
...
...
Write
Preview
Supports
Markdown
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