README.markdown in debitech_soap-1.2.0 vs README.markdown in debitech_soap-1.2.1

- old
+ new

@@ -1,40 +1,39 @@ -[![Build Status](https://secure.travis-ci.org/joakimk/debitech_soap.png)](http://travis-ci.org/joakimk/debitech_soap) -[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/joakimk/debitech_soap) +[![Ruby CI](https://github.com/barsoom/debitech_soap/actions/workflows/ci.yml/badge.svg)](https://github.com/barsoom/debitech_soap/actions/workflows/ci.yml) This is a wrapper of the DebiTech SOAP API. It's intended to be API compatible with the DebiTech Java client but also supports a more developer friendly syntax :). If you're looking for a more complete solution, check the [debitech](https://github.com/barsoom/debitech) gem which uses this library for API access. Installing ---- - - gem install debitech_soap - +```bash +gem install debitech_soap +``` Usage ---- This is how you would have used the DebiTech Java API: - - include_class "com.verifyeasy.server.VEServer" - veserver = VEServer.get_instance("https://secure.incab.se/verify/server/merchant_name") - +```java +include_class "com.verifyeasy.server.VEServer" +veserver = VEServer.get_instance("https://secure.incab.se/verify/server/merchant_name") +``` This is how you use DebitechSoap: - - require 'debitech_soap' - veserver = DebitechSoap::API.new(:merchant => "merchant_name", :username => "api_user_name", :password => "api_user_password") - +```ruby +require 'debitech_soap' +veserver = DebitechSoap::API.new(merchant: "merchant_name", username: "api_user_name", password: "api_user_password") +``` Supported arguments ---- Java style (see DebitechSoap::API::PARAMS.keys in lib/debitech_soap.rb): - - veserver.refund(1234567, 23456, 100, "extra") - +```java +veserver.refund(1234567, 23456, 100, "extra") +``` Hash: - - veserver.refund(:verifyID => 1234567, :transID => 23456, :amount => 100, :extra => "extra") - +```ruby +veserver.refund(verifyID: 1234567, transID: 23456, amount: 100, extra: "extra") +``` Custom methods ---- **valid_credentials?**: Returns **true** if the credentials work (calls "checkSwedishPersNo").