mpesa_stk 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.sample.env +5 -5
- data/Gemfile.lock +1 -1
- data/README.md +5 -7
- data/lib/mpesa_stk/version.rb +1 -1
- data/mpesa_stk.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c762d9d7188c2614e26d339f31d8878ccae597950e0f25bd4332967754e98faf
|
4
|
+
data.tar.gz: 3052223d41923e8f2c03a4bfae269a6be37ddb79d67783c0b8520707df46c1c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0de7cd1f36a1c7b0211ef63627c4602840a776428d38a339c22e3fa1b89b1c28bbb53a8d4cbb6e4d1158fcd2cebccb0fa99a7cb8bcc79523fa6215857aa9d601
|
7
|
+
data.tar.gz: d168f74ce9be4d5a3d9de59bf0a5818cb5f9efa6699523d93b7c74b8c1b53c7a378403f99c9446126734d236be7f03090695ea744b95ae948cf3fc3ba7a2ab43
|
data/.sample.env
CHANGED
@@ -2,8 +2,8 @@ base_url="https://sandbox.safaricom.co.ke"
|
|
2
2
|
token_generator_url="/oauth/v1/generate?grant_type=client_credentials"
|
3
3
|
process_request_url="/mpesa/stkpush/v1/processrequest"
|
4
4
|
|
5
|
-
key="
|
6
|
-
secret="
|
7
|
-
business_short_code="
|
8
|
-
business_passkey="
|
9
|
-
callback_url="
|
5
|
+
key=""
|
6
|
+
secret=""
|
7
|
+
business_short_code=""
|
8
|
+
business_passkey=""
|
9
|
+
callback_url=""
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -16,7 +16,7 @@ gem install mpesa_stk
|
|
16
16
|
```
|
17
17
|
|
18
18
|
# Getting Started
|
19
|
-
This gem has a
|
19
|
+
This gem has a [Redis](https://redis.io/) dependency, so make sure it running
|
20
20
|
```ruby
|
21
21
|
$ redis-server
|
22
22
|
```
|
@@ -26,7 +26,7 @@ or run
|
|
26
26
|
```ruby
|
27
27
|
$ cp .sample.env .env
|
28
28
|
```
|
29
|
-
open `.env` on
|
29
|
+
open `.env` on your editor and add the missing variable
|
30
30
|
```
|
31
31
|
key=""
|
32
32
|
secret=""
|
@@ -36,10 +36,8 @@ callback_url=""
|
|
36
36
|
```
|
37
37
|
|
38
38
|
* `key` and `secret` of the app created on your [developer account](https://developer.safaricom.co.ke/user/me/apps).
|
39
|
-
this can be found in [Test Credentials](https://developer.safaricom.co.ke/test_credentials)
|
40
|
-
* `
|
41
|
-
this is the url where response will be sent
|
42
|
-
* `callback_url` the url of your application. `make sure its a reachable/active url`
|
39
|
+
* `business_short_code` and `business_pass_key` this can be found in [Test Credentials](https://developer.safaricom.co.ke/test_credentials).
|
40
|
+
* `callback_url` the url of your application where response will be sent. `make sure its a reachable/active url`
|
43
41
|
|
44
42
|
## Testing
|
45
43
|
|
@@ -57,7 +55,7 @@ $ irb
|
|
57
55
|
|
58
56
|
expected irb output after the command
|
59
57
|
```hash
|
60
|
-
|
58
|
+
{
|
61
59
|
"MerchantRequestID"=>"7909-1302368-1",
|
62
60
|
"CheckoutRequestID"=>"ws_CO_DMZ_40472724_16062018092359957",
|
63
61
|
"ResponseCode"=>"0",
|
data/lib/mpesa_stk/version.rb
CHANGED
data/mpesa_stk.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = %q{Lipa na M-Pesa Online Payment.}
|
13
13
|
spec.description = %q{initiate a M-Pesa transaction on behalf of a customer using STK Push.}
|
14
|
-
spec.homepage = "https://
|
14
|
+
spec.homepage = "https://github.com/mboya/mpesa_stk"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mpesa_stk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mboya
|
@@ -194,7 +194,7 @@ files:
|
|
194
194
|
- lib/mpesa_stk/push_payment.rb
|
195
195
|
- lib/mpesa_stk/version.rb
|
196
196
|
- mpesa_stk.gemspec
|
197
|
-
homepage: https://
|
197
|
+
homepage: https://github.com/mboya/mpesa_stk
|
198
198
|
licenses:
|
199
199
|
- MIT
|
200
200
|
metadata: {}
|