21004 The shared secret you provided does not match the shared secret on file for your account.
我们的产品一直苹果内购都有问题,支付成功了,但是服务器验证失败。
最后让后台服务器加了日志,把错误的收据都去验证了一下,发现验证返回这个21004,网上查了很多方法,都不知道原因。最后直接去苹果官网查看,才知道,不知道啥时候开始,苹果验证多了个参数,password,这个参数在你的appstore connect/对应app/
加完参数后 最后就验证成功了。
希望能帮助大家吧!!