v3 退款400 Bad Request
未知
2023-05-24 15:28:16
0次
报错:
Client error: `POST https://api.mch.weixin.qq.com/v3/refund/domestic/refunds` resulted in a `400 Bad Request` response
解决:
请求参数仔细查查,看看值对不对。打印看看键和值正确与否
'json' => [
'out_trade_no' => $out_trade_no,
'out_refund_no' => build_order_no(),
'notify'=> $this->refundNotify,
'amount' => [
'refund' => $refund_fee,
'total' => $total_fee,
'currency' => 'CNY',
],
]
相关内容