小程序id wx97a1e9be1cc7b9bc
import CryptoJS from 'crypto-js';
const message = "requestCommonPayment&"+ res.data.signData1
const secretKey = 'BVCxVT4ntS2oun8yECQNDSy3UrDAu0Dj'; 现现网AppKey网AppKey
const paySign = CryptoJS.HmacSHA256(message, secretKey).toString();
const signature = CryptoJS.HmacSHA256(res.data.signData1, res.data.session_key).toString();
signData1: "{"mchid": "1697549149","out_trade_no": "B2BDD202411051752500000030","description": "order_sn=DSDD202411011725140000030","amount": {"order_amount": 17550},"env": 0}"
wx.requestCommonPayment
加密一直不行
还请参照https://developers.weixin.qq.com/community/develop/doc/000a828cd105d81519325d6276b000 进行处理
有解决吗,也碰到这个问题