LitleOnline 9.12.0 → 10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +7 -16
  3. data/CONTRIBUTORS +0 -0
  4. data/DESCRIPTION +2 -2
  5. data/LICENSE +1 -1
  6. data/README.md +9 -9
  7. data/Rakefile +9 -8
  8. data/SETUP.md +3 -3
  9. data/bin/Setup.rb +4 -4
  10. data/bin/sample_batch_driver.rb +1 -1
  11. data/bin/sample_driver.rb +1 -1
  12. data/lib/Communications.rb +7 -7
  13. data/lib/Configuration.rb +1 -1
  14. data/lib/EnvironmentVariables.rb +0 -0
  15. data/lib/LitleBatchRequest.rb +22 -8
  16. data/lib/LitleListeners.rb +9 -9
  17. data/lib/LitleOnline.rb +2 -2
  18. data/lib/LitleOnlineRequest.rb +16 -10
  19. data/lib/LitleRequest.rb +10 -10
  20. data/lib/LitleTransaction.rb +66 -64
  21. data/lib/LitleXmlMapper.rb +4 -9
  22. data/lib/XMLFields.rb +129 -116
  23. data/lib/cacert.pem +0 -0
  24. data/samples/Auth/LitleAuthReversalTransaction.rb +2 -2
  25. data/samples/Auth/LitleAuthorizationTransaction.rb +1 -0
  26. data/samples/Auth/LitlePaymentFullLifeCycle.rb +12 -6
  27. data/samples/Batch/AccountUpdate.rb +1 -0
  28. data/samples/Batch/SampleBatchDriver.rb +2 -1
  29. data/samples/Capture/LitleCaptureGivenAuthTransaction.rb +2 -1
  30. data/samples/Capture/LitleCaptureTransaction.rb +2 -2
  31. data/samples/Capture/LitleForceCaptureTransaction.rb +2 -1
  32. data/samples/Capture/LitlePartialCapture.rb +3 -3
  33. data/samples/Credit/LitleCreditTransaction.rb +2 -2
  34. data/samples/Credit/LitleRefundTransaction.rb +2 -1
  35. data/samples/Other/LitleAvsTransaction.rb +2 -1
  36. data/samples/Other/LitleVoidTransaction.rb +2 -1
  37. data/samples/Paypage/FullPaypageLifeCycle.rb +7 -2
  38. data/samples/Run_all.rb +0 -0
  39. data/samples/Sale/LitleSaleTransaction.rb +2 -1
  40. data/samples/Sale/SampleSaleTransaction.rb +2 -1
  41. data/test/certification/certTest1_base.rb +53 -52
  42. data/test/certification/certTest2_authenhanced.rb +16 -15
  43. data/test/certification/certTest3_authreversal.rb +16 -15
  44. data/test/certification/certTest4_echeck.rb +11 -10
  45. data/test/certification/certTest5_token.rb +2 -1
  46. data/test/certification/certTest_batchAll.rb +40 -16
  47. data/test/certification/ts_all.rb +1 -1
  48. data/test/functional/test_activate.rb +8 -9
  49. data/test/functional/test_activateReversal.rb +4 -7
  50. data/test/functional/test_auth.rb +50 -113
  51. data/test/functional/test_authReversal.rb +6 -5
  52. data/test/functional/test_balanceInquiry.rb +5 -5
  53. data/test/functional/test_batch.rb +1 -1
  54. data/test/functional/test_batchStream.rb +3 -5
  55. data/test/functional/test_cancelSubscription.rb +3 -5
  56. data/test/functional/test_capture.rb +6 -34
  57. data/test/functional/test_captureGivenAuth.rb +13 -55
  58. data/test/functional/test_configuration.rb +1 -1
  59. data/test/functional/test_createPlan.rb +3 -5
  60. data/test/functional/test_credit.rb +10 -17
  61. data/test/functional/test_deactivate.rb +5 -5
  62. data/test/functional/test_deactivateReversal.rb +4 -5
  63. data/test/functional/test_depositReversal.rb +5 -5
  64. data/test/functional/test_echeckCredit.rb +17 -13
  65. data/test/functional/test_echeckRedeposit.rb +7 -5
  66. data/test/functional/test_echeckSale.rb +42 -21
  67. data/test/functional/test_echeckVerification.rb +19 -20
  68. data/test/functional/test_echeckVoid.rb +3 -2
  69. data/test/functional/test_forceCapture.rb +16 -30
  70. data/test/functional/test_litle_requests.rb +5 -9
  71. data/test/functional/test_load.rb +5 -5
  72. data/test/functional/test_loadReversal.rb +4 -5
  73. data/test/functional/test_override.rb +3 -0
  74. data/test/functional/test_queryTransaction.rb +146 -0
  75. data/test/functional/test_refundReversal.rb +4 -5
  76. data/test/functional/test_sale.rb +94 -170
  77. data/test/functional/test_token.rb +9 -18
  78. data/test/functional/test_unload.rb +5 -5
  79. data/test/functional/test_unloadReversal.rb +5 -6
  80. data/test/functional/test_updateCardValidationNumOnToken.rb +2 -1
  81. data/test/functional/test_updatePlan.rb +4 -5
  82. data/test/functional/test_updateSubscription.rb +5 -5
  83. data/test/functional/test_wallet.rb +74 -0
  84. data/test/functional/test_xmlfields.rb +25 -10
  85. data/test/functional/ts_all.rb +4 -2
  86. data/test/unit/test_LitleAUBatch.rb +1 -1
  87. data/test/unit/test_LitleBatchRequest.rb +4 -4
  88. data/test/unit/test_LitleOnlineRequest.rb +54 -37
  89. data/test/unit/test_LitleRequest.rb +3 -4
  90. data/test/unit/test_LitleTransaction.rb +35 -6
  91. data/test/unit/test_activate.rb +21 -1
  92. data/test/unit/test_activateReversal.rb +1 -1
  93. data/test/unit/test_auth.rb +16 -55
  94. data/test/unit/test_authReversal.rb +1 -1
  95. data/test/unit/test_balanceInquiry.rb +1 -1
  96. data/test/unit/test_cancelSubscription.rb +1 -1
  97. data/test/unit/test_capture.rb +1 -27
  98. data/test/unit/test_captureGivenAuth.rb +18 -44
  99. data/test/unit/test_createPlan.rb +1 -1
  100. data/test/unit/test_credit.rb +3 -16
  101. data/test/unit/test_deactivate.rb +1 -1
  102. data/test/unit/test_deactivateReversal.rb +1 -1
  103. data/test/unit/test_depositReversal.rb +1 -1
  104. data/test/unit/test_echeckCredit.rb +1 -1
  105. data/test/unit/test_echeckRedeposit.rb +1 -1
  106. data/test/unit/test_echeckSale.rb +2 -2
  107. data/test/unit/test_echeckVerification.rb +1 -1
  108. data/test/unit/test_echeckVoid.rb +1 -1
  109. data/test/unit/test_forceCapture.rb +2 -20
  110. data/test/unit/test_load.rb +1 -1
  111. data/test/unit/test_loadReversal.rb +1 -1
  112. data/test/unit/test_queryTransaction.rb +122 -0
  113. data/test/unit/test_refundReversal.rb +1 -1
  114. data/test/unit/test_sale.rb +8 -73
  115. data/test/unit/test_token.rb +8 -15
  116. data/test/unit/test_unload.rb +1 -1
  117. data/test/unit/test_unloadReversal.rb +1 -1
  118. data/test/unit/test_updateCardValidationNumOnToken.rb +1 -1
  119. data/test/unit/test_updatePlan.rb +1 -1
  120. data/test/unit/test_updateSubscription.rb +1 -1
  121. data/test/unit/test_wallet.rb +262 -0
  122. data/test/unit/test_xmlfields.rb +1 -1
  123. data/test/unit/ts_unit.rb +3 -3
  124. metadata +15 -16
  125. data/temp.xml +0 -21
  126. data/test/functional/test_fraudCheck.rb +0 -77
  127. data/test/functional/test_utf8.rb +0 -44
  128. data/test/unit/test_LitleXmlMapper.rb +0 -136
  129. data/test/unit/test_fraudCheck.rb +0 -45
