Payment Gem error


#1

Hi!

I’m getting this error when trying to initialize Payment::AuthorizeNet

couldn’t find HOME environment – expanding ~/.payment.yml' /usr/local/lib/ruby/gems/1.8/gems/payment- 1.0.1/lib/payment/base.rb:21:inexpand_path’

Any ideas what this could be?

The payment source code that throws the error is:

prefs = File.expand_path(options[:prefs] || “~/.payment.yml”)

Executing File.expand_path("~/.payment.yml") in IRB works fine.

Any ideas? Thank alot…

Rob


#2

On 5/21/06, Robert MannI removed_email_address@domain.invalid wrote:

The payment source code that throws the error is:

prefs = File.expand_path(options[:prefs] || “~/.payment.yml”)

Executing File.expand_path("~/.payment.yml") in IRB works fine.

Try using a full path name (like “/home/username/.payment.yml”),
rather than something with a tilde (~).

-A