Forum: Ruby Payment Gem error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Robert MannI (Guest)
on 2006-05-21 21:15
(Received via mailing list)
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:in
`expand_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
A LeDonne (Guest)
on 2006-05-22 18:03
(Received via mailing list)
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
This topic is locked and can not be replied to.