# Payment gem, server anomolies

**URL:** <https://www.ruby-forum.com/t/payment-gem-server-anomolies/98348>\
**Category:** Rails\
**Created:** [July 14, 2006, 12:52am UTC](https://www.ruby-forum.com/t/payment-gem-server-anomolies/98348 "2006-07-14T00:52:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tehn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/51bf81/32.png) [@tehn](https://www.ruby-forum.com/u/tehn)\
**Post date:** [July 14, 2006, 12:52am UTC](https://www.ruby-forum.com/t/payment-gem-server-anomolies/98348/1 "2006-07-14T00:52:07Z")

</div>

so i have the payment gem working perfectly in our app, running locally  
on my system.

uploaded a copy of the app file structure to our server (a rimu rhel3),  
but now the payment gem is unresponsive. it throws exceptions with no  
error message.

i’m looking for a suggestion how to debug this.

running updated gems and versions on both systems. they seem identical,  
unless i’m missing something tricky?

any guesses would be appreciated. cheers!

---

<div class="post-metadata">

**Author:** ![tehn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/51bf81/32.png) [@tehn](https://www.ruby-forum.com/u/tehn)\
**Post date:** [July 14, 2006, 1:35am UTC](https://www.ruby-forum.com/t/payment-gem-server-anomolies/98348/2 "2006-07-14T01:35:26Z")

</div>

so given the example code:

def pay\_test  
transaction = Payment::AuthorizeNet.new (  
:login =\> ‘cnpdev4206’,  
:password =\> ‘authnet001’,  
:amount =\> ‘5.00’,  
:card\_number =\> ‘4012888818888’,  
:expiration =\> ‘03/10’  
)

```
  begin
    transaction.submit
    flash[:notice] = "ok: #{transaction.authorization}"
  rescue
    flash[:notice] = "oops: #{transaction.error_message}"
  end

```

## end

with the ‘require’ at the top of course.

after messing with the payment code, i think the exception isn’t being  
thrown by payment, but by ruby, like payment gem not found, so the  
variable is bunk, although the ‘AuthorizeNet.new’ still checks out ok?

‘gem list’ shows payment loud and clear.

any ideas?

---

<div class="post-metadata">

**Author:** ![tehn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/51bf81/32.png) [@tehn](https://www.ruby-forum.com/u/tehn)\
**Post date:** [July 14, 2006, 1:55am UTC](https://www.ruby-forum.com/t/payment-gem-server-anomolies/98348/3 "2006-07-14T01:55:18Z")

</div>

getting a lead here:

NoMethodError in PagesController#pay\_test

undefined method `use\_ssl=’ for #\<Net::HTTP [test.authorize.net:443](http://test.authorize.net:443)  
open=false\>

isn’t Net:HTTP a base class?

---

<div class="post-metadata">

**Author:** ![tehn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/51bf81/32.png) [@tehn](https://www.ruby-forum.com/u/tehn)\
**Post date:** [July 22, 2006, 1:31am UTC](https://www.ruby-forum.com/t/payment-gem-server-anomolies/98348/4 "2006-07-22T01:31:40Z")

</div>

Did you ever figure out what happened here? I have the same problem  
with the same server. Works locally on my machine but when I upload to  
the server, it breaks. I tried installing ruby 1.8.2 and openssl but  
the same error message comes up.
