mpesa_stk 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 98e4c3a1cb59910334ad8f893a329fc65409a371
4
+ data.tar.gz: 72fb8592512e4b94bbb9b66210ae03498d39bd5d
5
+ SHA512:
6
+ metadata.gz: 81237f220cacb76cd23d80209467b687f25ca21bf88090d2ff46e41fadd2ba3601caba8065c3ed7a33eb8e5ef3adbd0c42b91a106af719292e56881edf532b60
7
+ data.tar.gz: f55930075c931fc4cf98a1d999394ff2f59cef8bc31b0f4a8e68a87ed4fbbefef92408d4b758dac04d45013ecb24daf75f29739a95e85489abf18b606fa348ab
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ .env
11
+ .DS_Store
12
+ *.gem
data/.sample.env ADDED
@@ -0,0 +1,9 @@
1
+ base_url="https://sandbox.safaricom.co.ke"
2
+ token_generator_url="/oauth/v1/generate?grant_type=client_credentials"
3
+ process_request_url="/mpesa/stkpush/v1/processrequest"
4
+
5
+ key=""
6
+ secret=""
7
+ business_short_code=""
8
+ business_passkey="
9
+ callback_url="
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.1
5
+ before_install: gem install bundler -v 1.16.1
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at mboyaberry@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in mpesa_stk.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,62 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ mpesa_stk (1.0.0)
5
+ httparty (~> 0.15.6)
6
+ redis-namespace (~> 1.5, >= 1.5.3)
7
+ redis-rack (~> 2.0, >= 2.0.2)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ addressable (2.5.2)
13
+ public_suffix (>= 2.0.2, < 4.0)
14
+ coderay (1.1.2)
15
+ crack (0.4.3)
16
+ safe_yaml (~> 1.0.0)
17
+ dotenv (2.2.1)
18
+ hashdiff (0.3.7)
19
+ httparty (0.15.7)
20
+ multi_xml (>= 0.5.2)
21
+ method_source (0.8.2)
22
+ minitest (5.11.3)
23
+ multi_xml (0.6.0)
24
+ pry (0.10.4)
25
+ coderay (~> 1.1.0)
26
+ method_source (~> 0.8.1)
27
+ slop (~> 3.4)
28
+ pry-nav (0.2.4)
29
+ pry (>= 0.9.10, < 0.11.0)
30
+ public_suffix (3.0.2)
31
+ rack (2.0.4)
32
+ rake (10.5.0)
33
+ redis (4.0.1)
34
+ redis-namespace (1.6.0)
35
+ redis (>= 3.0.4)
36
+ redis-rack (2.0.4)
37
+ rack (>= 1.5, < 3)
38
+ redis-store (>= 1.2, < 2)
39
+ redis-store (1.4.1)
40
+ redis (>= 2.2, < 5)
41
+ safe_yaml (1.0.4)
42
+ slop (3.6.0)
43
+ webmock (3.3.0)
44
+ addressable (>= 2.3.6)
45
+ crack (>= 0.3.2)
46
+ hashdiff
47
+
48
+ PLATFORMS
49
+ ruby
50
+
51
+ DEPENDENCIES
52
+ bundler (~> 1.16)
53
+ dotenv (= 2.2.1)
54
+ minitest (~> 5.0)
55
+ mpesa_stk!
56
+ pry (~> 0.10.4)
57
+ pry-nav (~> 0.2.4)
58
+ rake (~> 10.0)
59
+ webmock (~> 3.0, >= 3.0.1)
60
+
61
+ BUNDLED WITH
62
+ 1.16.1
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 mboya
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,85 @@
1
+ # MpesaStk
2
+ Lipa na M-Pesa Online Payment API is used to initiate a M-Pesa transaction on behalf of a customer using STK Push. This is the same technique mySafaricom App uses whenever the app is used to make payments.
3
+
4
+ ## Installation
5
+
6
+ Add this line to your application's Gemfile:
7
+
8
+ ```ruby
9
+ gem 'mpesa_stk'
10
+ ```
11
+
12
+ And then execute:
13
+
14
+ $ bundle or $ bundle install
15
+
16
+ Or install it yourself as:
17
+
18
+ $ gem install mpesa_stk
19
+
20
+ ## Version
21
+ Mpesa_stk is currently at `1.0.0 version`
22
+
23
+ ## Usage
24
+
25
+ one needs to setup there environment variables, checkout `.sample.env`
26
+ ```
27
+ base_url="https://sandbox.safaricom.co.ke"
28
+ token_generator_url="/oauth/v1/generate?grant_type=client_credentials"
29
+ process_request_url="/mpesa/stkpush/v1/processrequest"
30
+
31
+ key=""
32
+ secret=""
33
+ business_short_code=""
34
+ business_passkey="
35
+ callback_url="
36
+ ```
37
+ this can be found in [Test Credentials](https://developer.safaricom.co.ke/test_credentials)
38
+ * `key` and `secret` of your application key.
39
+ * `business_short_code` and `business_pass_key` from safaricom.
40
+ * `callback_url` the url of your application.
41
+
42
+
43
+ ### Implementation
44
+
45
+ This now becomes the easy part. After all the pieces above have been set all you need to do is:
46
+ open your console and add.
47
+ ```
48
+ require 'mpesa_stk'
49
+ ```
50
+
51
+ ```
52
+ MpesaStk::PushPayment.call("500", "<YOUR PHONE NUMBER: 254711222333>")
53
+ ```
54
+
55
+ ### Output
56
+ This is the expected output
57
+ ![alt tag](./bin/index.jpeg)
58
+
59
+
60
+
61
+ ## Development
62
+
63
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
64
+
65
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
66
+
67
+ ## Contributing
68
+
69
+ Bug reports and pull requests are welcome on GitHub at https://github.com/mboya/mpesa_stk.
70
+
71
+ To Contribute to this gem,
72
+ * Comment on the issue you would like to work on solving.
73
+ * Mark the issue as in progress by adding an `in-progress` label.
74
+ * Fork the project to your github repository (This project only accepts PRs from forks)
75
+ * Submit the PR after the implementation all unfinished PRs for an issue should have a WIP indicated beside it
76
+ * Every PR should have a link to the issue being solved
77
+ * Checkout this [github best practices](https://github.com/skyscreamer/yoga/wiki/GitHub-Best-Practices) for more info.
78
+
79
+ ## License
80
+
81
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
82
+
83
+ ## Code of Conduct
84
+
85
+ Everyone interacting in the MpesaStk project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/mboya/mpesa_stk/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "mpesa_stk"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/index.jpeg ADDED
Binary file
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/lib/mpesa_stk.rb ADDED
@@ -0,0 +1,4 @@
1
+ require "mpesa_stk/version"
2
+ require 'mpesa_stk/push_payment'
3
+ require 'dotenv/load'
4
+ require 'httparty'
@@ -0,0 +1,85 @@
1
+ require 'base64'
2
+ require 'redis'
3
+
4
+ module MpesaStk
5
+ class AccessToken
6
+ class << self
7
+ def call
8
+ new.access_token
9
+ end
10
+ end
11
+
12
+ def initialize
13
+ @key = ENV['key']
14
+ @secret = ENV['secret']
15
+ @redis = Redis.new
16
+
17
+ load_from_redis
18
+ end
19
+
20
+ def is_valid?
21
+ has_token? && !token_expired?
22
+ end
23
+
24
+ def token_expired?
25
+ expire_time = @timestamp.to_i + @expires_in.to_i
26
+ return expire_time < Time.now.to_i + 58
27
+ end
28
+
29
+ def has_token?
30
+ return !@token.nil?
31
+ end
32
+
33
+ def refresh
34
+ get_new_access_token
35
+ load_from_redis
36
+ end
37
+
38
+ def load_from_redis
39
+ data = @redis.get(@key)
40
+ if (data.nil? || data.empty?)
41
+ @token = nil
42
+ @timestamp = nil
43
+ @expires_in = nil
44
+ else
45
+ parsed = JSON.parse(data)
46
+ @token = parsed['access_token']
47
+ @timestamp = parsed['time_stamp']
48
+ @expires_in = parsed['expires_in']
49
+ end
50
+ end
51
+
52
+ def access_token
53
+ if is_valid?
54
+ return @token
55
+ else
56
+ refresh
57
+ return @token
58
+ end
59
+ end
60
+
61
+ def get_new_access_token
62
+ response = HTTParty.get(url, headers: headers)
63
+
64
+ hash = JSON.parse(response.body).merge(Hash['time_stamp',Time.now.to_i])
65
+ @redis.set @key, hash.to_json
66
+ end
67
+
68
+ private
69
+ def url
70
+ "#{ENV['base_url']}#{ENV['token_generator_url']}"
71
+ end
72
+
73
+ def headers
74
+ encode = encode_credentials @key, @secret
75
+ headers = {
76
+ "Authorization" => "Basic #{encode}"
77
+ }
78
+ end
79
+
80
+ def encode_credentials key, secret
81
+ credentials = "#{key}:#{secret}"
82
+ encoded_credentials = Base64.encode64(credentials).split("\n").join
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,70 @@
1
+ require "mpesa_stk/access_token"
2
+
3
+ module MpesaStk
4
+ class PushPayment
5
+ class << self
6
+ def call(amount, phone_number)
7
+ new(amount, phone_number).push_payment
8
+ end
9
+ end
10
+
11
+ attr_reader :token, :amount, :phone_number
12
+
13
+ def initialize amount, phone_number
14
+ @token = MpesaStk::AccessToken.call
15
+ @amount = amount
16
+ @phone_number = phone_number
17
+ end
18
+
19
+ def push_payment
20
+ response = HTTParty.post(url, headers: headers, body: body)
21
+ JSON.parse(response.body)
22
+ end
23
+
24
+ private
25
+ def url
26
+ "#{ENV['base_url']}#{ENV['process_request_url']}"
27
+ end
28
+
29
+ def headers
30
+ headers = {
31
+ "Authorization" => "Bearer #{token}",
32
+ "Content-Type" => "application/json"
33
+ }
34
+ end
35
+
36
+ def body
37
+ {
38
+ BusinessShortCode: "#{ENV['business_short_code']}",
39
+ Password: generate_password,
40
+ Timestamp: "#{timestamp}",
41
+ TransactionType: "CustomerPayBillOnline",
42
+ Amount: "#{amount}",
43
+ PartyA: "#{phone_number}",
44
+ PartyB: "#{ENV['business_short_code']}",
45
+ PhoneNumber: "#{phone_number}",
46
+ CallBackURL: "#{ENV['callback_url']}",
47
+ AccountReference: generate_bill_reference_number(20),
48
+ TransactionDesc: generate_bill_reference_number(20)
49
+ }.to_json
50
+ end
51
+
52
+ def generate_bill_reference_number(number)
53
+ charset = Array('A'..'Z') + Array('a'..'z')
54
+ Array.new(number) { charset.sample }.join
55
+ end
56
+
57
+ def timestamp
58
+ DateTime.now.strftime("%Y%m%d%H%M%S").to_i
59
+ end
60
+
61
+ # shortcode
62
+ # passkey
63
+ # timestamp
64
+ def generate_password
65
+ key = "#{ENV['business_short_code']}#{ENV['business_passkey']}#{timestamp}"
66
+ Base64.encode64(key).split("\n").join
67
+ end
68
+
69
+ end
70
+ end
@@ -0,0 +1,3 @@
1
+ module MpesaStk
2
+ VERSION = "1.0.2"
3
+ end
data/mpesa_stk.gemspec ADDED
@@ -0,0 +1,36 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "mpesa_stk/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "mpesa_stk"
8
+ spec.version = MpesaStk::VERSION
9
+ spec.authors = ["mboya", "cess"]
10
+ spec.email = ["mboyaberry@gmail.com", "cessmbuguar@gmail.com"]
11
+
12
+ spec.summary = %q{Lipa na M-Pesa Online Payment.}
13
+ spec.description = %q{initiate a M-Pesa transaction on behalf of a customer using STK Push.}
14
+ spec.homepage = "https://github.com/mboya/mpesa_stk"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_dependency 'httparty', '~> 0.15.6'
25
+ spec.add_dependency 'redis-rack', '~> 2.0', '>= 2.0.2'
26
+ spec.add_dependency 'redis-namespace', '~> 1.5', '>= 1.5.3'
27
+
28
+ spec.add_development_dependency "bundler", "~> 1.16"
29
+ spec.add_development_dependency "rake", "~> 10.0"
30
+ spec.add_development_dependency "minitest", "~> 5.0"
31
+
32
+ spec.add_development_dependency 'pry', '~> 0.10.4'
33
+ spec.add_development_dependency 'pry-nav', '~> 0.2.4'
34
+ spec.add_development_dependency 'webmock', '~> 3.0', '>= 3.0.1'
35
+ spec.add_development_dependency "dotenv", "2.2.1"
36
+ end
metadata ADDED
@@ -0,0 +1,221 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mpesa_stk
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.2
5
+ platform: ruby
6
+ authors:
7
+ - mboya
8
+ - cess
9
+ autorequire:
10
+ bindir: exe
11
+ cert_chain: []
12
+ date: 2018-02-15 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: httparty
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: 0.15.6
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: 0.15.6
28
+ - !ruby/object:Gem::Dependency
29
+ name: redis-rack
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '2.0'
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: 2.0.2
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - "~>"
43
+ - !ruby/object:Gem::Version
44
+ version: '2.0'
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 2.0.2
48
+ - !ruby/object:Gem::Dependency
49
+ name: redis-namespace
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.5'
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: 1.5.3
58
+ type: :runtime
59
+ prerelease: false
60
+ version_requirements: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - "~>"
63
+ - !ruby/object:Gem::Version
64
+ version: '1.5'
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: 1.5.3
68
+ - !ruby/object:Gem::Dependency
69
+ name: bundler
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '1.16'
75
+ type: :development
76
+ prerelease: false
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '1.16'
82
+ - !ruby/object:Gem::Dependency
83
+ name: rake
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '10.0'
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '10.0'
96
+ - !ruby/object:Gem::Dependency
97
+ name: minitest
98
+ requirement: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '5.0'
103
+ type: :development
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '5.0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: pry
112
+ requirement: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: 0.10.4
117
+ type: :development
118
+ prerelease: false
119
+ version_requirements: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: 0.10.4
124
+ - !ruby/object:Gem::Dependency
125
+ name: pry-nav
126
+ requirement: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: 0.2.4
131
+ type: :development
132
+ prerelease: false
133
+ version_requirements: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - "~>"
136
+ - !ruby/object:Gem::Version
137
+ version: 0.2.4
138
+ - !ruby/object:Gem::Dependency
139
+ name: webmock
140
+ requirement: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - "~>"
143
+ - !ruby/object:Gem::Version
144
+ version: '3.0'
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: 3.0.1
148
+ type: :development
149
+ prerelease: false
150
+ version_requirements: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - "~>"
153
+ - !ruby/object:Gem::Version
154
+ version: '3.0'
155
+ - - ">="
156
+ - !ruby/object:Gem::Version
157
+ version: 3.0.1
158
+ - !ruby/object:Gem::Dependency
159
+ name: dotenv
160
+ requirement: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - '='
163
+ - !ruby/object:Gem::Version
164
+ version: 2.2.1
165
+ type: :development
166
+ prerelease: false
167
+ version_requirements: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ - - '='
170
+ - !ruby/object:Gem::Version
171
+ version: 2.2.1
172
+ description: initiate a M-Pesa transaction on behalf of a customer using STK Push.
173
+ email:
174
+ - mboyaberry@gmail.com
175
+ - cessmbuguar@gmail.com
176
+ executables: []
177
+ extensions: []
178
+ extra_rdoc_files: []
179
+ files:
180
+ - ".gitignore"
181
+ - ".sample.env"
182
+ - ".travis.yml"
183
+ - CODE_OF_CONDUCT.md
184
+ - Gemfile
185
+ - Gemfile.lock
186
+ - LICENSE.txt
187
+ - README.md
188
+ - Rakefile
189
+ - bin/console
190
+ - bin/index.jpeg
191
+ - bin/setup
192
+ - lib/mpesa_stk.rb
193
+ - lib/mpesa_stk/access_token.rb
194
+ - lib/mpesa_stk/push_payment.rb
195
+ - lib/mpesa_stk/version.rb
196
+ - mpesa_stk.gemspec
197
+ homepage: https://github.com/mboya/mpesa_stk
198
+ licenses:
199
+ - MIT
200
+ metadata: {}
201
+ post_install_message:
202
+ rdoc_options: []
203
+ require_paths:
204
+ - lib
205
+ required_ruby_version: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - ">="
208
+ - !ruby/object:Gem::Version
209
+ version: '0'
210
+ required_rubygems_version: !ruby/object:Gem::Requirement
211
+ requirements:
212
+ - - ">="
213
+ - !ruby/object:Gem::Version
214
+ version: '0'
215
+ requirements: []
216
+ rubyforge_project:
217
+ rubygems_version: 2.6.14
218
+ signing_key:
219
+ specification_version: 4
220
+ summary: Lipa na M-Pesa Online Payment.
221
+ test_files: []