Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

romansorin/plaid-stripe-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plaid-Stripe integration

Stripe resources

Stripe Docs, Stripe Keys

Plaid resources

Plaid Docs, Plaid Keys


Configuration

Setup

git clone https://github.com/romansorin/plaid-stripe-app.git
cd plaid-stripe-app

# Install all necessary dependencies, these can be found in package.json
npm install

.env

Create a .env (dotenv) file in the root directory (i.e., where you find index.js) and configure the following variables. These ensure your keys are secure and never shared in commits:

APP_PORT=3000
PLAID_CLIENT_ID=yourCID
PLAID_SECRET=yourSecretEnvironment
PLAID_PUBLIC_KEY=yourPK
PLAID_ENV=yourEnv

STRIPE_SECRET_KEY=yourSK

index.js

/* You'll also want to take a look at the method for creating Stripe customers, and configure
   as needed.
   --------------
   This is just a sample method which successfully creates a customer
   You can modify the fields which are stored automatically, refer to https://stripe.com/docs/api/customers/object
*/
stripe.customers.create({
  // ...
});

views/billing.ejs

/* Next, configure as needed:
*/
env: 'sandbox', // sandbox, development, production
clientName: 'Stripe + Plaid Test', // Change this to whatever you want
key: 'yourPublicKey' // This is your Plaid PUBLIC KEY

Terminal:

# If running or testing locally, type in console:
node index.js

# Go to http://localhost:[APP_PORT]

# Otherwise, see how your hosting provider handles Node.JS apps.

If you have any questions, feel free to email me at roman@romansorin.com. If needed in the future, I provide hosting services, design, and website/software development at romansorin.com

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published