Gestpay

Build Status Dependency Status Code Climate

Service wrapper for BancaSella Gestpay interface.

Installation

Add this line to your application's Gemfile:

gem 'gestpay'

And then execute:

$ bundle

Or install it yourself as:

$ gem install gestpay

Usage

You can setup the gem in a Rails project using an initializer like this:

Gestpay.setup do |config|
  config. = 'GESPAY12345'
  config.environment = :test # default, change it to :production when ready
  config.proxy = 'http://user:password@proxy-host:proxy-port' # OPTIONAL
end

or using an export:

export GESTPAY_ACCOUNT=GESPAY12345
export GESTPAY_ENVIRONMENT=test
export GESTPAY_PROXY=http://user:password@proxy-host:proxy-port

You then have two different classes: Gestpay::Digest will help with the Crypt/Decrypt web service, while Gestpay::Gateway with the server-to-server webservice operations.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Licence

Released under the MIT License. © 2013 Momit S.r.l.