Gestpay
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.account = 'GESPAY12345'
config.environment = :test # default, change it to :production when ready
end
or using an export:
export GESTPAY_ACCOUNT=GESPAY12345
export GESTPAY_ENVIRONMENT=test
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
Licence
Released under the MIT License. © 2013 Momit S.r.l.

