Skip to content
An example Netlify Lambda function that processes payments with Stripe.
JavaScript HTML
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lambda-src Remove unnecessary .gitkeep. Jun 5, 2019
src Freshen up JS features, update documentation, etc. Jun 5, 2019
.babelrc Freshen up JS features, update documentation, etc. Jun 5, 2019
.editorconfig
.gitignore Remove lambda directory again. Jun 6, 2019
.travis.yml
README.md Freshen up JS features, update documentation, etc. Jun 5, 2019
env.sample Freshen up JS features, update documentation, etc. Jun 5, 2019
netlify.toml Set npm and node versions. Jun 5, 2019
package-lock.json Freshen up JS features, update documentation, etc. Jun 5, 2019
package.json Explicitly build function. Jun 5, 2019
webpack.config.js Freshen up JS features, update documentation, etc. Jun 5, 2019

README.md

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

You can’t perform that action at this time.