Skip to content

mikeyhodl/netlify-lambda-function-example

 
 

Repository files navigation

Netlify Status

Netlify Lambda Function Example

Build Status

This is an example serverless function using Netlify's Lambda function service. It processes payments with Stripe, using Stripe Checkout.

Read the Post

A full walkthrough of this example can be found on my blog:

https://macarthur.me/posts/building-a-lambda-function-with-netlify

Install

Run npm install.

Usage

Run npm run dev to locally serve the page at http://localhost:8080, as well as the function at http://locahost:9000/purchase.

After both of these processes are running, you'll be able to process a test purchase with Stripe. For your card number, use 4242424242424242.

See the Example

https://netlify-lambda.netlify.com

License

MIT © Alex MacArthur

About

An example Netlify Lambda function that processes payments with Stripe.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 63.6%
  • HTML 30.4%
  • Shell 6.0%