Skip to content

Latest commit

 

History

History
 
 

webhook-signing

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Webhook Signing

This is an example of receiving and verifying a Webhook using Deno.

Note that this requires Deno v1.16 or greater.

Setup

  1. Follow instructions for installing Deno.

Running

You can run your application using:

 STRIPE_API_KEY="<YOUR API KEY HERE>"\
 STRIPE_WEBHOOK_SIGNING_SECRET="<YOUR WEBHOOK SIGNING HERE>"\
   deno run\
  --allow-net\
  --allow-env\
  main.js

Note that this makes use of a number of Deno flags:

  1. --allow-net: Required permission for network access (to issue API calls).
  2. --allow-env: Required permission for environment variable access (STRIPE_API_KEY).