1、JSAPI下单接口:https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi
获取
2、刚写好的代码,直接就报这个错误了
3、请求参数:
{"appid":"wx20a42ab20fcf8419","mchid":"1605566319","description":"购买我的天赋密码会员!","out_trade_no":"1637475629795","time_expire":"2021-11-22T14:20:19+08:00","attach":"attach","notify_url":"https://api.tfdjt.cn/applet/pay/wepay/notify","goods_tag":"tag","amount":{"total":1,"currency":"CNY"},"payer":{"openid":"oTP7E5C3qN9SapOmS50tr0iYER3k"},"detail":{"cost_price":0,"invoice_id":"微信123","goods_detail":[]},"scene_info":{"payer_client_ip":"127.0.0.1","device_id":"013467007045764","store_info":{"id":"0001","name":"0001","area_code":"440305","address":"广东省深圳市南山区科技中一道10000号"}},"settle_info":{"profit_sharing":false}}
确实是序列号的问题
检查商户号、证书序列号和私钥是否匹配