Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/renderedtext/stripe-example
implementing stripe features in a rails app
https://github.com/renderedtext/stripe-example
Last synced: 27 days ago
JSON representation
implementing stripe features in a rails app
- Host: GitHub
- URL: https://github.com/renderedtext/stripe-example
- Owner: renderedtext
- Created: 2012-03-26T11:05:31.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-03-22T22:49:34.000Z (almost 13 years ago)
- Last Synced: 2023-03-11T00:53:50.088Z (almost 2 years ago)
- Language: Ruby
- Homepage: https://stripe-example.herokuapp.com/
- Size: 211 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Stripe Example
==============Reference implementation of stripe interface
## About
URLs:
- Github: https://github.com/bm5k/stripe-example/
- Documentation: http://rubydoc.info/github/BM5k/stripe-example/master/frames
- Staging server: https://stripe-example.herokuapp.com## Configuration
You will need to add plans to your stripe account!
## Development
```bash
$ git clone [email protected]:bm5k/stripe-example.git # clone the repo
$ cd stripe-example
$ bundle install # install all dependencies, we recommend using RVM
$ cp config/database.sample.yml config/database.yml # use the default database.yml (or customize it)
$ cp config/stripe.sample.yml config/stripe.yml # add your own keys or you'll be sorry
$ rake db:setup # creates the development database
$ ./script/server # start the server
```## Testing
Tools used:
- rspec
- capybara
- factory girl```bash
rake spec # this will run all of the RSpec specifications, located in ./spec
```- Specs are organized into Models & Integration specs (/spec/models, /spec/requests)
- Model Factories are located in /spec/factories.rb## Deployment
Recommended deployment is done via [Heroku](http://heroku.com). They have an excellent intro at http://docs.heroku.com/quickstart
### Environment Variables
Use the heroku config command to check/set environemnt variables on Heroku.
- **STRIPE_APP_ID**: the stripe application id
- **STRIPE_SECRET**: the stripe secret## Credits
Developed by Dev Fu!, LLC. http://devfu.com