Coder Social home page Coder Social logo

niko-la / netlify-lambda-function-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexmacarthur/netlify-lambda-function-example

0.0 1.0 0.0 422 KB

An example Netlify Lambda function that processes payments with Stripe.

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

JavaScript 67.67% HTML 32.33%

netlify-lambda-function-example's Introduction

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

netlify-lambda-function-example's People

Contributors

alexmacarthur avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.