##invalid detail参数格式错误
<return_code><![CDATA[FAIL]]></return_code> <return_msg><![CDATA[invalid detail参数格式错误]]></return_msg> 错误
####
wx2421b1c4370ec43b
<mch_id>10000100</mch_id>
<nonce_str>6cefdb308e1e2e8aabd48cf79e546a02</nonce_str>
<notify_url>https://weixin.qq.com/</notify_url>
<out_refund_no>1415701182</out_refund_no>
<out_trade_no>1415757673</out_trade_no>
<refund_fee>1</refund_fee>
<total_fee>1</total_fee>
<transaction_id></transaction_id>
{“goods_detail”:[{“goods_id”:“商品编码”,“wxpay_goods_id”:“1001”,“goods_name”:“iPhone6s
16G”,“refund_amount”:528800,“refund_quantity”:1,“price”:528800},{“goods_id”:“商品编码”,“wxpay_goods_id”:“1001”,“goods_name”:“iPhone6s
16G”,“refund_amount” ":528800,“refund_quantity”:1,“price”:608800}]}</ detail>
FE56DD4AA85C0EECA82C35595A69E153
借用腾讯的数据包,数据以完全上述格式请求
解决方案:
需要将"refund_quantity": “2” ,把原来是字符串改成整形 "refund_quantity": 2,检测数据是否ok
备注 :total_fee 和 refund_fee 参数需要传未减优惠券的金额