Coder Social home page Coder Social logo

eshnil2000 / api-lambda-stripe-charge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from simalexan/api-lambda-stripe-charge

0.0 1.0 0.0 794 KB

AWS Serverless Application Repository Stripe Charge Serverless Component

JavaScript 92.28% TypeScript 7.72%

api-lambda-stripe-charge's Introduction

API Gateway -> Lambda -> Stripe Charge Payment (Checkout)

Description

This is a serverless component consisting of an API and Lambda functions that charge / capture / refund a Stripe account based on the API Gateway request data. Supports CORS. Written in Node.js.

Requirements (Setup)

  1. Create a Stripe account
  2. Get your Stripe API Keys (both public and secret)
  3. Store your Stripe Secret Key into AWS SSM as a SecureString by running the following, but be sure to replace the lambda-stripe-charge/stripe-secret-key with your preferred SSM Parameter Path (though it can be just lambda-stripe-charge/stripe-secret-key):
aws ssm put-parameter --name /lambda-stripe-charge/stripe-secret-key --value YOUR_STRIPE_SECURE_KEY --type SecureString --overwrite
  1. Want to use Stripe's Checkout ? - https://stripe.com/docs/checkout (most likely others are supported too, but can't guarantee, need to check)
  2. Set your frontend part as specified in the https://stripe.com/docs/checkout#integration
  3. Extend your form with hidden input HTML elements for amount and currency. Those fields you will need to populate with the values chosen by the user. If not familiar with that approach I recommend this StackOverflow post - https://stackoverflow.com/questions/37798593/stripe-checkout-how-to-pass-a-value-through-to-webhook

Will provide a video link on YouTube soon, as I will stream using this AWS App Repo template.

Latest Release - 4.4.1

Changing to Node.js 10.x Runtime For Lambda

Previous Release 4.4.0

  • Added Active X-Ray Tracing

api-lambda-stripe-charge's People

Contributors

dependabot[bot] avatar heitorlessa avatar simalexan avatar simoneismann avatar youngpayters 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.