下单接口:https://apihk.mch.weixin.qq.com/v3/global/transactions/jsapi
请求参数如下:
{"amount":{"total":2,"currency":"HKD"},"time_expire":"2024-08-20T19:16:25+08:00","mchid":"61111111111","merchant_category_code":"5000","description":"20240820185623760D6FF下单","notify_url":"https://www.baidu.com/wxpay","payer":{"openid":"oJ*************************E"},"out_trade_no":"20240820185623760D6FF3-401364611","appid":"wx****************","trade_type":"JSAPI"}
请求结果:
status=400
{"code":"PARAM_ERROR","message":"$key0$参数格式错误"}
其它native、app、h5下单都没问题。是不是openid不对?
merchant_category_code枚举没有5000
没有完整参数看不出来问题,拿日志找在线技术支持查吧