我在next.js 13中使用了stripe,配置了ts和app router。我使用stripe listen --forward-to localhost:4242/webhook在我的本地机器上创建条带事件,但我得到这个错误stripe listen --forward-to localhost:4242/webhook的每个事件。
stripe listen --forward-to localhost:4242/webhook
dnph8jn41#
而不是使用localhost:4242/webhook,你应该使用你的next.js端口和API路由,如:localhost:3000/app/api/checkout/stripe/webhook个
localhost:4242/webhook
localhost:3000/app/api/checkout/stripe/webhook
1条答案
按热度按时间dnph8jn41#
而不是使用
localhost:4242/webhook
,你应该使用你的next.js端口和API路由,如:localhost:3000/app/api/checkout/stripe/webhook
个