最近在做微信公众号开发。
下单后有退款功能,在做退款时,根据接口文档调用后会返回“您的请求参数与订单信息不一致”。一直没搞懂哪里出了问题,不知有谁遇到过么。
附录:
订单详情:
{
"errcode": 0,
"errmsg": "ok",
"order": {
"order_id": "1331039655032699****",
"order_status": 3,
"order_total_price": 1,
"order_create_time": 147081****,
"order_express_price": 0,
"buyer_openid": "oJAe4uNOjA4jq17g8ewb2mT-****",
"buyer_nick": "***",
"receiver_name": "***",
"receiver_province": "江苏省",
"receiver_city": "常州市",
"receiver_address": "---------------",
"receiver_mobile": "1801432****",
"receiver_phone": "1801432****",
"product_id": "pJAe4uOGF8fVyDXZztlGzqIb****",
"product_name": "1111",
"product_price": 1,
"product_sku": "",
"product_count": 1,
"product_img": "http://mmbiz.qpic.cn/mmbiz/BpSHkUcvcxCuwicderSCqwctf1nebZ8sqLI4GoGOSzmt7sEpicusXZV26TM19jfnyTVjYF9wqBrX0HcAUjnjm39g/0?wx_fmt=jpeg",
"delivery_id": "1111111111",
"delivery_company": "Fsearch_code",
"trans_id": "400360200120160810102342****",
"receiver_zone": "****",
"receiver_zip": "320412"
}
}
提交到接口的信息
<xml>
<appid><![CDATA[wx8077c4b94fca****]]></appid>
<mch_id><![CDATA[134527****]]></mch_id>
<nonce_str><![CDATA[a91fd0d9b0ba48e0aad854d049d38278]]></nonce_str>
<op_user_id><![CDATA[134527****]]></op_user_id>
<out_refund_no><![CDATA[020160810175529620****]]></out_refund_no>
<out_trade_no><![CDATA[1331039655032654****]]></out_trade_no>
<refund_fee>1</refund_fee>
<refund_fee_type><![CDATA[CNY]]></refund_fee_type>
<sign><![CDATA[3ADE96094865097A4C2C543778DF****]]></sign>
<total_fee>1</total_fee>
<transaction_id><![CDATA[400427200120160719931873****]]>
</transaction_id>
</xml>
返回信息
<xml>
<return_code><![CDATA[SUCCESS]]></return_code>
<return_msg><![CDATA[OK]]></return_msg>
<appid><![CDATA[wx3272f686a2ad****]]></appid>
<mch_id><![CDATA[134527****]]></mch_id>
<nonce_str><![CDATA[RvCPzbiI6EzDZ****]]></nonce_str>
<sign><![CDATA[8A2145766C416DAC839DFB2C80AD3ACA]]></sign>
<result_code><![CDATA[FAIL]]></result_code>
<err_code><![CDATA[ERROR]]></err_code>
<err_code_des><![CDATA[您的请求参数与订单信息不一致]]></err_code_des>
</xml>