documentation of the payment optoins component

This commit is contained in:
Jesse Grant
2013-01-14 17:20:22 -05:00
parent 46cc33fd5b
commit d7ca496a95
3 changed files with 10 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ Selfstarter is a starting point. We made some specific choices with Selfstarter
* We use Amazon Payments for payments. You can use [Stripe](https://stripe.com) or [WePay](https://www.wepay.com/). We used Kickstarter's awesome ```amazon_flex_pay``` gem.
* We collect multi-use tokens from customers with Amazon Payments - this let's us collect payment information without charging the customer until we are ready to ship
* Selfstarter doesn't come with any authentication, administration, mailers or analytics tools. We recommend adding a basic set of these so that you can message backers and manage orders.
* There is a payment options component that allows you to define different packages or levels for people to puchase/support at. You can turn it on and off with a configuration setting.
## Getting Started
*Note: This assumes you have Ruby 1.9.2 or later installed properly and have a basic working knowledge of how to use RubyGems*
@@ -32,6 +32,11 @@ Now let's create the database:
rake db:migrate
```
If you're using the payment options component (use_payment_options = true in settings.yml) then need to seed some data for the options:
```bash
rake db:seed
```
Let's get it running:
```bash
rails s

View File

@@ -44,7 +44,7 @@ price: 19.95
# if use_payment_options is set to true, then a set of radio buttons will be displayed with various payment options.
# There is a PaymentOption model for storing info about payment options. To set up your payment options you should
# put code in seeds.rb
# put code in seeds.rb, then run rake db:seed
use_payment_options: true
payment_description: "You really should change this text because people will see it on Amazon's order page!!!!!"
@@ -95,4 +95,4 @@ google_id: "1234567890"
# If you want to change the images for the key points (e.g. "Kickstarter is not a store")
# They're in app/assets/images/#{pointer_number}-background.png
# So, the first key point, it's at app/assets/images/1-background.png
# Alternatively, change it up in app/assets/stylesheets/homepage/key_points.css.scss
# Alternatively, change it up in app/assets/stylesheets/homepage/key_points.css.scss

View File

@@ -44,8 +44,8 @@ ActiveRecord::Schema.define(:version => 20130107010733) do
t.string "shipping_desc"
t.string "delivery_desc"
t.integer "limit"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "users", :force => true do |t|