Go back to the main page

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.


  1. 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.
  2. Upgrade Rails and the Quickbooks-Ruby Gem
    # 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'
  4. Bundle update Rails and Quickbooks-Ruby Gem
  5. $ bundle update rails
      $ bundle update quickbooks-ruby
  6. Enable Sandbox mode in config/initializers/quickbooks.rb and use shell variables.
    # previous : QB_KEY = ""
    # previous : QB_SECRET = ""
    # add to the end of file
    Quickbooks.sandbox_mode = true
  8. Restart pow
  9. $ touch tmp/restart.txt
  10. Go to http://minimulcasts.dev
  11. Click on the "Connect to Intuit button" and authorize your sandbox for usage.
  12. 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.
  13. Vendor should show up in your sandbox. (make sure you refresh the Vendor's link on the left side).
  • Remember the check the screencast for more details as well as the repo.