paymentsds-mpesa 0.1.0.pre.alpha.38 → 0.1.0.pre.alpha.39
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 +40 -40
- 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: 0ebd087bdf21b24354c8653a5e3070ec9490c11d0b59ceb6e688fbc51a406d5e
|
4
|
+
data.tar.gz: fe818b365af4c18c30b4e5e4eb28332feaf06789516f04f391bdec53b73f7e35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4ad16210640bc9567eeaf6ba81957d9ff649b46976c3b8bee73dbaf2a67a76378a81981bb2c2670ebfaa572711bff8c3661969aa01e9d6f2353187852025814
|
7
|
+
data.tar.gz: 3556093055377ab17b865a4003ebbe609405c9abcaa42e21d4a5ae53ced802ccfa45f382a079492e81176462e553f14b08132f5eb55587d6f91449c3f0abf6c4
|
@@ -63,7 +63,7 @@ module Paymentsds
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
-
raise InvalidDestination
|
66
|
+
raise Paymentsds::MPesa::InvalidDestination
|
67
67
|
end
|
68
68
|
|
69
69
|
def detect_missing_properties(opcode, intent)
|
@@ -188,7 +188,7 @@ module Paymentsds
|
|
188
188
|
when Paymentsds::MPesa::INS0
|
189
189
|
response = Paymentsds::MPesa::Result.new(result.success?, nil, result.body)
|
190
190
|
else
|
191
|
-
raise UnknownError
|
191
|
+
raise Paymentsds::MPesa::UnknownError
|
192
192
|
end
|
193
193
|
|
194
194
|
when 201
|
@@ -196,111 +196,111 @@ module Paymentsds
|
|
196
196
|
when Paymentsds::MPesa::INS0
|
197
197
|
response = Paymentsds::MPesa::Result.new(result.success?, nil, result.body)
|
198
198
|
else
|
199
|
-
raise UnknownError
|
199
|
+
raise Paymentsds::MPesa::UnknownError
|
200
200
|
end
|
201
201
|
|
202
202
|
when 400
|
203
203
|
case result.body["output_ResponseCode"].to_sym
|
204
204
|
when Paymentsds::MPesa::INS13
|
205
|
-
raise InvalidShortcodeError
|
205
|
+
raise Paymentsds::MPesa::InvalidShortcodeError
|
206
206
|
when Paymentsds::MPesa::INS14
|
207
|
-
raise InvalidReferenceError
|
207
|
+
raise Paymentsds::MPesa::InvalidReferenceError
|
208
208
|
when Paymentsds::MPesa::INS15
|
209
|
-
raise InvalidAmountError
|
209
|
+
raise Paymentsds::MPesa::InvalidAmountError
|
210
210
|
when Paymentsds::MPesa::INS17
|
211
|
-
raise InvalidTransactionReferenceError
|
211
|
+
raise Paymentsds::MPesa::InvalidTransactionReferenceError
|
212
212
|
when Paymentsds::MPesa::INS18
|
213
|
-
raise InvalidTransactionIdError
|
213
|
+
raise Paymentsds::MPesa::InvalidTransactionIdError
|
214
214
|
when Paymentsds::MPesa::INS19
|
215
|
-
raise InvalidThirdPartyReferenceError
|
215
|
+
raise Paymentsds::MPesa::InvalidThirdPartyReferenceError
|
216
216
|
when Paymentsds::MPesa::INS20
|
217
|
-
raise InvalidMissingPropertiesError
|
217
|
+
raise Paymentsds::MPesa::InvalidMissingPropertiesError
|
218
218
|
when Paymentsds::MPesa::INS21
|
219
|
-
raise ValidationError
|
219
|
+
raise Paymentsds::MPesa::ValidationError
|
220
220
|
when Paymentsds::MPesa::INS22
|
221
|
-
raise InvalidOperationPartError
|
221
|
+
raise Paymentsds::MPesa::InvalidOperationPartError
|
222
222
|
when Paymentsds::MPesa::INS23
|
223
|
-
raise UnknownStatusError
|
223
|
+
raise Paymentsds::MPesa::UnknownStatusError
|
224
224
|
when Paymentsds::MPesa::INS24
|
225
|
-
raise InvalidInitiatorIdentifierError
|
225
|
+
raise Paymentsds::MPesa::InvalidInitiatorIdentifierError
|
226
226
|
when Paymentsds::MPesa::INS25
|
227
|
-
raise InvalidSecurityCredentialError
|
227
|
+
raise Paymentsds::MPesa::InvalidSecurityCredentialError
|
228
228
|
when Paymentsds::MPesa::INS993
|
229
|
-
raise DirectDebtMissingError
|
229
|
+
raise Paymentsds::MPesa::DirectDebtMissingError
|
230
230
|
when Paymentsds::MPesa::INS994
|
231
|
-
raise DuplicatedDirectDebtError
|
231
|
+
raise Paymentsds::MPesa::DuplicatedDirectDebtError
|
232
232
|
when Paymentsds::MPesa::INS995
|
233
|
-
raise ProfileProblemsError
|
233
|
+
raise Paymentsds::MPesa::ProfileProblemsError
|
234
234
|
when Paymentsds::MPesa::INS996
|
235
|
-
raise InactiveAccountError
|
235
|
+
raise Paymentsds::MPesa::InactiveAccountError
|
236
236
|
when Paymentsds::MPesa::INS997
|
237
|
-
raise InvalidLanguageCodeError
|
237
|
+
raise Paymentsds::MPesa::InvalidLanguageCodeError
|
238
238
|
when Paymentsds::MPesa::INS998
|
239
|
-
raise InvalidMarketError
|
239
|
+
raise Paymentsds::MPesa::InvalidMarketError
|
240
240
|
when Paymentsds::MPesa::INS2001
|
241
|
-
raise InitiatorAuthenticationError
|
241
|
+
raise Paymentsds::MPesa::InitiatorAuthenticationError
|
242
242
|
when Paymentsds::MPesa::INS2002
|
243
|
-
raise InvalidReceiverError
|
243
|
+
raise Paymentsds::MPesa::InvalidReceiverError
|
244
244
|
when Paymentsds::MPesa::INS2051
|
245
|
-
raise InvalidMSISDNError
|
245
|
+
raise Paymentsds::MPesa::InvalidMSISDNError
|
246
246
|
when Paymentsds::MPesa::INS2057
|
247
|
-
raise InvalidLanguageCodeError
|
247
|
+
raise Paymentsds::MPesa::InvalidLanguageCodeError
|
248
248
|
else
|
249
|
-
raise UnknownError
|
249
|
+
raise Paymentsds::MPesa::UnknownError
|
250
250
|
end
|
251
251
|
|
252
252
|
when 401
|
253
253
|
case result.body["output_ResponseCode"].to_sym
|
254
254
|
when Paymentsds::MPesa::INS5
|
255
|
-
raise TransactionCancelledError
|
255
|
+
raise Paymentsds::MPesa::TransactionCancelledError
|
256
256
|
when Paymentsds::MPesa::INS6
|
257
|
-
raise TransactionFailedError
|
257
|
+
raise Paymentsds::MPesa::TransactionFailedError
|
258
258
|
else
|
259
|
-
raise UnknownError
|
259
|
+
raise Paymentsds::MPesa::UnknownError
|
260
260
|
end
|
261
261
|
|
262
262
|
when 408
|
263
263
|
case result.body["output_ResponseCode"].to_sym
|
264
264
|
when Paymentsds::MPesa::INS9
|
265
|
-
raise RequestTimeoutError
|
265
|
+
raise Paymentsds::MPesa::RequestTimeoutError
|
266
266
|
else
|
267
|
-
raise UnknownError
|
267
|
+
raise Paymentsds::MPesa::UnknownError
|
268
268
|
end
|
269
269
|
|
270
270
|
when 409
|
271
271
|
case result.body["output_ResponseCode"].to_sym
|
272
272
|
when Paymentsds::MPesa::INS10
|
273
|
-
raise DuplicateTransactionError
|
273
|
+
raise Paymentsds::MPesa::DuplicateTransactionError
|
274
274
|
else
|
275
|
-
raise UnknownError
|
275
|
+
raise Paymentsds::MPesa::UnknownError
|
276
276
|
end
|
277
277
|
|
278
278
|
when 422
|
279
279
|
case result.body["output_ResponseCode"].to_sym
|
280
280
|
when Paymentsds::MPesa::INS2006
|
281
|
-
raise InsufficientBalanceError
|
281
|
+
raise Paymentsds::MPesa::InsufficientBalanceError
|
282
282
|
else
|
283
|
-
raise UnknownError
|
283
|
+
raise Paymentsds::MPesa::UnknownError
|
284
284
|
end
|
285
285
|
|
286
286
|
when 500
|
287
287
|
case result.body["output_ResponseCode"].to_sym
|
288
288
|
when Paymentsds::MPesa::INS1
|
289
|
-
raise InternalError
|
289
|
+
raise Paymentsds::MPesa::InternalError
|
290
290
|
else
|
291
|
-
raise UnknownError
|
291
|
+
raise Paymentsds::MPesa::UnknownError
|
292
292
|
end
|
293
293
|
|
294
294
|
when 503
|
295
295
|
case result.body["output_ResponseCode"].to_sym
|
296
296
|
when Paymentsds::MPesa::INS16
|
297
|
-
raise UnavailableServerError
|
297
|
+
raise Paymentsds::MPesa::UnavailableServerError
|
298
298
|
else
|
299
|
-
raise UnknownError
|
299
|
+
raise Paymentsds::MPesa::UnknownError
|
300
300
|
end
|
301
301
|
|
302
302
|
else
|
303
|
-
raise UnknownError
|
303
|
+
raise Paymentsds::MPesa::UnknownError
|
304
304
|
end
|
305
305
|
end
|
306
306
|
|