收藏
回答

刷卡支付接口

刷卡支付接口


提交日期是:2024-11-12 19:58:15.171


商户订单号:202411121957580103253

带有商品信息:

<detail>[{"goods_detail":[{"goods_id":"6901035202435","quantity":6,"body":"崂山精品啤酒8度 500ml*6","goods_name":"崂山精品啤酒8度 500ml*6","price":22},{"goods_id":"2100000090655","quantity":1,"body":"10元果盒(WZ)","goods_name":"10元果盒(WZ)","price":15},{"goods_id":"2100000094318","quantity":1.21,"body":"精品香蕉(WZ)","goods_name":"精品香蕉(WZ)","price":9.9587},{"goods_id":"2100000100569","quantity":1,"body":"人参果","goods_name":"人参果","price":12.8},{"goods_id":"6922255400111","quantity":1,"body":"景田饮用纯净水560ml*12","goods_name":"景田饮用纯净水560ml*12","price":12.9},{"goods_id":"6921168560240","quantity":1,"body":"尖叫茶氨酸黄金桃味550ml","goods_name":"尖叫茶氨酸黄金桃味550ml","price":4.9},{"goods_id":"6908471007686","quantity":1,"body":"六个核桃低糖精选型核桃乳(箱)","goods_name":"六个核桃低糖精选型核桃乳(箱)","price":69.9},{"goods_id":"2000020030238","quantity":1,"body":"蒙牛特价奶","goods_name":"蒙牛特价奶","price":39.9},{"goods_id":"6921665711824","quantity":2,"body":"思念玉珍珠黑芝麻汤圆400g","goods_name":"思念玉珍珠黑芝麻汤圆400g","price":3.33},{"goods_id":"6910019017965","quantity":1,"body":"百年润发水润丝滑葡萄籽调理洗发露750ml","goods_name":"百年润发水润丝滑葡萄籽调理洗发露750ml","price":39.9},{"goods_id":"6910019024888","quantity":1,"body":"纳爱斯臻护小苏打牙膏120g+酵素牙膏120g","goods_name":"纳爱斯臻护小苏打牙膏120g+酵素牙膏120g","price":19.9},{"goods_id":"6911652214308","quantity":1,"body":"B.Duck baby儿童洁面泡泡50ml","goods_name":"B.Duck baby儿童洁面泡泡50ml","price":39},{"goods_id":"6926475210352","quantity":1,"body":"喜之郎蒟蒻果冻草莓味120g","goods_name":"喜之郎蒟蒻果冻草莓味120g","price":4.9},{"goods_id":"6902132085785","quantity":1,"body":"冷酸灵万物皆可萌软毛牙刷BJC021","goods_name":"冷酸灵万物皆可萌软毛牙刷BJC021","price":19.9},{"goods_id":"6941704416510","quantity":1,"body":"琴牌新希望酸奶工坊青柠味风味发酵乳180g","goods_name":"琴牌新希望酸奶工坊青柠味风味发酵乳180g","price":4.5},{"goods_id":"6924743918290","quantity":1,"body":"乐事桶装翡翠黄瓜味40g","goods_name":"乐事桶装翡翠黄瓜味40g","price":4.5},{"goods_id":"2100000022168","quantity":0.152,"body":"小若羌枣","goods_name":"小若羌枣","price":19.8026},{"goods_id":"6938498206441","quantity":1,"body":"丝妍均价商品2","goods_name":"丝妍均价商品2","price":6.9},{"goods_id":"6941704418262","quantity":1,"body":"琴牌新希望浓缩风味发酵乳血橙+石榴180g","goods_name":"琴牌新希望浓缩风味发酵乳血橙+石榴180g","price":4.8},{"goods_id":"6901294082335","quantity":1,"body":"美加净护手霜75g","goods_name":"美加净护手霜75g","price":6.9},{"goods_id":"6902265150022","quantity":1,"body":"海天味极鲜酱油1.9L","goods_name":"海天味极鲜酱油1.9L","price":20.9}]}]</detail>


微信官方返回:<xml><return_code>FAIL</return_code><return_msg>post数据为空</return_msg></xml>

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

2 个回答

  • 一杯茶
    一杯茶
    11-14

    同样的数据只要这里面<detail></detail>内容减少就可以调用支付接口(https://api.mch.weixin.qq.com/pay/micropay)成功。而上面的内容较多但是并没有超过6000个字符,就报上面的那个错误了

    11-14
    有用
    回复 1
    • Memory
      Memory
      11-14
      同样的数据测试验证并没有什么问题
      11-14
      回复
  • Memory
    Memory
    11-13

    只有在请求内容全部为空的情况下才会报错:“post数据为空”,测试你的参数去验证,没有此类提示,你可以复制请求使用postman验证一下

    11-13
    有用
    回复
登录 后发表内容