调用接口:https://api.mch.weixin.qq.com/secapi/pay/refund
部分请求参数:
<xml>
<transaction_id>4200001161202110135229987370</transaction_id>
<out_refund_no>202112230001</out_refund_no>
<total_fee>1</total_fee>
<refund_fee>1</refund_fee>
</xml>
响应信息:
<err_code_des><![CDATA[您的请求参数与订单信息不一致]]></err_code_des>
描述:做的支付退款申请测试,支付方式采用的是付款码扫描付款
<xml><return_code><![CDATA[SUCCESS]]></return_code>\\n<return_msg><![CDATA[OK]]></return_msg>\\n<appid><![CDATA[wx21601a063f037a05]]></appid>\\n<mch_id><![CDATA[1608789746]]></mch_id>\\n<nonce_str><![CDATA[TcVOSo6JMRUDHLK4]]></nonce_str>\\n<sign><![CDATA[5B37C9A76D455AB29505ED9BA5D38785]]></sign>\\n<result_code><![CDATA[FAIL]]></result_code>\\n<err_code><![CDATA[ERROR]]></err_code>\\n<err_code_des><![CDATA[您的请求参数与订单信息不一致]]></err_code_des>\\n</xml>
{"orderID":"RCP0AW-0OW6W6J-E1D2","transactionNo":"4200001477202205300467600148","payFee":2000.00,"refundFee":2000.00,"payChannel":{"Id":265,"Name":"微信支付(开店线)","MchID":"1608789746","AppID":"wx21601a063f037a05","SecretKey":"ycAwd5NqoXwI1jxtDHuNcL1r9uOBXBhE","Sort":152,"PaymentMethodNum":152,"Scene":"TRAININGFEE","IsDisabled":false,"Group":"WX_OFFICIAL","Space":"PRODUCTION","Extend":null,"WechatPublicAppId":"wxccc337351ac8a0bc","Subject":"0","IsAliPayGroup":false,"serial_no":"6674A64890D84A91A2078B696727E3716B5CA665","SecretKeyV3":"0Qq3DopLJwzpWK3iWizyp2Xhec13EAef"}}
都是提示这个 ,不知道啥原因
一般是因为订单金额或退款金额与之前请求不一致