This is an example Checkout integration using Deno. This is based on https://stripe.com/docs/payments/accept-a-payment?integration=checkout.
Note that this requires Deno v1.16 or greater.
- Follow instructions for installing Deno.
You can run your application using:
STRIPE_API_KEY="<YOUR API KEY HERE>"\
deno run\
--allow-net\
--allow-env\
main.js
Note that this makes use of a number of Deno flags:
--allow-net
: Required permission for network access (to issue API calls).--allow-env
: Required permission for environment variable access (STRIPE_API_KEY
).