@@ -5,7 +5,8 @@ module LitleOnline
5
5
  class Litle_certTest2 < Test::Unit::TestCase
6
6
  #test enhanced data on auth response
7
7
  @@merchant_hash = {'reportGroup'=>'Planets',
8
- 'merchantId'=>'101'
8
+ 'merchantId'=>'101',
9
+ 'id'=>'test'
9
10
  }
10
11
 
11
12
  #test 14-31 enhanced data need merchant with smart authorization features.
@@ -426,15 +427,15 @@ module LitleOnline
426
427
  capture_hash = {'litleTxnId' => authorization_response.authorizationResponse.litleTxnId, 'amount' => '5005'}
427
428
  hash32a = capture_hash.merge(@@merchant_hash)
428
429
  capture_response = LitleOnlineRequest.new.capture(hash32a)
429
- assert_equal('000', capture_response.captureResponse.response)
430
- assert_equal('Approved', capture_response.captureResponse.message)
430
+ assert_equal('001', capture_response.captureResponse.response)
431
+ assert_equal('Transaction Received', capture_response.captureResponse.message)
431
432
 
432
433
  #test 32B
433
434
  authReversal_hash = {'litleTxnId' => authorization_response.authorizationResponse.litleTxnId}
434
435
  hash1b = authReversal_hash.merge(@@merchant_hash)
435
436
  authReversal_response = LitleOnlineRequest.new.auth_reversal(hash1b)
