收藏
回答

退款返回成功,查询退款的时候为什么会返回订单不存在

退款返回

{"nonce_str":"q9jCKK8qnE8surgitdK13GTf4URdTauj","sign":"45718C0133785D325471F3B527DBBD08","err_code":"SUCCESS","return_msg":"OK","fee_type":"CNY","mch_id":"153****641","cash_fee":"301","cash_fee_type":"CNY","total_fee":"301","cash_refund_fee":"301","transaction_id":"4265560609320200707173206455362","bank_type":"CMC","out_refund_no":"yun2_4","openid":"wxd930ea5d5a258f4f","refund_id":"4231896867920200707174605564","cash_refund_fee_type":"CNY","device_info":"sandbox","out_trade_no":"sandbox_out_trade_no","err_msg":"SUCCESS","refund_fee_type":"CNY","refund_fee":"301","appid":"wx7eb0bd******33d9","trade_type":"JSAPI","result_code":"SUCCESS","return_code":"SUCCESS"}

查询退款返回

{"nonce_str":"wMP7XTdUbRaMCRrNwAFNJstxlwtdJJX1","device_info":"sandbox","appid":"wx7eb0bd89266733d9","sign":"BF6D376EA8A28224A45628F8DF97E48C","err_code":"ORDERNOTEXIST","err_code_des":"ORDERNOTEXIST","return_msg":"OK","result_code":"FAIL","mch_id":"153***6641","return_code":"SUCCESS"}

查询代码有问题吗?
checkPram.put("transaction_id",refund.get("transaction_id"));
checkPram = wxpay.fillRequestData(checkPram);
Map refundQuery = wxpay.refundQuery(checkPram);

e而且退款回调也收不到

s沙箱环境
最后一次编辑于  07-07
回答关注问题邀请回答
收藏

2 个回答

  • 微信支付技术助手8
    微信支付技术助手8
    07-08

    你好,把你的单号以及完整请求参数发一下。看看你那边是不是调用查询的时候传错了单号。谢谢。

    07-08
    有用
    回复 2
    • young
      young
      07-09
      "refund_id":"4231896867920200707174605564"
      07-09
      回复
    • 微信支付技术助手8
      微信支付技术助手8
      07-09回复young
      退款API,商户订单号,和微信订单号,只要传入一个即可。重新请求一下试一下。
      07-09
      回复
  • 龚雄壮
    龚雄壮
    07-07

    1.异步接收微信支付退款结果通知的回调地址,通知URL必须为外网可访问的url,不允许带参数

    如果参数中传了notify_url,则商户平台上配置的回调地址将不会生效。

    2.申请退款,如果接口返回成功,说明已经成功了,登录商户后台检查钱是否已退还;至于调用查询接口提示未查询到订单,多半是订单号传错了,检查一下单号,或者直接去商户后台查询单号,再发起查询


    07-07
    有用 1
    回复
登录 后发表内容
问题标签