Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexmacarthur/netlify-lambda-function-example
An example Netlify Lambda function that processes payments with Stripe.
https://github.com/alexmacarthur/netlify-lambda-function-example
jamstack lambda netlify serverless serverless-functions stripe stripe-checkout
Last synced: 3 months ago
JSON representation
An example Netlify Lambda function that processes payments with Stripe.
- Host: GitHub
- URL: https://github.com/alexmacarthur/netlify-lambda-function-example
- Owner: alexmacarthur
- Created: 2018-01-29T13:11:28.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T21:37:17.000Z (about 2 years ago)
- Last Synced: 2024-10-12T02:50:28.499Z (4 months ago)
- Topics: jamstack, lambda, netlify, serverless, serverless-functions, stripe, stripe-checkout
- Language: JavaScript
- Homepage: https://macarthur.me/posts/building-a-lambda-function-with-netlify
- Size: 959 KB
- Stars: 97
- Watchers: 4
- Forks: 31
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Netlify Lambda Function Example
[![Build Status](https://travis-ci.org/alexmacarthur/netlify-lambda-function-example.svg?branch=master)](https://travis-ci.org/alexmacarthur/netlify-lambda-function-example)
This is an example serverless function using [Netlify's](https://www.netlify.com/) Lambda function service. It processes payments with Stripe, using [Stripe Checkout](https://stripe.com/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](https://macarthur.me)