Coder Social home page Coder Social logo

stripe-connect-node's Introduction

A simple Stripe Connect Node demo app

This is a simple Stripe Connect application written in Node.js with Express. At this point it doesn't do a whole lot, and the intention is primarily to provide a general example to help you get up and running with Stripe Connect. It was totally stolen from is heavily inspired by A simple PHP Stripe Connect example using OAuth 2.

Some important things you should know right off the bat

  • This isn't, by any means, ready for production.
  • You should read over Stripe's Connect documentation as a first step.
  • This example uses Express and Pug to try to keep the actual logic as clear as possible. In theory I could've chosen any framework, but I'm most familiar with Express, so that's what you got.
  • This application uses an OAuth 2.0 client library provided by the Mulesoft. Though it's possible to build the OAuth flow out yourself, it's recommended that you use an OAuth library like this one.
  • Since the goal here is just to show the connection process, this application doesn't make use of any database. IRL, you'll want to save at least the account ID to your database when your user connects so you can do things on their behalf later.
  • This integration uses standalone accounts, so you can either create a new test account using some test data, or connect an existing account.

Getting started

Clone this repository:

git clone https://github.com/floatingLomas/stripe-connect-node.git

Log in to your Stripe account (or create one) and register your application as a platform. Set a redirect URI in Stripe that points to https://localhost:3000/connected (or whatever you want to set below).

Copy config/template.js to config/index.js and add your test secret key, development client ID, redirect URL and the port you want to listen on there.

Run npm install from the project's root directory to install dependencies, then npm start to get rolling.

stripe-connect-node's People

Contributors

floatinglomas 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.