收藏
回答

微信支付,请问为什么prepay_id返回为undefined

微信支付,请问为什么prepay_id返回为undefined

回答关注问题邀请回答
收藏

2 个回答

  • 微信支付技术助手
    微信支付技术助手
    2019-04-02

    您好,具体的报错信息,与您的统一下单参数提供一下。

    2019-04-02
    有用
    回复 3
    • しゅびぎょく
      しゅびぎょく
      2019-04-02

      还有为什么微信开发者工具复制粘贴无效???

      2019-04-02
      回复
    • しゅびぎょく
      しゅびぎょく
      2019-04-02

      {"success":true,

      "data":{"err":null,

      "res":{"statusCode":200,

      "body":"","headers":{"server":"nginx","date":"Tue, 02 Apr 2019 08:06:44 GMT","content-type":"text/plain","content-length":"105","connection":"close"},"request":{"uri":{"protocol":"https:","slashes":true,"auth":null,"host":"api.mch.weixin.qq.com","port":443,"hostname":"api.mch.weixin.qq.com","hash":null,"search":null,"query":null,"pathname":"/pay/unifiedorder","path":"/pay/unifiedorder","href":"https://api.mch.weixin.qq.com/pay/unifiedorder"},"method":"POST","headers":{"content-length":423}}},"body":""}}


      2019-04-02
      回复
    • MyName强
      MyName强
      2020-10-09
      Notice: Undefined index: prepay_id in D:\www\cyxcx\xcxserver\djphp\wxpayphp\Base.php on line 108
      {"appId":"wxaee0485eb****180","timeStamp***9BC"}
      2020-10-09
      回复
  • MyName强
    MyName强
    2020-10-09

    我也遇到同样问题。

    {data: "<br />↵<b>Notice</b>:  Undefined index: prepay_id …D5","paySign":"683441************80CC907371709BC"}", header: {…}, statusCode: 200, cookies: Array(1), errMsg: "request:ok"}

    index.js? [sm]:233 支付失败

    2020-10-09
    有用
    回复
登录 后发表内容