Topic: can't hit the payment.yaml file

trying to put login and transaction_key stuff in a yaml file in the config directory.


in the controller..

 @transaction = Payment::AuthorizeNet.new(
                            :prefs       => "#{RAILS_ROOT}/config/payment.yml",
                            # :login => 'xxxx,
                            # :transaction_key => 'yyyy',  ...

the payment.yaml  looks like this:

login: "xxxx"
transaction_key: "yyyy"

and tried this as well from the Rails Ecommerce book

login: <xxxx>
transaction_key: <yyyy>

Any idea why this doesn't connect to the yaml. Works fine with the :prefs commented and the login/transaction_key uncommented...

thanks

Last edited by chasC (2006-11-10 12:22:08)