This repository contains an example of a simple Gestpay Starter integration, written in Ruby.
This has been done by using:
This software has been developed with Ruby 2.4, but older versions should work too (as long as Sinatra supports it).
This software is not a gem but just a standalone example.
To install, clone this repository and launch
$ bundle installin the Merchant Back-Office, setup these attributes:
- IP Address - the public IP your server is using
- success & failure response redirect url:
http://localhost:4567/response
In the app code:
- Open
./ruby_gestpay_starter/constants.rband updateSHOP_LOGINwith your Shop Login.
To start this app, simply launch
$ ruby app.rbThen, navigate to http://localhost:4567 to see the magic.
If you want to restart the app everytime you change something:
$ gem install rerun
$ rerun 'ruby app.rb'Bug reports and pull requests are welcome here on GitHub!
The gem is available as open source under the terms of the MIT License.