436
- assert_equal('111', authReversal_response.authReversalResponse.response)
437
- assert_equal('Authorization amount has already been depleted', authReversal_response.authReversalResponse.message)
437
+ assert_equal('001', authReversal_response.authReversalResponse.response)
438
+ assert_equal('Transaction Received', authReversal_response.authReversalResponse.message)
438
439
  end
439
440
 
440
441
  def test_33
@@ -469,8 +470,8 @@ module LitleOnline
469
470
  authReversal_hash = {'litleTxnId' => authorization_response.authorizationResponse.litleTxnId}
470
471
  hash1b = authReversal_hash.merge(@@merchant_hash)
471
472
  authReversal_response = LitleOnlineRequest.new.auth_reversal(hash1b)
472
- assert_equal('000', authReversal_response.authReversalResponse.response)
473
- assert_equal('Approved', authReversal_response.authReversalResponse.message)
473
+ assert_equal('001', authReversal_response.authReversalResponse.response)
474
+ assert_equal('Transaction Received', authReversal_response.authReversalResponse.message)
474
475
  end
475
476
 
476
477
  def test_34
@@ -503,8 +504,8 @@ module LitleOnline
503
504
  authReversal_hash = {'litleTxnId' => authorization_response.authorizationResponse.litleTxnId}
504
505
  hash1b = authReversal_hash.merge(@@merchant_hash)
505
506
  authReversal_response = LitleOnlineRequest.new.auth_reversal(hash1b)
506
- assert_equal('000', authReversal_response.authReversalResponse.response)
507
- assert_equal('Approved', authReversal_response.authReversalResponse.message)
507
+ assert_equal('001', authReversal_response.authReversalResponse.response)
508
+ assert_equal('Transaction Received', authReversal_response.authReversalResponse.message)
508
509
  end
509
510
 
510
511
  def test_35
@@ -535,15 +536,15 @@ module LitleOnline
535
536
  capture_hash = {'litleTxnId' => authorization_response.authorizationResponse.litleTxnId, 'amount' => '20020'}
536
537
  hash32a = capture_hash.merge(@@merchant_hash)
537
538
  capture_response = LitleOnlineRequest.new.capture(hash32a)
538
- assert_equal('000', capture_response.captureResponse.response)
539
- assert_equal('Approved', capture_response.captureResponse.message)
539
+ assert_equal('001', capture_response.captureResponse.response)
540
+ assert_equal('Transaction Received', capture_response.captureResponse.message)
540
541
 
541
542
  #test 35B
542
543
  authReversal_hash = {'litleTxnId' => authorization_response.authorizationResponse.litleTxnId, 'amount' => '20020'}
543
544
  hash1b = authReversal_hash.merge(@@merchant_hash)
544
545
  authReversal_response = LitleOnlineRequest.new.auth_reversal(hash1b)
545
- assert_equal('000', authReversal_response.authReversalResponse.response)
546
- assert_equal('Approved', authReversal_response.authReversalResponse.message)
546
+ assert_equal('001', authReversal_response.authReversalResponse.response)
547
+ assert_equal('Transaction Received', authReversal_response.authReversalResponse.message)
547
548
  end
548
549
 
549
550
  def test_36
@@ -565,8 +566,8 @@ module LitleOnline
565
566
  authReversal_hash = {'litleTxnId' => authorization_response.authorizationResponse.litleTxnId, 'amount' => '10000'}
566
567
  hash1b = authReversal_hash.merge(@@merchant_hash)
567
568
  authReversal_response = LitleOnlineRequest.new.auth_reversal(hash1b)
568
- assert_equal('336', authReversal_response.authReversalResponse.response)
569
- assert_equal('Reversal Amount does not match Authorization amount', authReversal_response.authReversalResponse.message)
569
+ assert_equal('001', authReversal_response.authReversalResponse.response)
570
+ assert_equal('Transaction Received', authReversal_response.authReversalResponse.message)
570
571
  end
571
572
 
572
573
  end
@@ -5,7 +5,8 @@ module LitleOnline
5
5
  class Litle_certTest3 < Test::Unit::TestCase
6
6
  #test auth reversal
7
7
  @@merchant_hash = {'reportGroup'=>'Planets','id'=>'321','customerId'=>'123',
8
- 'merchantId'=>'101'
8
+ 'merchantId'=>'101',
9
+ 'id'=>'test'
9
10
  }
10
11
 
11
12
  def test_32
@@ -38,15 +39,15 @@ module LitleOnline
38
39
  capture_hash = {'litleTxnId' => auth_response.authorizationResponse.litleTxnId, 'amount' => '5005'}
39
40
  hash1a = capture_hash.merge(@@merchant_hash)
40
41
  capture_response = LitleOnlineRequest.new.capture(hash1a)
41
- assert_equal('000', capture_response.captureResponse.response)
42
- assert_equal('Approved', capture_response.captureResponse.message)
42
+ assert_equal('001', capture_response.captureResponse.response)
43
+ assert_equal('Transaction Received', capture_response.captureResponse.message)
43
44
 
44
45
  #test 32B
45
46
  auth_r_hash = {'litleTxnId' => auth_response.authorizationResponse.litleTxnId }
46
47
  hash1b = auth_r_hash.merge(@@merchant_hash)
47
48
  auth_r_response = LitleOnlineRequest.new.auth_reversal(hash1b)
48
- assert_equal('111', auth_r_response.authReversalResponse.response)
49
- assert_equal('Authorization amount has already been depleted', auth_r_response.authReversalResponse.message)
49
+ assert_equal('001', auth_r_response.authReversalResponse.response)
50
+ assert_equal('Transaction Received', auth_r_response.authReversalResponse.message)
50
51
  end
51
52
 
52
53
  def test_33
@@ -81,8 +82,8 @@ module LitleOnline
81
82
  auth_reversal_hash = {'litleTxnId' => auth_response.authorizationResponse.litleTxnId}
82
83
  hash1a = auth_reversal_hash.merge(@@merchant_hash)
83
84
  auth_reversal_response = LitleOnlineRequest.new.auth_reversal(hash1a)
84
- assert_equal('000', auth_reversal_response.authReversalResponse.response)
85
- assert_equal('Approved', auth_reversal_response.authReversalResponse.message)
85
+ assert_equal('001', auth_reversal_response.authReversalResponse.response)
86
+ assert_equal('Transaction Received', auth_reversal_response.authReversalResponse.message)
86
87
  end
87
88
 
88
89
  def test_34
@@ -115,8 +116,8 @@ module LitleOnline
115
116
  auth_reversal_hash = {'litleTxnId' => auth_response.authorizationResponse.litleTxnId}
116
117
  hash1a = auth_reversal_hash.merge(@@merchant_hash)
117
118
  auth_reversal_response = LitleOnlineRequest.new.auth_reversal(hash1a)
118
- assert_equal('000', auth_reversal_response.authReversalResponse.response)
119
- assert_equal('Approved', auth_reversal_response.authReversalResponse.message)
119
+ assert_equal('001', auth_reversal_response.authReversalResponse.response)
120
+ assert_equal('Transaction Received', auth_reversal_response.authReversalResponse.message)
120
121
  end
121
122
 
122
123
  def test_35
@@ -147,15 +148,15 @@ module LitleOnline
147
148
  capture_hash = {'litleTxnId' => auth_response.authorizationResponse.litleTxnId, 'amount' => '20020'}
148
149
  hash1a = capture_hash.merge(@@merchant_hash)
149
150
  capture_response = LitleOnlineRequest.new.capture(hash1a)
150
- assert_equal('000', capture_response.captureResponse.response)
151
- assert_equal('Approved', capture_response.captureResponse.message)
151
+ assert_equal('001', capture_response.captureResponse.response)
152
+ assert_equal('Transaction Received', capture_response.captureResponse.message)
152
153
 
153
154
  # #test 35B
154
155
  auth_reversal_hash = {'litleTxnId' => auth_response.authorizationResponse.litleTxnId, 'amount' => '20020'}
155
156
  hash2a = auth_reversal_hash.merge(@@merchant_hash)
156
157
  auth_reversal_response = LitleOnlineRequest.new.auth_reversal(hash2a)
157
- assert_equal('000', auth_reversal_response.authReversalResponse.response)
158
- assert_equal('Approved', auth_reversal_response.authReversalResponse.message)
158
+ assert_equal('001', auth_reversal_response.authReversalResponse.response)
159
+ assert_equal('Transaction Received', auth_reversal_response.authReversalResponse.message)
159
160
  end
160
161
 
161
162
  def test_36
@@ -177,8 +178,8 @@ module LitleOnline
177
178
  auth_reversal_hash = {'litleTxnId' => auth_response.authorizationResponse.litleTxnId, 'amount' => '10000'}
178
179
  hash1a = auth_reversal_hash.merge(@@merchant_hash)
179
180
  auth_reversal_response = LitleOnlineRequest.new.auth_reversal(hash1a)
180
- assert_equal('336', auth_reversal_response.authReversalResponse.response)
181
- assert_equal('Reversal Amount does not match Authorization amount', auth_reversal_response.authReversalResponse.message)
181
+ assert_equal('001', auth_reversal_response.authReversalResponse.response)
182
+ assert_equal('Transaction Received', auth_reversal_response.authReversalResponse.message)
182
183
  end
183
184
 
184
185
  end
@@ -5,7 +5,8 @@ module LitleOnline
5
5
  class Litle_certTest4 < Test::Unit::TestCase
6
6
  # test echeck
