StripeのWebhooksを受けて見るためのLambda + API Gateway
単にPOSTのリクエストを受けて、リクエストボディとLambdaのEventを console.info
でログに出力するだけです。
- Node.js 8.10以上
- Yarn
$ git clone https://github.com/morishita-ai/study-stripe-webhook.git
$ cd study-stripe-webhook
$ yarn
$ yarn sls:deploy
API Gatewayのエンドポイントを StripeのコンソールからWebhookのエンドポイントに設定すれば良い。