maxio-com / chargify2

Chargify API V2 Ruby Wrapper
MIT License
13 stars 6 forks source link

Chargify2::Call isn't responding to methods #16

Closed zainzafar closed 11 years ago

zainzafar commented 11 years ago

Hi, Simple example:

chargify2 = Chargify2::Client.new(:api_id => ENV['CHARGIFY_DIRECT_API_ID'], :api_secret => ENV['CHARGIFY_DIRECT_API_SECRET'], :api_password => ENV['CHARGIFY_DIRECT_PASSWORD'], :base_uri => "https://api.chargify.com/api/v2/") 
call = chargify2.calls.read('xxxxxxx')
call.request.signup
=> {}
call.request['signup']
=> {"product"=>{"handle"=>"pro"}, "coupon_code"=>"", "customer"=>{"first_name"=>"Zain", "last_name"=>"Zafar", "email"=>"******@gmail.com"}, "payment_profile"=>{"first_name"=>"", "last_name"=>"", "card_number"=>nil, "expiration_month"=>"", "expiration_year"=>""}} 

This doesn't stop here, all the hash keys aren't symbolized either. Need to manually use .symbolize_keys for it to work.

jeremywrowe commented 11 years ago

@zainzafar This is a known issue. We are working on a new version of the gem and it should be out shortly

zainzafar commented 11 years ago

Thanks for the heads up!

mrmemes-eth commented 11 years ago

I'm experiencing this issue as well. Any idea when we'll see a fix?

jeremywrowe commented 11 years ago

this should be fixed in the release 0.2.6 - please let me know if you still experience problems after updating