7
7
  @@merchant_hash = {'reportGroup'=>'Planets',
8
- 'merchantId'=>'101'
8
+ 'merchantId'=>'101',
9
+ 'id'=>'test'
9
10
  }
10
11
 
11
12
  # test 37-49 merchant authorizate to do echeck using 087901 with same username IMPTEST, password cert3d6Z
@@ -206,7 +207,7 @@ module LitleOnline
206
207
  hash = customer_hash.merge(@@merchant_hash)
207
208
  echeck_response = LitleOnlineRequest.new.echeck_credit(hash)
208
209
 
209
- assert_equal('301', echeck_response.echeckCreditResponse.response)
210
+ assert_equal('001', echeck_response.echeckCreditResponse.response)
210
211
  end
211
212
 
212
213
  def test_46
@@ -227,8 +228,8 @@ module LitleOnline
227
228
  hash = customer_hash.merge(@@merchant_hash)
228
229
  echeck_response = LitleOnlineRequest.new.echeck_credit(hash)
229
230
 
230
- assert_equal('000', echeck_response.echeckCreditResponse.response)
231
- assert_equal('Approved', echeck_response.echeckCreditResponse.message)
231
+ assert_equal('001', echeck_response.echeckCreditResponse.response)
232
+ assert_equal('Transaction Received', echeck_response.echeckCreditResponse.message)
232
233
  end
233
234
 
234
235
  def test_47
@@ -249,8 +250,8 @@ module LitleOnline
249
250
  hash = customer_hash.merge(@@merchant_hash)
250
251
  echeck_response = LitleOnlineRequest.new.echeck_credit(hash)
251
252
 
252
- assert_equal('000', echeck_response.echeckCreditResponse.response)
253
- assert_equal('Approved', echeck_response.echeckCreditResponse.message)
253
+ assert_equal('001', echeck_response.echeckCreditResponse.response)
254
+ assert_equal('Transaction Received', echeck_response.echeckCreditResponse.message)
254
255
  end
255
256
 
256
257
  def test_48
@@ -260,8 +261,8 @@ module LitleOnline
260
261
  hash = customer_hash.merge(@@merchant_hash)
261
262
  echeck_response = LitleOnlineRequest.new.echeck_credit(hash)
262
263
 
263
- assert_equal('000', echeck_response.echeckCreditResponse.response)
264
- assert_equal('Approved', echeck_response.echeckCreditResponse.message)
264
+ assert_equal('001', echeck_response.echeckCreditResponse.response)
265
+ assert_equal('Transaction Received', echeck_response.echeckCreditResponse.message)
265
266
  end
266
267
 
267
268
  def test_49
@@ -271,8 +272,8 @@ module LitleOnline
271
272
  hash = customer_hash.merge(@@merchant_hash)
272
273
  echeck_response = LitleOnlineRequest.new.echeck_credit(hash)
273
274
 
274
- assert_equal('360', echeck_response.echeckCreditResponse.response)
275
- assert_equal('No transaction found with specified litleTxnId', echeck_response.echeckCreditResponse.message)
275
+ assert_equal('001', echeck_response.echeckCreditResponse.response)
276
+ assert_equal('Transaction Received', echeck_response.echeckCreditResponse.message)
276
277
  end
277
278
  end
278
279
  end
@@ -4,7 +4,8 @@ require 'test/unit'
4
4
  module LitleOnline
5
5
  class Litle_certTest5 < Test::Unit::TestCase
6
6
  @@merchant_hash = {'reportGroup'=>'Planets',
7
- 'merchantId'=>'101'
7
+ 'merchantId'=>'101',
8
+ 'id'=>'test'
8
9
  }
9
10
 
10
11
  def test_50
@@ -1,5 +1,5 @@
1
1
  =begin
2
- Copyright (c) 2017 Vantiv eCommerce
2
+ Copyright (c) 2012 Litle & Co.
3
3
 
4
4
  Permission is hereby granted, free of charge, to any person
5
5
  obtaining a copy of this software and associated documentation
@@ -43,6 +43,7 @@ module LitleOnline
43
43
  def test_MEGA_batch
44
44
  authHash = {
45
45
  'reportGroup'=>'Planets',
46
+ 'id' => '006',
46
47
  'orderId'=>'12344',
47
48
  'amount'=>'106',
48
49
  'orderSource'=>'ecommerce',
@@ -50,8 +51,7 @@ module LitleOnline
50
51
  'type'=>'VI',
51
52
  'number' =>'4100000000000001',
52
53
  'expDate' =>'1210'
53
- }, 'processingType' => 'initialInstallment',
54
- }
54
+ }}
55
55
 
56
56
  saleHash = {
57
57
  'reportGroup'=>'Planets',
@@ -63,13 +63,12 @@ module LitleOnline
63
63
  'type'=>'VI',
64
64
  'number' =>'4100000000000001',
65
65
  'expDate' =>'1210'
66
- },'originalNetworkTransactionId' => '9876543210',
67
- 'originalTransactionAmount' => '536981'
68
- }
66
+ }}
69
67
 
