I need to verify PayPal account, when user sign_up.
I have function(source - http://curry.byteally.com/finding-verification-status-of-a-paypal-account-ruby-on-rails-p
The API call structure is sound.
However, when you say you entered your credentials, did you make sure that you are using the right credentials for the right environment? Live credentials, and live accounts do not exist within the sandbox and viceversa. You can't check a live account's status against the checkbox because it simply does not exists in the sandbox "universe".
That would be the first thing to look at. If you feel your environments are correct, can you post the contents of res.content
to see what came back from the HTTP call?