Add Purchase model
Add User model
Add Package model
-this model will be used to dynamically load the packages section
on the payment form
Add keys to Package model
Seed the database with packages
Dynamically load radio button labels for packages section of purchase form
-Add gems for Foundation front-end framework and Stripe API
Add select boxes for credit card expiration date
Add textfield for credit card CVC number
Add Stripe test publishable key to purchase form
Add JavaScript for Stripe API
-add function which sends a request to Stripe for a stripeToken
-add response handler callback function which appends a hidden field
containing the stripeToken onto the payment form
Add config/initializers/stripe.rb
-in purchases controller, add Stripe function to charge user's credit card
Add StripeModel
-define a class method in StripeModel which charges the user's credit card
Add Order model
-Order objects will be embedded in User objects
Embed Order in User model
-create new Order object as an embedded key
Correct the embedding of Orders
-modify Order class include statement
Add Lesson model
-Lessons are embedded in orders