Skip to content

Instantly share code, notes, and snippets.

@SimonHoiberg
Created June 19, 2020 14:13
Show Gist options
  • Save SimonHoiberg/09978ae2fe308ba7ce77ace0a1979957 to your computer and use it in GitHub Desktop.
Save SimonHoiberg/09978ae2fe308ba7ce77ace0a1979957 to your computer and use it in GitHub Desktop.
# serverless.yml
stripe-create-subscription:
handler: dist/lambdas/stripe/createSubscription.handler
events:
- http:
path: stripe/create-subscription
method: post
environment:
STRIPE_SECRET_KEY: PUT-YOUR-SECRET-KEY-HERE
STRIPE_PRICE_ID: PUT-YOUR-PRICE-ID-HERE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment