{"type":"rich","image_url":null,"url":"https://www.mathwithjulia.com/entry/2022/09/12/225914","author_name":"julialangisthebestlang","published":"2022-09-12 22:59:14","author_url":"https://blog.hatena.ne.jp/julialangisthebestlang/","height":"190","provider_url":"https://hatena.blog","title":"Stripe Webhook\u306e\u8a2d\u5b9a\u30e1\u30e2","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.mathwithjulia.com%2Fentry%2F2022%2F09%2F12%2F225914\" title=\"Stripe Webhook\u306e\u8a2d\u5b9a\u30e1\u30e2 - \u7720\u6c17.jl\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://www.mathwithjulia.com/","version":"1.0","categories":[],"provider_name":"Hatena Blog","description":"\u80cc\u666f Next\u3067\u751f\u3084\u3057\u305fapi/\u306bstripe-hooks\u751f\u3084\u3057\u305f\u30e1\u30e2 stripe\u81ea\u4f53\u306e\u8a2d\u5b9a\u306f\u6e08\u3093\u3060\u72b6\u614b\u304b\u3089\u3001Webhook\u3067\u30a4\u30d9\u30f3\u30c8(\u5951\u7d04\u3001\u8cfc\u5165\u306a\u3069)\u3092\u53d7\u3051\u53d6\u308c\u308b\u3088\u3046\u306b\u3057\u305f Stripe\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u3084\u3063\u305f\u3053\u3068 \u958b\u767a\u8005->Webhook->\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u8ffd\u52a0->URL\u6253\u3061\u8fbc\u3080 .env\u306b\u3057\u305f\u3053\u3068 SIGNING_SECRET\u3092.env\u306b\u8ffd\u8a18 stripe-hooks\u306b\u8ffd\u8a18\u3057\u305f\u3053\u3068 const stripe = require(\"stripe\")(process.env.STRIPE_SECRET_KEY); const signature = req.headers[\"stripe-sig\u2026","blog_title":"\u7720\u6c17.jl","width":"100%"}