Coder Social home page Coder Social logo

braspag-pagador's Issues

Função GetJustClickKeyRequest

Eu cheguei a implementar a função GetJustClickKeyRequest. Gostaria de incluir no projet ou alguém posso adicionar essa função. Segue os códigos em anexo.

File: recurency_credit_card.rb

def get_just_click_key(request_id)
      response = self.soap_request(:get_just_click_key, request_id)
      status = response[:success]

      ActiveMerchant::Billing::Response.new(status,nil,response,:test => homologation?)
    end

File: core/connection.rb (Linha 69)

when :get_just_click_key
        protected_card_url + "/CartaoProtegido.asmx?wsdl"

Aguardo a ajuda!

Rewrite History

Hi

I'm the developer of this branch, unfortunately i don't have time for finish this work, and first great thanks for keep maintain !

Only when your mention this is based on work of codeminer42, it's not right, the first start project is gonow with (@drec18, @ricardoalmeida) , after forked by me, @lenonmarcel, @tinogomes, @madsoncardo, @lucabastos, @cassiomarques, and after used by codeminer42 and re-again forked by @vinicusbaggio, after this point, i rewrite all code based in active merchant approach.

Erro em homologação

Olá,

Estou usando a gem e adicionado o merchant_id gerado na sandbox que o braspag me forneceu. Usei o código parecido com o do README só que sempre aparece isso:

StandardError: {"amount"=>"10.00", "number"=>nil, "message"=>"Merchant is not available for transaction", "return_code"=>"146", "status"=>nil, "transaction_id"=>nil}

Não consegui encontrar esse erro na documentação da API.

Regular Expression Error

Hi,
I just added the gem in my gemfile. The bundle installed ok, but when I try to run the app, look what happens: (the only change was the gem)

.rvm/gems/ruby-2.1.0@global/gems/activemodel-4.0.2/lib/active_model/validations/format.rb:46:in `check_options_validity': The provided regular expression is using multiline anchors (^ or $), which may present a security risk. Did you mean to use \A and \z, or forgot to add the :multiline => true option? (ArgumentError)
    from /Users/fredguth/.rvm/gems/ruby-2.1.0@global/gems/activemodel-4.0.2/lib/active_model/validations/format.rb:20:in `check_validity!'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0@global/gems/activemodel-4.0.2/lib/active_model/validator.rb:143:in `initialize'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0@global/gems/activemodel-4.0.2/lib/active_model/validations/with.rb:87:in `new'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0@global/gems/activemodel-4.0.2/lib/active_model/validations/with.rb:87:in `block in validates_with'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0@global/gems/activemodel-4.0.2/lib/active_model/validations/with.rb:86:in `each'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0@global/gems/activemodel-4.0.2/lib/active_model/validations/with.rb:86:in `validates_with'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0@global/gems/activemodel-4.0.2/lib/active_model/validations/validates.rb:119:in `block in validates'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0@global/gems/activemodel-4.0.2/lib/active_model/validations/validates.rb:109:in `each'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0@global/gems/activemodel-4.0.2/lib/active_model/validations/validates.rb:109:in `validates'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0/gems/braspag-pagador-1.0.0/lib/braspag-pagador/core/order.rb:67:in `block in <class:Order>'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0/gems/braspag-pagador-1.0.0/lib/braspag-pagador/core/order.rb:64:in `each'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0/gems/braspag-pagador-1.0.0/lib/braspag-pagador/core/order.rb:64:in `<class:Order>'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0/gems/braspag-pagador-1.0.0/lib/braspag-pagador/core/order.rb:30:in `<module:BraspagPagador>'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0/gems/braspag-pagador-1.0.0/lib/braspag-pagador/core/order.rb:1:in `<top (required)>'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0/gems/braspag-pagador-1.0.0/lib/braspag-pagador.rb:17:in `require'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0/gems/braspag-pagador-1.0.0/lib/braspag-pagador.rb:17:in `<top (required)>'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.1/lib/bundler/runtime.rb:76:in `require'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.1/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.1/lib/bundler/runtime.rb:72:in `each'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.1/lib/bundler/runtime.rb:72:in `block in require'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.1/lib/bundler/runtime.rb:61:in `each'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.1/lib/bundler/runtime.rb:61:in `require'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.1/lib/bundler.rb:131:in `require'
    from /Users/fredguth/Dropbox/Work/ChaDeFraldas/config/application.rb:7:in `<top (required)>'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0@global/gems/railties-4.0.2/lib/rails/commands.rb:74:in `require'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0@global/gems/railties-4.0.2/lib/rails/commands.rb:74:in `block in <top (required)>'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0@global/gems/railties-4.0.2/lib/rails/commands.rb:71:in `tap'
    from /Users/fredguth/.rvm/gems/ruby-2.1.0@global/gems/railties-4.0.2/lib/rails/commands.rb:71:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.