Skip to content

小程序虚拟支付,用户态签名没有转小写?导致签名无效 #3937

@xuebear

Description

@xuebear

简要描述
小程序虚拟支付,用户态签名没有转小写?导致签名无效

模块版本情况
WxJava 模块名: weixin-java-miniapp
WxJava 版本号:4.8.0
详细描述
虚拟支付参数类:WxMaXPaySigParams
方法:
public String calcSig(String postBody) {
String sk = StringUtils.trimToEmpty(this.sessionKey);
return calcSignature(postBody, sk);
}
protected String calcSignature(String postBody, String sessionKey) {
return SignUtils.createHmacSha256Sign(postBody, sessionKey);
}
签名最后没有转小写?

日志
小测序报错:requestVirtualPayment fail requestVirtualPayment:fail SIGNATURE_INVALID -15005

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions