Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Unit tests with Authorize.net and ARB

Reply
Thread Tools

Unit tests with Authorize.net and ARB

 
 
Jake Janovetz
Guest
Posts: n/a
 
      12-13-2007
Hey folks--

I'm using Authorize.net and their ARB (automatic recurring billing)
feature. I'm trying to write unit tests for the interface to make sure
that I can create/update/cancel subscriptions and also get proper errors
back.

I have a developer's test account, so I can run in "Test" and "Normal"
mode without any ill effects.

In TEST mode, if I submit a valid create_subscription call, I get an
error:
E00009: The payment gateway account is in Test mode. The request cannot
be processed.

If I switch to NORMAL mode, and I submit a valid create_subscription,
this works just fine -- the first time. Problem is, I want to do this
sort of thing multiple times, as is the nature with unit tests.

Unfortunately, I then get the error:
E00012: You have submitted a duplicate of Subscription 215771. A
duplicate subscription will not be created.


I suppose I can 'cancel' any subscription that has been successfully
created, but I'd prefer a better way to work this. Any suggestions?

I know this is more of an Authorize.net question, but their developer
support is pretty slow, so I thought I'd ask here for any experience
from this camp.

Cheers,
Jake
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unit tests available for Membership, Role, and Profile providers? Roger Martin ASP .Net 0 05-28-2008 09:22 PM
Unit-Tests for WebForms and CruiseControl macap ASP .Net 0 05-14-2008 09:14 AM
unit tests and string comparisons Joe Van Dyk Ruby 6 01-12-2006 01:50 PM
Constant.t fails 240 of 272 tests and recurs.t fails 1 of 25 tests on HPUX using perl 5.8.7 dayo Perl Misc 11 12-16-2005 09:09 PM
set and frozenset unit tests? Jacob Page Python 5 07-15-2005 05:16 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57