Posted on June 10th, 2008 in Programming, Rails with no comments
Posted on June 4th, 2008 in Programming, Rails with no comments
Been playing around with accessing Braintree transactions from ActiveResource, using the Query API in particular. Thanks to the folks over at QuarkRuby, getting started was quite easy, so I figured I might as well post what I have for the uninitiated.
pastie
To get started using the API, use commands like the following:
t = Braintree.find(:all, :params => {:username => 'btdemo', :password => 'btdemo123', :last_name => 'Lin'})
t.each do |transaction|
transaction.gimme_my_money
end
Pretty straightforward stuff if you want to incorporate this into your Rails app, either for integration test verification or some admin pages.
Posted on June 2nd, 2008 in Uncategorized with no comments
Posted on June 2nd, 2008 in Programming, Rails with no comments
Posted on May 31st, 2008 in Uncategorized with no comments
Posted on May 26th, 2008 in Uncategorized with no comments
Posted on May 26th, 2008 in Uncategorized with no comments
Posted on May 25th, 2008 in Rails, Uncategorized with no comments
Posted on April 26th, 2008 in Uncategorized with no comments