Use the stripe-node library to wrap the Stripe API.
[x] Add dependency on stripe-node
[x] Add env variables for Stripe API keys to .env.example and documentation
[x] Add fields to organization table to store Stripe customer ID and email (#267)
[x] Add /subscription that receives result of Stripe Checkout form from web page, creates Stripe customer, adds Stockpile organization, and adds first user of organization
[x] Add error handling to /subscription that returns user-friendly error messages (Stripe API error reference)
Use the stripe-node library to wrap the Stripe API.
stripe-node
.env.example
and documentationorganization
table to store Stripe customer ID and email (#267)/subscription
that receives result of Stripe Checkout form from web page, creates Stripe customer, adds Stockpile organization, and adds first user of organization/subscription
that returns user-friendly error messages (Stripe API error reference)