收藏
回答

自定义交易组件生成支付参数openid应该传什么?

shop/order/getpaymentparams 报错

{"errcode":1010014,"errmsg":"openid不属于当前appid rid: 6242d024-5148efdd-753b0df9"}

我传的 openid 和 shop/order/add 接口使用的 openid 一致,也确定是小程序 appid 对应的 openid

问一下这里到底出了什么问题?


附 过程和调用参数

{"address_info":{"detailed_address":"\u6CAA\u5357\u8DEF2688","receiver_name":"\u97E9\u51AC","tel_number":"13085093976"},"create_time":"2022-03-29 17:30:03","delivery_detail":{"delivery_type":1},"expire_time":1648549803,"fund_type":0,"openid":"ou1w_5bTg0gGVEq_ySemZYINKr5Q","order_detail":{"pay_info":{"pay_method_type":0},"price_info":{"freight":0,"order_price":10},"product_infos":[{"head_img":"http:\/\/img10.360buyimg.com\/n1\/s450x450_jfs\/t1\/85865\/39\/13611\/488083\/5e590a40E4bdf69c0\/55c9bf645ea2b727.jpg","out_product_id":"1009901","out_sku_id":"3u074lckp6gechcojkugcg","path":"pages\/productDetail\/productDetail?productId=1","product_cnt":1,"sale_price":10,"sku_real_price":10,"title":"\u6708\u7403\u8BB2\u89E32"}]},"out_order_id":"1","path":"pages\/order\/order-list?out_order_id=1","scene":1000}
2022-03-29 17:30:03,952 INFO  [main] - [WeixinApi] call https://api.weixin.qq.com/shop/order/add?access_token=55_LTSXtzJabKBwSKCUcfhPNOre6HtxC_R_SpgULZ3MTQNwKwIAvsMuVNeePkcAnHSqRp36Zsz-RQit5__X3zhdNP8HENjNeMzeTR0evQs64hJ_uKWHf6sYoRaBKJROZ5p6G89iEuqCLUisikbmCGShAJDNRD, result: {"errcode":0,"data":{"order_id":3302242433249707520,"out_order_id":"1"}}
{}
{"openId":"ou1w_5bTg0gGVEq_ySemZYINKr5Q"}
2022-03-29 17:30:04,303 INFO  [main] - [WeixinApi] call https://api.weixin.qq.com/shop/order/getpaymentparams?access_token=55_LTSXtzJabKBwSKCUcfhPNOre6HtxC_R_SpgULZ3MTQNwKwIAvsMuVNeePkcAnHSqRp36Zsz-RQit5__X3zhdNP8HENjNeMzeTR0evQs64hJ_uKWHf6sYoRaBKJROZ5p6G89iEuqCLUisikbmCGShAJDNRD, result: {"errcode":1010014,"errmsg":"openid不属于当前appid rid: 6242d19c-001b65ac-1a414b08"}
回答关注问题邀请回答
收藏

3 个回答

  • 青青子衿
    青青子衿
    2022-03-29

    这边查到这个请求的内容如下,请像调用其他接口一样把参数填在post的请求体里

    2022-03-29
    有用 1
    回复
  •               
                  
    2022-05-10

    楼主怎么解决的? 我也遇到一样的问题

    2022-05-10
    有用
    回复
  • Listen
    Listen
    2022-04-06

    请问你这个问题是否已经解决?

    2022-04-06
    有用
    回复 1
    • Romine韩冬
      Romine韩冬
      2022-04-06
      解决了,是请求体的问题
      2022-04-06
      回复
登录 后发表内容