Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not getting anything but nil as response in console #1

Open
jgrannas opened this issue Jan 6, 2015 · 0 comments
Open

Not getting anything but nil as response in console #1

jgrannas opened this issue Jan 6, 2015 · 0 comments

Comments

@jgrannas
Copy link

jgrannas commented Jan 6, 2015

I am able to use the create_customer_profile() method, which creates a profile on my authorize.net sandbox site... but in the console i get a nil response.

If i do some debugging in the send() function i can see a 200 response:

from the rails console - this creates a valid customer profile in CIM

2.1.2 :001 > p = AUTHORIZECIM.create_customer_profile({:merchant_id=>"2",:email=>"[email protected]"})
RESPONSE = #<Net::HTTPOK 200 OK readbody=true> 
BODY = #

 => nil 

config/initializers/authorize_cim.rb

if Rails.env == 'development'
  ::AUTHORIZECIM = AuthorizeCim.new(
   :login => "XXX",
   :key => "XXXXXXXXX",
   :endpoint => :test
  )
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant