README.md in midas_client-0.1.1 vs README.md in midas_client-0.1.2

- old
+ new

@@ -1,9 +1,9 @@ # MidasClient -Midas Client its a Ruby GEM that's allow user to send requests do Anser Payment API +Midas Client its a Ruby GEM that's allow user to send requests to Anser Payment API -[[https://ansertecnologia.atlassian.net/wiki/x/EYCyAg]] +https://ansertecnologia.atlassian.net/wiki/x/EYCyAg ## Installation Add this line to your application's Gemfile: @@ -18,25 +18,64 @@ Or install it yourself as: $ gem install midas_client ## Usage +Credentials for Sandbox: +- user: pdv01 +- password: /eFRsg8RLne+I0GlECQofYvnsDfb0w== + +For details go to API Documentation +[https://ansertecnologia.atlassian.net/wiki/x/EYCyAg] + or visit Anser Gateway site at [https://ansertenologia.com] + +Use client as follow: + Request $ transaction = MidasClient::Transaction.new('pdv01','/eFRsg8RLne+I0GlECQofYvnsDfb0w==') $ transaction.card_store({"externalId":"teste_midas_client_00002", "pan":"5529525900844124", "expirationMonth":"01", "expirationYear":"2021", "holderName":"TESTE MIDAS CLIENT", "customer":{ "documentType":"CPF", "documentNumber":"36549450152"}}) Response $ [MIDAS_CLIENT][CALLER:request][17/05/2017 20:48:05.087]METHOD: post URL: https://sandbox.ansertecnologia.net/midas-core/v2/creditcard login: pdv01 password: /eFRsg8RLne+I0GlECQofYvnsDfb0w== payload: {:externalId=>"teste_midas_client_00002", :pan=>"552952@@@@@@4124", :expirationMonth=>"01", :expirationYear=>"2021", :holderName=>"TESTE MIDAS CLIENT", :customer=>{:documentType=>"CPF", :documentNumber=>"36549450152"}} $ [MIDAS_CLIENT][CALLER:request][17/05/2017 20:48:06.103][RESPONSE] {:result=>{:success=>true, :code=>"010", :message=>"O cartao jah foi armazenado anteriormente"}, :brand=>"MASTER", :cardToken=>"f887d732863eb3ef2e45c0bd8b57ed33"} -## Development +## Change Releases +VERSION - 0.1.2 - 2017/05/19 -After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. +Operations available: Subscriptions +- Update Subscription +- Update Invoice +- bugfix +- read.me -To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). +VERSION - 0.1.1 - 2017/05/16 + +Operations available: Subscriptions +- Implementing logging features +- bugfix + +VERSION - 0.1.0 - 2017/05/15 + +Operations available: Transactions +- Creditcard Store (tokenization) +- Synchronous Transaction (Authorize + Capture) +- Asynchronous Transaction (Authorize + Capture) +- Asynchronous Debit Transaction +- Authorize (synchronous) +- Capture +- Cancellation +- Refund +- Query Transaction + +Operations available: Subscriptions +- Create Subscription +- Cancel Subscription +- Subscription by Token +- List Subscription's Invoices +- Update Subscription Card ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/midas_client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.