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 +4 -4
- data/lib/paymentsds/mpesa/service.rb +8 -2
- data/lib/paymentsds/mpesa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '078ae0ab3f70a2f25a3d137318e64a20c5d4ce3cdaabaad26a2712c19d47cd79'
|
4
|
+
data.tar.gz: c04f4708bf278eff290157d185f48e1c8fe44e1c7b057d76de7defb5e3e3e4bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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"]
|