收藏
回答

使用微信支付V3接口,商家转账到零钱接口返回报错?

使用该方法初始化 

RSAConfig config = new RSAConfig.Builder() .merchantId(merchantId).privateKeyFromPath(privateKeyPath).merchantSerialNumber(merchantSerialNumber) .wechatPayCertificatesFromPath(wechatPayCertificatePath) .build();

再调用“商家转账到零钱”接口中调用service.initiateBatchTransfer()方法,接口返回失败com.wechat.pay.java.core.exception.ValidationException: Validate response failed,the WechatPay signature is incorrect,但是在responsebody中也返回了结果[{"batch_id":"131000704087401678779112023051580835629521","create_time":"2023-05-15T19:13:40+08:00","out_batch_no":"20230515191339001009"}],请问是什么原因呢?如图展示:


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

1 个回答

  • Memory
    Memory
    2023-05-16

    参考这里

    2023-05-16
    有用 1
    回复
登录 后发表内容