- 微信支付从平台证书切换成微信支付公钥,回调的Wechatpay-Serial总是平台证书序列号
正准备从平台证书序列号切换到公钥支付,但是支付回调通知的Wechatpay-Serial【总是】原来的平台证书序列号,而不是以PUB_KEY_ID_开头的公钥。 以下是支付参数: 1、使用RSAPublicKeyConfig构建配置: new RSAPublicKeyConfig.Builder() .merchantId(mchId) //微信支付的商户号 .privateKeyFromPath(mchCertPath) // 商户API证书私钥的存放路径 .publicKeyFromPath(publicKeyPath) //微信支付公钥的存放路径 .publicKeyId(publicKeyId) //微信支付公钥ID .merchantSerialNumber(mchCertSerial) //商户API证书序列号 .apiV3Key(v3Key) //APIv3密钥 .build(); 2、使用拦截器在请求头加上了Wechatpay-Serial: public class WechatPaySerialInterceptor implements Interceptor { private final String publicKeyId; public WechatPaySerialInterceptor(String publicKeyId) { this.publicKeyId = publicKeyId; } @Override public @NotNull Response intercept(Chain chain) throws IOException { Request originalRequest = chain.request(); Request requestWithHeader = originalRequest.newBuilder() .header("Wechatpay-Serial", publicKeyId) .build(); return chain.proceed(requestWithHeader); } } 3、更换进度: [图片]
06-16 - 暂不支持此小程序找回?
接手过服务号,发现下面关联了一个小程序,想找回账号密码却提示【暂不支持此小程序找回】,原始id是:gh_376d74758e91 ,希望官方帮忙看看[图片]
2020-07-01 - 微信支付模式一生成二维码之后扫码总是提示“系统繁忙”
RT,生成了二维码,扫码之后总是提示 系统繁忙,签名验证了没有问题,实在不知道是什么原因了,请大佬指点一下! 另外 扫码支付回调链接 用这个地址可以吗 http://www.jd.com/wxpay/callback(公司没有可以用的外网,用京东的域名调试行得通吗) [图片] [图片]
2019-10-12