Payment Gem error

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

On 5/21/06, Robert MannI [email protected] 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