paymentsds-mpesa 0.1.0.pre.alpha.48 → 0.1.0.pre.alpha.49

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de725c533d419e1d6e50b63de6c9b2868a889cfb0aaceae60427e5672e94c5bc
4
- data.tar.gz: 7d916b852e7d2c64fe6a4eb0810988558fd1d214883634d219d82462c4dc993d
3
+ metadata.gz: '078ae0ab3f70a2f25a3d137318e64a20c5d4ce3cdaabaad26a2712c19d47cd79'
4
+ data.tar.gz: c04f4708bf278eff290157d185f48e1c8fe44e1c7b057d76de7defb5e3e3e4bb
5
5
  SHA512:
6
- metadata.gz: 3a3b770ca06d0d4cc4882eeeaeb23662d110baa393c80fd775e90f0e291236ba4290611931c3a13655131675c66efc57a25f27ba477f9c719e1b791b5ae1a218
7
- data.tar.gz: 8c7410673fa8aae286041173fa03ae027fd9daef691940c352b578e1fd6abf42a4c6f9fc090589364cd5d809178dfa5c01d4be2156634e764708a509d92583f5
6
+ metadata.gz: 3527a8eb0d93a1d6bcf926afbdffe199a169869dd3b84de3c08f9766a29bb4f661d2b9c87203c455488a9a6d99d6289eb7266be923247dd53d493bbd2e9db50f
7
+ data.tar.gz: 29f22477140432a561dc37acb0ff5850bc356cab26b327553eea5204b6f1ca667d4d973b6fe52804eb22e07eb96afbdc2567b25e9428bd7d14a792949590fce7
@@ -186,7 +186,10 @@ module Paymentsds
186
186
  when Paymentsds::MPesa::INS0
187
187
 
188
188
  response = Paymentsds::MPesa::Result.new do |r|
189
- r.response =
189
+ r.response = OpenStruct.new(
190
+ :code => result.body["output_ResponseCode"],
191
+ :desc => result.body["output_ResponseDesc"]
192
+ )
190
193
  r.transaction_id = result.body["output_TransactionID"]
191
194
  r.conversation_id = result.body["output_ConversationID"]
192
195
  r.reference = result.body["output_ThirdPartyReference"]
@@ -202,7 +205,10 @@ module Paymentsds
202
205
  when Paymentsds::MPesa::INS0
203
206
 
204
207
  response = Paymentsds::MPesa::Result.new do |r|
205
- r.response =
208
+ r.response = OpenStruct.new(
209
+ :code => result.body["output_ResponseCode"],
210
+ :desc => result.body["output_ResponseDesc"]
211
+ )
206
212
  r.transaction_id = result.body["output_TransactionID"]
207
213
  r.conversation_id = result.body["output_ConversationID"]
208
214
  r.reference = result.body["output_ThirdPartyReference"]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Paymentsds
4
4
  module MPesa
5
- VERSION = '0.1.0.pre.alpha.48'
5
+ VERSION = '0.1.0.pre.alpha.49'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paymentsds-mpesa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.48
4
+ version: 0.1.0.pre.alpha.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edson Michaque