lib/helpers/controller_helpers.rb in wepay-rails-0.1.97 vs lib/helpers/controller_helpers.rb in wepay-rails-0.1.98

- old
+ new

@@ -25,10 +25,14 @@ # &code=[the code you got in step one] # # Response # {"user_id":"123456","access_token":"1337h4x0rzabcd12345","token_type":"BEARER"} Example def initialize_wepay_access_token(wepayable_object) #auth_code) + iwat_log = File.open('/tmp/init-wepay-access-token.log','w') + iwat_log.puts "wepayable_object is #{wepayable_object.inspect}" + iwat_log.puts "wepayable_column is #{WepayRails::Configuration.wepayable_column}" auth_code = wepayable_object.send(WepayRails::Configuration.wepayable_column.to_sym) + iwat_log.puts "Auth code was #{auth_code}" session[unique_wepay_access_token_key] = wepay_gateway.access_token(auth_code) return rescue WepayRails::Exceptions::ExpiredTokenError => e redirect_to_wepay_for_auth(wepayable_object) and return end \ No newline at end of file