0.0
No commit activity in last 3 years
No release in over 3 years
Ruby wrapper for eWAY's API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.13
~> 10.0
~> 3.0
>= 0

Runtime

 Project Readme

EWayClient

Build Status

Ruby wrapper for EWay.

Installation

Add this line to your application's Gemfile:

gem 'e_way_client'

And then execute:

$ bundle

Or install it yourself as:

$ gem install e_way_client

Usage

You may set global settings in an initializer:

EWayClient.configure do |c|
  c.username = ENV["E_WAY_USERNAME"]
  c.password = ENV["E_WAY_PASSWORD"]
  c.secret = ENV["E_WAY_SECRET"]
end

Whenever you call EWayClient.new it will use the global settings unless you provide it, like EWayClient.new(password: "password")

See detailed usage examples in spec/acceptance.

Factories

To aid development in your apps, you may include FactoryBot factories of the models by calling require "e_way_client/factories".

Development

  • Copy spec/config.yml.sample to spec/config.yml
  • Replace values with your test credentials

Contributing

Bug reports and pull requests are welcome on GitHub. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.