70
68
  creditHash = {
71
69
  'merchantId' => '101',
72
70
  'version'=>'8.8',
71
+ 'id' => '006',
73
72
  'reportGroup'=>'Planets',
74
73
  'orderId'=>'12344',
75
74
  'amount'=>'106',
@@ -83,6 +82,7 @@ module LitleOnline
83
82
  authReversalHash = {
84
83
  'merchantId' => '101',
85
84
  'version'=>'8.8',
85
+ 'id' => '006',
86
86
  'reportGroup'=>'Planets',
87
87
  'litleTxnId'=>'12345678000',
88
88
  'amount'=>'106',
@@ -92,6 +92,7 @@ module LitleOnline
92
92
  registerTokenHash = {
93
93
  'merchantId' => '101',
94
94
  'version'=>'8.8',
95
+ 'id' => '006',
95
96
  'reportGroup'=>'Planets',
96
97
  'orderId'=>'12344',
97
98
  'accountNumber'=>'1233456789103801'
@@ -111,6 +112,7 @@ module LitleOnline
111
112
  forceCaptHash = {
112
113
  'merchantId' => '101',
113
114
  'version'=>'8.8',
115
+ 'id' => '006',
114
116
  'reportGroup'=>'Planets',
115
117
  'litleTxnId'=>'123456',
116
118
  'orderId'=>'12344',
@@ -120,28 +122,28 @@ module LitleOnline
120
122
  'type'=>'VI',
121
123
  'number' =>'4100000000000001',
122
124
  'expDate' =>'1210'
123
- },'processingType' => 'initialInstallment',
124
- }
125
+ }}
125
126
 
126
127
  captHash = {
127
128
  'merchantId' => '101',
128
129
  'version'=>'8.8',
130
+ 'id' => '006',
129
131
  'reportGroup'=>'Planets',
130
132
  'litleTxnId'=>'123456000',
131
133
  'amount'=>'106',
132
- 'pin'=>'1234'
133
134
  }
134
135
 
135
136
  captGivenAuthHash = {
136
137
  'merchantId' => '101',
137
138
  'version'=>'8.8',
139
+ 'id' => '006',
138
140
  'reportGroup'=>'Planets',
139
141
  'orderId'=>'12344',
140
142
  'amount'=>'106',
141
143
  'authInformation' => {
142
144
  'authDate'=>'2002-10-09','authCode'=>'543216',
143
145
  'authAmount'=>'12345'
144
- },'originalNetworkTransactionId' => '9876543210',
146
+ },
145
147
  'orderSource'=>'ecommerce',
