paymentsds-mpesa 0.1.0.pre.alpha.37 → 0.1.0.pre.alpha.38
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 +9 -9
- 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: 675d48b13407aa5ffbe713de8eec555cacb3649e44ac88d367b5694dcd15c2e7
|
4
|
+
data.tar.gz: c5d50f2394a781a20f7c3672b8db00648fc50a2ebba7a11311a177defe0c18a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d38023c061681a3639b2f4ec8294b27135cf341f86cf3980469eccf3e1734bfb88406a5e1bcf76128cb113cc2acddffb613a82f1eddbad2298391306d1d025c7
|
7
|
+
data.tar.gz: 6c8fb1622107e2825b3c7aeebb0783ceefc84a22503fac6fe7ea5afa35c97294b00f246ba64424a32283da34bfa27516adecc76682027e74ed5ef3b74e7f5c0e
|
@@ -184,7 +184,7 @@ module Paymentsds
|
|
184
184
|
|
185
185
|
case result.status
|
186
186
|
when 200
|
187
|
-
case result.body[
|
187
|
+
case result.body["output_ResponseCode"].to_sym
|
188
188
|
when Paymentsds::MPesa::INS0
|
189
189
|
response = Paymentsds::MPesa::Result.new(result.success?, nil, result.body)
|
190
190
|
else
|
@@ -192,7 +192,7 @@ module Paymentsds
|
|
192
192
|
end
|
193
193
|
|
194
194
|
when 201
|
195
|
-
case result.body[
|
195
|
+
case result.body["output_ResponseCode"].to_sym
|
196
196
|
when Paymentsds::MPesa::INS0
|
197
197
|
response = Paymentsds::MPesa::Result.new(result.success?, nil, result.body)
|
198
198
|
else
|
@@ -200,7 +200,7 @@ module Paymentsds
|
|
200
200
|
end
|
201
201
|
|
202
202
|
when 400
|
203
|
-
case result.body[
|
203
|
+
case result.body["output_ResponseCode"].to_sym
|
204
204
|
when Paymentsds::MPesa::INS13
|
205
205
|
raise InvalidShortcodeError
|
206
206
|
when Paymentsds::MPesa::INS14
|
@@ -250,7 +250,7 @@ module Paymentsds
|
|
250
250
|
end
|
251
251
|
|
252
252
|
when 401
|
253
|
-
case result.body[
|
253
|
+
case result.body["output_ResponseCode"].to_sym
|
254
254
|
when Paymentsds::MPesa::INS5
|
255
255
|
raise TransactionCancelledError
|
256
256
|
when Paymentsds::MPesa::INS6
|
@@ -260,7 +260,7 @@ module Paymentsds
|
|
260
260
|
end
|
261
261
|
|
262
262
|
when 408
|
263
|
-
case result.body[
|
263
|
+
case result.body["output_ResponseCode"].to_sym
|
264
264
|
when Paymentsds::MPesa::INS9
|
265
265
|
raise RequestTimeoutError
|
266
266
|
else
|
@@ -268,7 +268,7 @@ module Paymentsds
|
|
268
268
|
end
|
269
269
|
|
270
270
|
when 409
|
271
|
-
case result.body[
|
271
|
+
case result.body["output_ResponseCode"].to_sym
|
272
272
|
when Paymentsds::MPesa::INS10
|
273
273
|
raise DuplicateTransactionError
|
274
274
|
else
|
@@ -276,7 +276,7 @@ module Paymentsds
|
|
276
276
|
end
|
277
277
|
|
278
278
|
when 422
|
279
|
-
case result.body[
|
279
|
+
case result.body["output_ResponseCode"].to_sym
|
280
280
|
when Paymentsds::MPesa::INS2006
|
281
281
|
raise InsufficientBalanceError
|
282
282
|
else
|
@@ -284,7 +284,7 @@ module Paymentsds
|
|
284
284
|
end
|
285
285
|
|
286
286
|
when 500
|
287
|
-
case result.body[
|
287
|
+
case result.body["output_ResponseCode"].to_sym
|
288
288
|
when Paymentsds::MPesa::INS1
|
289
289
|
raise InternalError
|
290
290
|
else
|
@@ -292,7 +292,7 @@ module Paymentsds
|
|
292
292
|
end
|
293
293
|
|
294
294
|
when 503
|
295
|
-
case result.body[
|
295
|
+
case result.body["output_ResponseCode"].to_sym
|
296
296
|
when Paymentsds::MPesa::INS16
|
297
297
|
raise UnavailableServerError
|
298
298
|
else
|