1

I am using papal_adaptive gem. I provided my paypal sandbox account details in papal_adaptive.yml file. When I call pay_request = PaypalAdaptive::Request.new, it throws the error below:

    You have a nil object when you didn't expect it!
    You might have expected an instance of ActiveRecord::Base.
    The error occurred while evaluating nil.[]
Charles
  • 50,943
  • 13
  • 104
  • 142
divya_nyros
  • 101
  • 2
  • 2
  • 7

1 Answers1

0

Sorry, this is an old thread, but I just wanted to answer your question since I stumbled upon it: when you get this error with the paypal_adaptive gem it is more than likely an error in the hashes in the request you sent to PayPal: check your logs, there should be some indication of which hash is bad.

varatis
  • 14,494
  • 23
  • 71
  • 114