Ruby Daraja wrapper

Documentation for the ruby wrapper implementation of the Daraja-sdks.

Installation

Using gem

gem install daraja

Using bundler

# Add this to your Gemfile
gem "daraja", "~> 1.0.0"

# If you creating a gem that depends on daraja, add this to your specfile instead:
spec.add_dependency "daraja", "~> 1.0.0"

And then run:

bundle .

Usage

require "daraja"

Daraja::Mpesa.new(app_key: ENV['APP_KEY'], app_secret: ENV['APP_SECRET']) do |app|
    # Do something with the app...
    puts app
end