This gem is extracted from a project, and gives you a comfortable and easy way of communicating with the ePay API.
Installation is pretty straight-forward. Just add to Gemfile:
gem 'epay', :github => 'ykuzmenko/epay'
See https://pfeiffer.github.io/epay/
Released under MIT-license.