我正在尝试用条纹编写订阅系统。我的以下代码大部分是从 stripe 文档复制的,但它总是向我显示此错误:
\nWebhook signature verification failed. Webhook payload must b\ne provided as a string or a Buffer (https://nodejs.org/api/buffer.html) instance representing the _raw_ request body.Payload was provided as a parsed JavaScript object instead.\nSignature verification is impossible without access to the original signed material.\nLearn more about webhook signing and explore webhook integration \nexamples for various frameworks at https://github.com/stripe/stripe-node#webhook-signing\nRun Code Online (Sandbox Code Playgroud)\n这是我用 javascript 编写的代码:
\napp.post(\n '/webhook',\n express.raw({ type: 'application/json' }),\n (request, response) => {\n let event = request.body;\n\n const endpointSecret = …Run Code Online (Sandbox Code Playgroud)