zerosum dirt(nap)

evolution through a series of accidents

zerosum dirt(nap)

Flexible Payments With Rails & REST

November 09, 2007 @ 12:20 PM by nap · 3 comments

Anyone who’s been playing around with the original Rails version of the Amazon Flexible Payments Service sample application has probably spent a fair amount of time swearing and complaining about how incredibly un-idiomatic and ugly it is. I know I have. It’s not that we don’t appreciate Amazon wanting to play ball with us, it’s just that it’s… well… it’s damn ugly.

But wait, a few weeks ago, a new REST-based Rails sample app was posted. This time around it’s a far more basic “hello world”-ish app, but it’s much more idiomatic and clean, a far better starting place for anyone who wants to learn how to make pay calls with FPS using Ruby and Rails. It’s also thankfully devoid of soap4r dependencies.

Just thought I’d note that, in case you’re working with FPS and haven’t stumbled upon it yet.

In related news, there’s a RubyForge project for a library called Remit, which purports to be a proper Ruby API wrapper for FPS. Tyler Hunt is the developer who’s registered the project and is working on it. With no updates since early September though, and no files released, I wonder if the project hasn’t maybe been aborted? Tyler, if you’re out there, give a shout and let us know if you need a hand.

3 comments so far ↓

  • Tyler Hunt // November 12, 2007 @ 08:48 AM

    Despite the lack of activity on RubyForge, Remit is still being actively developed.I'm not quite ready to push out the code yet as there is still one significant known issue with it, we should be able to release something soon. I've been working with Micah Wedemeyer and Jim Mulholland to get the API tested and cleaned up before the initial release. As soon as we feel confident that it's usable out of the box, it will be up on RubyForge for all to use. Thanks for the interest, and I look forward to getting the code into your hands soon.

  • nap // November 12, 2007 @ 11:46 AM

    @tyler -- That's great news man. Very much looking forward to a clean Ruby API! What we're using now is... less than ideal. In fact, I'd just started thinking about building a wrapper interface for the library when I ran across a reference to your work in the Amazon forums. It's certainly no small task, and I'm sure there are a lot of other people out there who will be just as glad when it's released. Thanks!

  • Whatever-ishere // November 21, 2007 @ 01:56 PM

    thanks for the GREAT post! Very useful...

Leave a Comment