收藏
回答

微信支付分创建免确认模式订单,返回的状态一直是CREATE,怎么样会变成是DOING?

2024-06-20 11:23:51.159  INFO 10800 --- [           main] c.h.c.wx.service.impl.PayScoreService    : 请求主体: {"attach":"","needUserConfirm":false,"out_order_no":"7b1e78b4a0c0448e85cfec75b881a984","appid":"XXXXXX","service_id":"XXXXXX","service_introduction":"测试创建免确认支付分订单","time_range":{"start_time":"20240620112356"},"risk_fund":{"name":"ESTIMATE_ORDER_COST","amount":10},"notify_url":"http://2e257573.r3.cpolar.cn/wx/payScore/paid/callback","openid":"XXXXXXX"}

2024-06-20 11:23:51.650 DEBUG 10800 --- [           main] c.h.c.wx.service.impl.PayScoreService    : 获取到的响应数据: {"appid":"XXXXXX","attach":"","location":{},"mchid":"XXXXXX","notify_url":"http://2e257573.r3.cpolar.cn/wx/payScore/paid/callback","order_id":"1000000000202406201447020532653","out_order_no":"7b1e78b4a0c0448e85cfec75b881a984","package":"AAQTnZoAAAABAAAAAACMdFLmeemuHowpyaBzZiAAAABcwQVtru-5k9MmEOZJ_Pv_Nq7Cw56dNKKN5EjZKnt5jaxOGXPt26sDRuiEqkFB6uyiPBrGz72xbWu5heNCe-unlRtulKEXoi_6JS-qi09NuATa7jhDhWrdMJCC9WqCciKfPnFAHhzwvGqezxVZez5jQhL7iQ1VedfbPLW2wwDghnS1MTgNF3sSmDGMUOpinaMovQdah5FLoq0v","post_discounts":[],"post_payments":[],"risk_fund":{"amount":10,"description":"","name":"ESTIMATE_ORDER_COST"},"service_id":"XXXXXX","service_introduction":"测试创建免确认支付分订单","state":"CREATED","time_range":{"start_time":"20240620112356"}}

查询文档对此的说明如下:如免确认模式下返回的是CREATED:商户已创建服务订单,则为创单失败。

那么这个创单失败一般是什么原因造成的?

最后一次编辑于  06-20
回答关注问题邀请回答
收藏

1 个回答

  • Memory (私信不回复)
    Memory (私信不回复)
    06-20

    没有报错吗?

    06-20
    有用
    回复 5
    • 神经蛙
      神经蛙
      发表于移动端
      06-20
      没有报错,问题有贴出请求接口后获取的响应内容
      06-20
      回复
    • Memory (私信不回复)
      Memory (私信不回复)
      06-20回复神经蛙
      查单呢?
      06-20
      回复
    • 神经蛙
      神经蛙
      发表于移动端
      06-20回复Memory (私信不回复)
      查单,也是正常返回,状态是一样的。我还是在开始时间后进行的查单
      06-20
      回复
    • Memory (私信不回复)
      Memory (私信不回复)
      06-20回复神经蛙
      拿单号给对接运营查一下吧,原因比较多,看参数目前不好确认
      06-20
      回复
    • 神经蛙
      神经蛙
      06-20
      排查出来了,是传递的参数有问题。文档是need_user_confirm,但是我传递的是needUserConfirm。谢谢
      06-20
      回复
登录 后发表内容