收藏
回答

微信视频号支付 报1010005错误,price_info字段异常,请检查json及其字段合法性。?

我直接通过postman调用https://api.weixin.qq.com/shop/order/add 则正常返回。

我想知道怎么算price_infodi字段异常,最有意思的是行了一两次就不行了,我测试的都是同一种商品。

数据如下:
{
  "create_time": "2021-12-17 13:03:05",
  "out_order_id": "1471707499345219585",
  "openid": "xxxxx",
  "path": "pages/mallModule/order/orderDetails/orderDetails.html?orderId=1471707499345219585&orderFrom=shopCart",
  "out_user_id": "1403284515312373762",
  "order_detail": {
    "product_infos": [
      {
        "out_product_id": "1435407355415105538",
        "sale_price": 2290,
        "real_price": 2290,
        "head_img": "xxxxxx",
        "title": "老坛酸菜包80g*10个",
        "path": "xxxx"
      }
    ],
    "pay_info": {
      "pay_method_type": 0,
      "prepay_id": "wx17130305806537725ebf3b3e9eb1a30000",
      "prepay_time": "2021-12-17 13:03:06"
    },
    "price_info": {
      "order_price": 2290,
      "freight": 0
    }
  },
  "delivery_detail": {
    "delivery_type": 4
  },
  "address_info": {
    "receiver_name": "微信用户",
    "detailed_address": "学园南街嘉新建材市场",
    "tel_number": "xxxxx"
  }
}
回答关注问题邀请回答
收藏
登录 后发表内容