TrustCommerce Subscription plugin updated

February 9th, 2007 PluginsRails

I updated the TrustCommerce Subscription plugin today. I strongly recommend you grab this latest version which is better tested, better documented, more flexible, and has fewer dependencies.

Updated 2-13-2007

I just updated the plugin once again to incorporate two things.

Robby Russell commented that it'd be nice to be able to access the response hashs via symbols. So that's now in place. This change is implemented via the indifferent hash code from active_support so this change does not affect current users indexing via strings.

The main change is the incorporation of Mocha for testing both methods of access - TCLink and HTTPS. Gotta love mocha!

--- --- ---

7 Comments

  1. Comment by Robby Russell on 02/13/07

    Great, I was just starting to dive into this. :-) Any chance that you could have all the response hash keys use symbols? ;-)

  2. Comment by Zack on 02/13/07

    Robby - good idea. I've put this change in place. See my comments in this updated post.

  3. Comment by Robby Russell on 02/14/07

    Okay, I got my test account and am trying to use the examples directly from the README and it doesn't work, but if I run your tests those pass. (confused...) What's your email? :-)

  4. Comment by Robby Russell on 02/14/07

    Okay, when I .inspect the response, I am seeing the following.

    {"status"=>"baddata", "error"=>"merchantcantaccept", "offenders"=>"action"}

    Thoughts?

    This is when I use the .create example at the top of the README file.

  5. Comment by Robby Russell on 02/14/07

    Oh, I see the issue. The format of the config/environment.rb settings changed. :-)

    *tries again(

  6. Comment by Zack on 02/14/07

    Robby - I just reran the examples from the README and they worked fine. This problem happens when the account is not setup with Citadel support. Contact TC support and they can dig through the logs but I'm pretty sure this is it. I had the same problem when I first signed up.

    Also I updated the README with support info and email address.

  7. Comment by Robby Russell on 02/15/07

    Zack,

    Looks like everything is alright at the moment. I might work on another tutorial for using it. I'm not following the approach entirely like your example, going to take advantage of the store action and have recurring payments against the stored data get managed from Rails rather than on the TC-side.

    Thanks for the quick follow-ups!

Commenting is closed for this article.