Connect Rails and QuickBooks Online via Sandbox
A better way: Sandboxes
In my series on wiring up Rails and QBO you needed to have a real QBO account to test against. Intuit was good about giving free trial accounts but that process has been eliminated with regards to U.S. based QuickBooks Online. In its place is the much more proper concept of a sandbox. In this screencast, I will upgrade the "Minimulcasts" app to use a sandbox, therefore, see this as an amendment to part 1 of the original series.
- To create a sandbox, go to https://developer.intuit.com and sign in. At the bottom of the page, click on the link for setting up a sandbox.
- Upgrade Rails and the Quickbooks-Ruby Gem
- Bundle update Rails and Quickbooks-Ruby Gem
- Enable Sandbox mode in
config/initializers/quickbooks.rband use shell variables.
- Restart pow
- Go to
- Click on the "Connect to Intuit button" and authorize your sandbox for usage.
- To test, make a new vendor. Don't update an existing vendor as that will not work because it doesn't exist in this new sandbox.
- Vendor should show up in your sandbox. (make sure you refresh the Vendor's link on the left side).
# previous : gem 'rails', '4.0.2' gem 'rails', '4.1.6' # previous : gem 'quickbooks-ruby', git: 'git://github.com/ruckus/quickbooks-ruby.git' gem 'quickbooks-ruby', github: 'ruckus/quickbooks-ruby'
$ bundle update rails $ bundle update quickbooks-ruby
# previous : QB_KEY = "
" # previous : QB_SECRET = " " QB_KEY = ENV['MINIMULCASTS_CONSUMER_KEY'] QB_SECRET = ENV['MINIMULCASTS_CONSUMER_SECRET'] # add to the end of file Quickbooks.sandbox_mode = true
$ touch tmp/restart.txt
- Remember the check the screencast for more details as well as the repo.