Skip to content

lwcooper/01-begin-with-stripe-api-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Begin with Stripe

This repository is used as a base for a Stripe API server as part of the final project for WDD01. It is an API built with Begin to get products and start checkout sessions using Stripe

Endpoints

  • GET products - Responds with the List all products response from Stripe.

  • GET prices - Responds with the List all prices response from Stripe.

  • POST checkout-session - Responds with a Session ID, obtained from Create Session.

    • Request body:

      {
        "quantity": 2,
        "priceId": "price_12345"
      }

Deploy your own

Deploy to Begin

Deploy your own clone of this app to Begin!

Getting started

  • Start the local dev server: npm start
  • Lint your code: npm run lint (after you've installed a linter, of course)
  • Run your tests: npm t (don't forget to write some!)

Begin Reference

  • Quickstart - basics on working locally, project structure, deploying, and accessing your Begin app
  • Creating new routes - basics on expanding the capabilities of your app

Head to docs.begin.com to learn more!

About

Begin app

Resources

License

Stars

Watchers

Forks

Packages

No packages published