Service wrapper for BancaSella Gestpay interface.
Add this line to your application's Gemfile:
gem 'gestpay'
And then execute:
$ bundle
Or install it yourself as:
$ gem install gestpay
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
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.
- 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
Released under the MIT License. © 2013 Momit S.r.l.