raphaelcosta / braspag-pagador Goto Github PK
View Code? Open in Web Editor NEWGemm to use Brazillian Braspag gateway - Based on cbraspag
License: MIT License
Gemm to use Brazillian Braspag gateway - Based on cbraspag
License: MIT License
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!
É possível consultar o status de uma transação?
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.
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.
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>'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.