This package provides a collection of functions to help with a Customers -> Marketplace -> Vendors Workflow using Stripe Connect.
All the provided functions internally uses the official NodeJS library for Stripe.
The following activity diagrams try to elucidate a rudimentary workflow. The various stages are labelled with the librarry function names to use in each case.
Installation & Basic Usage
Set up a Stripe Connect Account and obtain the Secret key, which is in the form
Install:npm install stripe-connect-functions
Initialize:const stripeConnect = "sk_myapp_k9DHwQESw7ntTGzdjS7vFsHs"// ^^ Remember to replace with your own key!
Use:stripeConnect// returns a Promise!
For details, check the Api Docs HERE.
For Unit Tests, Ava is being used. Code Coverage is provided by nyc/istanbul. All calls to the Stripe API are stubbed.
To run the included tests:
npm run test## Or, if you don't want code coverage:npm run test:nocoverage