{"action":"created","issue":{"url":"https://api.github.com/repos/conekta/conekta-ruby/issues/16","labels_url":"https://api.github.com/repos/conekta/conekta-ruby/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/conekta/conekta-ruby/issues/16/comments","events_url":"https://api.github.com/repos/conekta/conekta-ruby/issues/16/events","html_url":"https://github.com/conekta/conekta-ruby/issues/16","id":71400210,"number":16,"title":"NameError (uninitialized constant Conekta::ValidationError)","user":{"login":"ingluisdmz","id":8811561,"avatar_url":"https://avatars.githubusercontent.com/u/8811561?v=3","gravatar_id":"","url":"https://api.github.com/users/ingluisdmz","html_url":"https://github.com/ingluisdmz","followers_url":"https://api.github.com/users/ingluisdmz/followers","following_url":"https://api.github.com/users/ingluisdmz/following{/other_user}","gists_url":"https://api.github.com/users/ingluisdmz/gists{/gist_id}","starred_url":"https://api.github.com/users/ingluisdmz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ingluisdmz/subscriptions","organizations_url":"https://api.github.com/users/ingluisdmz/orgs","repos_url":"https://api.github.com/users/ingluisdmz/repos","events_url":"https://api.github.com/users/ingluisdmz/events{/privacy}","received_events_url":"https://api.github.com/users/ingluisdmz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-27T21:00:20Z","updated_at":"2015-07-07T22:45:54Z","closed_at":"2015-04-28T00:29:21Z","body":"Hello i have a this error:\r\n def action\r\n   \trequire \"conekta\"\r\n\tConekta.locale = :es\r\n\tConekta.api_key = \"ENV['PRIVATE_KEY_KONECTA']\"\r\n\t\t\t\t\r\n\tpago=OnlinePayment.create!(:empresa_id => current_empresa.id,:cantidad => params[:card][:cantidad],:active => true,:token_card => params[:token_pago],:pagado => false,:nombre => params[:card][:name])\r\n\t\r\npago.token_card=\"tok_test_visa_4242\"\r\n\t\t\t\t\r\n\t\t\t\tcharge = Conekta::Charge.create({\r\n\t\t\t\t    amount: pago.cantidad,\r\n\t\t\t\t    currency: \"MXN\",\r\n\t\t\t\t    description: \"Recompensa\",\r\n\t\t\t\t    reference_id: pago.id,\r\n\t\t\t\t    card: pago.token_card, \r\n\t\t\t\t    details: {\r\n\t\t\t\t      email: \"luisdmz92@gmail.com\"\r\n\t\t\t\t    }\r\n\t\t\t\t})\r\n\r\n\t\t\t\tputs charge.to_s\r\n\r\n\t\trescue Conekta::ValidationError => e\r\n\t\t  puts e.message_to_purchaser \r\n\t\t#some of the parameters were invalid\r\n\t\trescue Conekta::ProcessingError => e\r\n\t\t  puts e.message_to_purchaser \r\n\t\t#the card could not be processed\r\n\t\trescue Conekta::Error\r\n\t\t  puts e.message_to_purchaser \r\n\r\n\t\trescue Exception => e\r\n\t\t\tputs e\r\n\t\t\trender :json => {:success => 0,:message => e.message}, :callback => params[:callback]\r\n\t\tend\r\nend"},"comment":{"url":"https://api.github.com/repos/conekta/conekta-ruby/issues/comments/119365474","html_url":"https://github.com/conekta/conekta-ruby/issues/16#issuecomment-119365474","issue_url":"https://api.github.com/repos/conekta/conekta-ruby/issues/16","id":119365474,"user":{"login":"obelich","id":278037,"avatar_url":"https://avatars.githubusercontent.com/u/278037?v=3","gravatar_id":"","url":"https://api.github.com/users/obelich","html_url":"https://github.com/obelich","followers_url":"https://api.github.com/users/obelich/followers","following_url":"https://api.github.com/users/obelich/following{/other_user}","gists_url":"https://api.github.com/users/obelich/gists{/gist_id}","starred_url":"https://api.github.com/users/obelich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obelich/subscriptions","organizations_url":"https://api.github.com/users/obelich/orgs","repos_url":"https://api.github.com/users/obelich/repos","events_url":"https://api.github.com/users/obelich/events{/privacy}","received_events_url":"https://api.github.com/users/obelich/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T22:45:54Z","updated_at":"2015-07-07T22:45:54Z","body":"ok thanks "}}