node-stripe-example

Stars
25

Node Stripe Example

Node + Express + Stripe

Looking for a more complex example? Node Stripe Charge

Quick Start

  1. Fork/Clone

  2. Install dependencies:

    $ npm install
    
  3. create a .env and add the following env variable:

    STRIPE_SECRET_KEY=ADD-YOUR-OWN-KEY
    
  4. update src/client/js/main.js with your publishable key:

    Stripe.setPublishableKey('UPDATE ME');
    
  5. Fire up the app - npm start. Then, navigate to http://localhost:3000/products/1 in your browser of choice.