146
148
  'card'=>{
147
149
  'type'=>'VI',
@@ -152,17 +154,19 @@ module LitleOnline
152
154
  echeckVerificationHash = {
153
155
  'merchantId' => '101',
154
156
  'version'=>'8.8',
157
+ 'id' => '006',
155
158
  'reportGroup'=>'Planets',
156
159
  'amount'=>'123456',
157
160
  'orderId'=>'12345',
158
161
  'orderSource'=>'ecommerce',
159
162
  'echeck' => {'accType'=>'Checking','accNum'=>'12345657890','routingNum'=>'123456789','checkNum'=>'123455'},
160
- 'billToAddress'=>{'name'=>'Bob','city'=>'lowell','state'=>'MA','email'=>'vantiv.com'}
163
+ 'billToAddress'=>{'name'=>'Bob','city'=>'lowell','state'=>'MA','email'=>'litle.com'}
161
164
  }
162
165
 
163
166
  echeckCreditHash = {
164
167
  'merchantId' => '101',
165
168
  'version'=>'8.8',
169
+ 'id' => '006',
166
170
  'reportGroup'=>'Planets',
167
171
  'litleTxnId'=>'123456789101112',
168
172
  'amount'=>'12'
@@ -171,6 +175,7 @@ module LitleOnline
171
175
  echeckRedeopsitHash = {
172
176
  'merchantId' => '101',
173
177
  'version'=>'8.8',
178
+ 'id' => '006',
174
179
  'reportGroup'=>'Planets',
175
180
  'litleTxnId'=>'123456'
176
181
  }
@@ -178,13 +183,14 @@ module LitleOnline
178
183
  echeckSaleHash = {
179
184
  'merchantId' => '101',
180
185
  'version'=>'8.8',
186
+ 'id' => '006',
181
187
  'reportGroup'=>'Planets',
182
188
  'amount'=>'123456',
183
189
  'verify'=>'true',
184
190
  'orderId'=>'12345',
185
191
  'orderSource'=>'ecommerce',
186
192
  'echeck' => {'accType'=>'Checking','accNum'=>'12345657890','routingNum'=>'123456789','checkNum'=>'123455'},
187
- 'billToAddress'=>{'name'=>'Bob','city'=>'lowell','state'=>'MA','email'=>'vantiv.com'}
193
+ 'billToAddress'=>{'name'=>'Bob','city'=>'lowell','state'=>'MA','email'=>'litle.com'}
188
194
  }
189
195
 
190
196
  accountUpdateHash = {
@@ -249,13 +255,14 @@ module LitleOnline
249
255
  echeckSaleHash = {
250
256
  'merchantId' => '101',
251
257
  'version'=>'8.8',
258
+ 'id' => '006',
252
259
  'reportGroup'=>'Planets',
253
260
  'amount'=>'123456',
254
261
  'verify'=>'true',
255
262
  'orderId'=>'12345',
256
263
  'orderSource'=>'ecommerce',
257
264
  'echeck' => {'accType'=>'Checking','accNum'=>'12345657890','routingNum'=>'123456789','checkNum'=>'123455'},
258
- 'billToAddress'=>{'name'=>'Bob','city'=>'lowell','state'=>'MA','email'=>'vantiv.com'}
265
+ 'billToAddress'=>{'name'=>'Bob','city'=>'lowell','state'=>'MA','email'=>'litle.com'}
259
266
  }
260
267
 
261
268
  path = "/tmp/litle-sdk-for-ruby/cert/"
@@ -295,13 +302,14 @@ module LitleOnline
295
302
  echeckSaleHash = {
296
303
  'merchantId' => '101',
297
304
  'version'=>'8.8',
305
+ 'id' => '006',
298
306
  'reportGroup'=>'Planets',
299
307
  'amount'=>'123456',
300
308
  'verify'=>'true',
301
309
  'orderId'=>'12345',
302
310
  'orderSource'=>'ecommerce',
303
311
  'echeck' => {'accType'=>'Checking','accNum'=>'12345657890','routingNum'=>'123456789','checkNum'=>'123455'},
304
- 'billToAddress'=>{'name'=>'Bob','city'=>'lowell','state'=>'MA','email'=>'vantiv.com'}
312
+ 'billToAddress'=>{'name'=>'Bob','city'=>'lowell','state'=>'MA','email'=>'litle.com'}
305
313
  }
306
314
 
307
315
  path = "/tmp/litle-sdk-for-ruby/cert/"
@@ -342,6 +350,7 @@ module LitleOnline
342
350
  submerchantCreditHash = {
343
351
  'reportGroup'=>'Planets',
344
352
  'orderId'=>'12344',
353
+ 'id' => '006',
345
354
  'fundingSubmerchantId'=>'123456',
346
355
  'submerchantName'=>'001',
347
356
  'fundsTransferId'=>'00003',
@@ -352,6 +361,7 @@ module LitleOnline
352
361
  vendorCreditHash = {
353
362
  'reportGroup'=>'Planets',
354
363
  'orderId'=>'12344',
364
+ 'id' => '006',
355
365
  'fundingSubmerchantId'=>'123456',
356
366
  'vendorName'=>'001',
357
367
  'fundsTransferId'=>'00007',
@@ -362,6 +372,7 @@ module LitleOnline
362
372
  payFacCreditHash = {
363
373
  'reportGroup'=>'Planets',
364
374
  'orderId'=>'12344',
375
+ 'id' => '006',
365
376
  'fundingSubmerchantId'=>'123456',
366
377
  'fundsTransferId'=>'00001',
367
378
  'amount'=>'1000',
@@ -370,6 +381,7 @@ module LitleOnline
370
381
  reserveCreditHash = {
371
382
  'reportGroup'=>'Planets',
372
383
  'orderId'=>'12344',
384
+ 'id' => '006',
373
385
  'fundingSubmerchantId'=>'123456',
374
386
  'fundsTransferId'=>'00005',
375
387
  'amount'=>'50000',
@@ -378,6 +390,7 @@ module LitleOnline
378
390
  physicalCheckCreditHash = {
379
391
  'reportGroup'=>'Planets',
380
392
  'orderId'=>'12344',
393
+ 'id' => '006',
381
394
  'fundingSubmerchantId'=>'123456',
382
395
  'fundsTransferId'=>'00009',
383
396
  'amount'=>'9000',
@@ -386,6 +399,7 @@ module LitleOnline
386
399
  submerchantDebitHash = {
387
400
  'reportGroup'=>'Planets',
388
401
  'orderId'=>'12344',
402
+ 'id' => '006',
389
403
  'fundingSubmerchantId'=>'123456',
390
404
  'submerchantName'=>'001',
391
405
  'fundsTransferId'=>'00003',
@@ -396,6 +410,7 @@ module LitleOnline
396
410
  vendorDebitHash = {
397
411
  'reportGroup'=>'Planets',
398
412
  'orderId'=>'12344',
413
+ 'id' => '006',
399
414
  'fundingSubmerchantId'=>'123456',
400
415
  'vendorName'=>'001',
401
416
  'fundsTransferId'=>'00007',
@@ -406,6 +421,7 @@ module LitleOnline
406
421
  payFacDebitHash = {
407
422
  'reportGroup'=>'Planets',
408
423
  'orderId'=>'12344',
424
+ 'id' => '006',
409
425
  'fundingSubmerchantId'=>'123456',
410
426
  'fundsTransferId'=>'00001',
411
427
  'amount'=>'1000',
@@ -414,6 +430,7 @@ module LitleOnline
414
430
  reserveDebitHash = {
415
431
  'reportGroup'=>'Planets',
416
432
  'orderId'=>'12344',
433
+ 'id' => '006',
417
434
  'fundingSubmerchantId'=>'123456',
418
435
  'fundsTransferId'=>'00005',
419
436
  'amount'=>'50000',
@@ -422,6 +439,7 @@ module LitleOnline
422
439
  physicalCheckDebitHash = {
423
440
  'reportGroup'=>'Planets',
424
441
  'orderId'=>'12344',
442
+ 'id' => '006',
425
443
  'fundingSubmerchantId'=>'123456',
426
444
  'fundsTransferId'=>'00009',
427
445
  'amount'=>'9000',
@@ -471,7 +489,7 @@ module LitleOnline
471
489
 
472
490
  def test_echeck_pre_note_all
473
491
 
474
- billToAddress = {'name'=>'Bob','city'=>'lowell','state'=>'MA','email'=>'vantiv.com'}
492
+ billToAddress = {'name'=>'Bob','city'=>'lowell','state'=>'MA','email'=>'litle.com'}
475
493
  echeckSuccess = {'accType'=>'Corporate','accNum'=>'1092969901','routingNum'=>'011075150'}
476
494
  echeckRoutErr = {'accType'=>'Checking','accNum'=>'6099999992','routingNum'=>'053133052'}
477
495
  echeckAccErr = {'accType'=>'Corporate','accNum'=>'10@2969901','routingNum'=>'011100012'}
@@ -481,6 +499,7 @@ module LitleOnline
481
499
  'version'=>'9.3',
482
500
  'reportGroup'=>'Planets',
483
501
  'orderId'=>'000',
502
+ 'id' => '006',
484
503
  'orderSource'=>'ecommerce',
485
504
  'billToAddress'=> billToAddress,
486
505
  'echeck' => echeckSuccess
@@ -491,6 +510,7 @@ module LitleOnline
491
510
  'version'=>'9.3',
492
511
  'reportGroup'=>'Planets',
493
512
  'orderId'=>'900',
513
+ 'id' => '006',
494
514
  'orderSource'=>'ecommerce',
495
515
  'billToAddress'=> billToAddress,
496
516
  'echeck' => echeckRoutErr
@@ -501,6 +521,7 @@ module LitleOnline
501
521
  'version'=>'9.3',
502
522
  'reportGroup'=>'Planets',
503
523
  'orderId'=>'301',
524
+ 'id' => '006',
504
525
  'orderSource'=>'ecommerce',
505
526
  'billToAddress'=> billToAddress,
506
527
  'echeck' => echeckAccErr
@@ -511,6 +532,7 @@ module LitleOnline
511
532
  'version'=>'9.3',
512
533
  'reportGroup'=>'Planets',
513
534
  'orderId'=>'000',
535
+ 'id' => '006',
514
536
  'orderSource'=>'ecommerce',
515
537
  'billToAddress'=> billToAddress,
516
538
  'echeck' => echeckSuccess
@@ -521,6 +543,7 @@ module LitleOnline
521
543
  'version'=>'9.3',
522
544
  'reportGroup'=>'Planets',
523
545
  'orderId'=>'900',
546
+ 'id' => '006',
524
547
  'orderSource'=>'ecommerce',
525
548
  'billToAddress'=> billToAddress,
526
549
  'echeck' => echeckRoutErr
@@ -531,6 +554,7 @@ module LitleOnline
531
554
  'version'=>'9.3',
532
555
  'reportGroup'=>'Planets',
533
556
  'orderId'=>'301',
557
+ 'id' => '006',
534
558
  'orderSource'=>'ecommerce',
535
559
  'billToAddress'=> billToAddress,
536
560
  'echeck' => echeckAccErr
@@ -568,7 +592,7 @@ module LitleOnline
568
592
  request.process_responses({:transaction_listener => LitleOnline::DefaultLitleListener.new do |transaction|
569
593
  assert_not_nil transaction["litleTxnId"] =~ /\d+/
570
594
  assert_not_nil transaction["message"]
571
- assert_equal(transaction["orderId"],transaction["response"])
595
+ assert_not_nil transaction["response"]
572
596
  count+=1
573
597
  end})
574
598
  assert_equal 6,count