vindicia-api

A wrapper for making calls to Vindicia's CashBox SOAP API.

Installation

Add this line to your application's Gemfile:

gem 'vindicia-api'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install vindicia-api

Usage

Add something like the following to your environments or in an initializer:

Vindicia.configure do |config|
  config.api_version = '3.6'
  config. = 'your_login'
  config.password = 'your_password' 
  config.endpoint = 'https://soap.prodtest.sj.vindicia.com/soap.pl'
  config.namespace = 'http://soap.vindicia.com'
end

You will want to modify the example above with which API version you are targeting, your login credentials, and the Vindicia endpoint you will be using.

Current supported API versions are '3.5' and '3.6'.

Available Vindicia endpoints are:

After the Vindicia API has been configured, all Vindicia classes for the respective API version will be available under the Vindicia::* namespace.

Parameters are passed as hashes, for example:

Vindicia::AutoBill.fetch_by_account(:account => { :merchantAccountId => id }
  • Note that parameters must be specified in the same order as documented in Vindicia's developer documentation.

Bugs

  • WebSession class is unsupported as it uses 'initialize' as an API call which is a ruby reserved word

Contributing to vindicia-api

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
  • Fork the project
  • Start a feature/bugfix branch
  • Commit and push until you are happy with your contribution
  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright (c) 2011-2012 Agora Games. See LICENSE.txt for further details.