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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03f6b0c05d7c834460b07bb276ebcaf2d4f96c8ae84d0517549eece4a37fc2e9
4
- data.tar.gz: 6bf1dfb79f71559379e8dbb50d565bc77a9017adfad4e3718e8ce28fda260bdb
3
+ metadata.gz: 675d48b13407aa5ffbe713de8eec555cacb3649e44ac88d367b5694dcd15c2e7
4
+ data.tar.gz: c5d50f2394a781a20f7c3672b8db00648fc50a2ebba7a11311a177defe0c18a7
5
5
  SHA512:
6
- metadata.gz: e0ef496fef3547aa79223025760dcdf334e527700d2e2f5382bc6c851142445727f9518c9fdeb045a1e1c14aafec36b2cd0cd3278924206d37457d183deac5d8
7
- data.tar.gz: e95ea265812384153afcc9473d94a5247326c137ae00b7c18577ad9e545b1d209ef1a822dcf8c07751beb1a9750b660171e070dab27bd56915c90e10dbe921aa
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[:output_ResponseCode].to_sym
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[:output_ResponseCode].to_sym
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[:output_ResponseCode].to_sym
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[:output_ResponseCode].to_sym
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[:output_ResponseCode].to_sym
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[:output_ResponseCode].to_sym
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[:output_ResponseCode].to_sym
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[:output_ResponseCode].to_sym
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[:output_ResponseCode].to_sym
295
+ case result.body["output_ResponseCode"].to_sym
296
296
  when Paymentsds::MPesa::INS16
297
297
  raise UnavailableServerError
298
298
  else
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Paymentsds
4
4
  module MPesa
5
- VERSION = '0.1.0.pre.alpha.37'
5
+ VERSION = '0.1.0.pre.alpha.38'
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.37
4
+ version: 0.1.0.pre.alpha.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edson Michaque