Forum: Ruby on Rails ActiveMerchant

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Pawel S. (Guest)
on 2006-05-30 23:19
(Received via mailing list)
Is anyone using ActiveMerchant currently?

I've seen it recommended on this list several times, but it seems kind
of buggy and incomplete and I'm having trouble getting it to work.

>From the example at, I've tried:

gateway = ActiveMerchant::Base.gateway(:authorized_net)
response = gateway.capture(1000, creditcard)

..but it doesn't work (uninitialized constant Base). I had to modify
the above to add the module name:

gateway = ActiveMerchant::Billing::Base.gateway(:bogus)
response = gateway.capture(1000, creditcard)

I'm currently getting an error like:

undefined method `authorize' for

Though the method is implemented in both the bogus and base classes. I
have this installed as a plugin from svn for rails 1.1 under ruby
1.8.4. Just wonder if there's a really obvious solution that I'm


seth b. (Guest)
on 2006-05-30 23:29
(Received via mailing list)
I use Payment for Substruct. Works wonderfully for charges and voids.
Pawel S. (Guest)
on 2006-05-30 23:41
(Received via mailing list)
On 5/30/06, subimage interactive <removed_email_address@domain.invalid> wrote:
> I use Payment for Substruct. Works wonderfully for charges and voids.

I looked into Payment, but I needed the ability to authorize and then
capture at a later date and it didn't seem like Payment implemented
that at first glance. Though now that you mentioned voids, I took a
second look at the source and noticed that there is indeed an
AUTH_ONLY transaction type in there. I'll probably give it a second
look. Thanks!

In the mean time, I've found that initializing the billing class
directly seems to do the trick:

gateway =

Not sure what's up with the example code though.

This topic is locked and can not be replied to.