收藏
回答

微信支付回调解签报错?

 报错   Verify the signature and get the WechatPay certificate or publicKey corresponding to serialNumber[583542A8614411CE5AA4E497BEC4453DC46DF917] is empty


NotificationConfig config = new RSAPublicKeyNotificationConfig.Builder()
        .publicKeyFromPath(privateKeyPath)
        .publicKeyId(privateKeyNumber)
        .apiV3Key(mchKey)
        .build();

RequestParam requestParam = new RequestParam.Builder()
        .serialNumber(privateKeyNumber)
        .nonce(request.getHeader("Wechatpay-Nonce"))
        .signature(request.getHeader("Wechatpay-Signature"))
        .timestamp(request.getHeader("Wechatpay-Timestamp"))
        .body(String.valueOf(notification))
        .build();





回答关注问题邀请回答
收藏

1 个回答

  • Memory (私信不回复)
    Memory (私信不回复)
    03-04

    没有找到回调通知请求头中平台证书序列号对应的平台证书,你初始化的时候没给对,截图代码给的是平台公钥id

    03-04
    有用
    回复
登录 后发表内容