# ActiveMerchant

**URL:** <https://www.ruby-forum.com/t/activemerchant/95383>\
**Category:** Rails\
**Created:** [May 30, 2006, 9:19pm UTC](https://www.ruby-forum.com/t/activemerchant/95383 "2006-05-30T21:19:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![makenai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8797f3/32.png) [@makenai](https://www.ruby-forum.com/u/makenai)\
**Post date:** [May 30, 2006, 9:19pm UTC](https://www.ruby-forum.com/t/activemerchant/95383/1 "2006-05-30T21:19:48Z")

</div>

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 [http://home.leetsoft.com/am/](http://home.leetsoft.com/am/), 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  
ActiveMerchant::Billing::BogusGateway:Class

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  
missing.

Thanks!

-Pawel

---

<div class="post-metadata">

**Author:** ![makenai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8797f3/32.png) [@makenai](https://www.ruby-forum.com/u/makenai)\
**Post date:** [May 30, 2006, 9:29pm UTC](https://www.ruby-forum.com/t/activemerchant/95383/2 "2006-05-30T21:29:15Z")

</div>

I use Payment for Substruct. Works wonderfully for charges and voids.

---

<div class="post-metadata">

**Author:** ![makenai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8797f3/32.png) [@makenai](https://www.ruby-forum.com/u/makenai)\
**Post date:** [May 30, 2006, 9:41pm UTC](https://www.ruby-forum.com/t/activemerchant/95383/3 "2006-05-30T21:41:57Z")

</div>

On 5/30/06, subimage interactive [removed\_email\_address@domain.invalid](mailto: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 = ActiveMerchant::Billing::BogusGateway.new()

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

-Pawel
