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
@@ -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
@@ -1,6 +1,5 @@
1
1
  =begin
2
- Copyright (c) 2017 Vantiv eCommerce
3
-
2
+ Copyright (c) 2012 Litle & Co.
4
3
  Permission is hereby granted, free of charge, to any person
5
4
  obtaining a copy of this software and associated documentation
6
5
  files (the "Software"), to deal in the Software without
@@ -9,10 +8,8 @@ copy, modify, merge, publish, distribute, sublicense, and/or sell
9
8
  copies of the Software, and to permit persons to whom the
10
9
  Software is furnished to do so, subject to the following
11
10
  conditions:
12
-
13
11
  The above copyright notice and this permission notice shall be
14
12
  included in all copies or substantial portions of the Software.
15
-
16
13
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
14
  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
18
15
  OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
@@ -96,6 +93,7 @@ module LitleOnline
96
93
  updatePlanHash ={
97
94
  'merchantId' => '101',
98
95
  'version'=>'8.8',
96
+
99
97
  'reportGroup'=>'Planets',
100
98
  'planCode'=>'updatePlanCodeString',
101
99
  'active'=>'true'
@@ -152,4 +150,4 @@ module LitleOnline
152
150
 
153
151
  end
154
152
  end
155
- end
153
+ end
@@ -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
@@ -47,10 +47,8 @@ module LitleOnline
47
47
  'reportGroup'=>'Planets',
48
48
  }
49
49
 
50
- #Get exceptions
51
- exception = assert_raise(RuntimeError){LitleOnlineRequest.new.cancel_subscription(hash)}
52
- #Test
53
- assert(exception.message =~ /Error validating xml data against the schema/)
50
+ response= LitleOnlineRequest.new.cancel_subscription(hash)
51
+ assert(response.message =~ /Error validating xml data against the schema/)
54
52
  end
55
53
 
56
54
  end
@@ -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
@@ -31,6 +31,7 @@ module LitleOnline
31
31
  hash = {
32
32
  'merchantId' => '101',
33
33
  'version'=>'8.8',
34
+ 'id'=>'test',
34
35
  'reportGroup'=>'Planets',
35
36
  'litleTxnId'=>'123456000',
36
37
  'amount'=>'106',
@@ -43,6 +44,7 @@ module LitleOnline
43
44
  hash = {
44
45
  'merchantId' => '101',
45
46
  'version'=>'8.8',
47
+ 'id'=>'test',
46
48
  'reportGroup'=>'Planets',
47
49
  'partial'=>'true',
48
50
  'litleTxnId'=>'123456000',
@@ -56,6 +58,7 @@ module LitleOnline
56
58
  hash = {
57
59
  'merchantId' => '101',
58
60
  'version'=>'8.8',
61
+ 'id'=>'test',
59
62
  'reportGroup'=>'Planets',
60
63
  'litleTxnId'=>'123456000',
61
64
  'amount'=>'106',
@@ -76,40 +79,9 @@ module LitleOnline
76
79
  'reportGroup'=>'Planets',
77
80
  'amount'=>'106',
78
81
  }
79
- #Get exceptions
80
- exception = assert_raise(RuntimeError){LitleOnlineRequest.new.capture(hash)}
81
- #Test
82
- assert(exception.message =~ /Error validating xml data against the schema/)
83
- end
84
-
85
- def test_custom_billing
86
- hash = {
87
- 'payPalNotes'=>'Notes',
88
- 'litleTxnId'=>'123456000',
89
- 'amount'=>'106',
90
- 'customBilling'=>{
91
- 'city' =>'boston',
92
- 'descriptor' => 'card was present',
93
- }}
94
- response= LitleOnlineRequest.new.capture(hash)
95
- assert_equal('Valid Format', response.message)
96
- end
97
-
98
-
99
- def test_simple_capture_with_pin
100
- hash = {
101
- #'merchantId' => '101',
102
- #'version'=>'8.8',
103
- #'reportGroup'=>'Planets',
104
- 'payPalNotes'=>'Notes',
105
- 'litleTxnId'=>'123456000',
106
- 'amount'=>'106',
107
- 'pin'=>'1234'
108
- }
109
82
  response= LitleOnlineRequest.new.capture(hash)
110
- assert_equal('Valid Format', response.message)
111
- assert_equal('Approved', response.captureResponse.message)
83
+ assert(response.message =~ /Error validating xml data against the schema/)
112
84
  end
113
-
85
+
114
86
  end
115
87
  end
@@ -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
@@ -31,6 +31,7 @@ module LitleOnline
31
31
  hash = {
32
32
  'merchantId' => '101',
33
33
  'version'=>'8.8',
34
+ 'id'=>'test',
34
35
  'reportGroup'=>'Planets',
35
36
  'orderId'=>'12344',
36
37
  'amount'=>'106',
@@ -52,6 +53,7 @@ module LitleOnline
52
53
  hash = {
53
54
  'merchantId' => '101',
54
55
  'version'=>'8.8',
56
+ 'id'=>'test',
55
57
  'reportGroup'=>'Planets',
56
58
  'orderId'=>'12344',
57
59
  'authInformation' => {
@@ -74,6 +76,7 @@ module LitleOnline
74
76
  hash = {
75
77
  'merchantId' => '101',
76
78
  'version'=>'8.8',
79
+ 'id'=>'test',
77
80
  'orderSource'=>'ecommerce',
78
81
  'authInformation' => {
79
82
  'authDate'=>'2002-10-09','authCode'=>'543216',
@@ -96,6 +99,7 @@ module LitleOnline
96
99
  hash = {
97
100
  'merchantId' => '101',
98
101
  'version'=>'8.8',
102
+ 'id'=>'test',
99
103
  'reportGroup'=>'Planets',
100
104
  'authInformation' => {
101
105
  'authDate'=>'2002-10-09','authCode'=>'543216',
@@ -118,6 +122,7 @@ module LitleOnline
118
122
  hash = {
119
123
  'merchantId' => '101',
120
124
  'version'=>'8.8',
125
+ 'id'=>'test',
121
126
  'reportGroup'=>'Planets',
122
127
  'orderId'=>'12344',
123
128
  'amount'=>'106',
@@ -125,7 +130,7 @@ module LitleOnline
125
130
  'authDate'=>'2002-10-09','authCode'=>'543216',
126
131
  'authAmount'=>'12345'
127
132
  },
128
- 'billToAddress'=>{'name'=>'Bob','city'=>'lowell','state'=>'MA','email'=>'vantiv.com'},
133
+ 'billToAddress'=>{'name'=>'Bob','city'=>'lowell','state'=>'MA','email'=>'litle.com'},
129
134
  'processingInstructions'=>{'bypassVelocityCheck'=>'true'},
130
135
  'orderSource'=>'ecommerce',
131
136
  'card'=>{
@@ -141,6 +146,7 @@ module LitleOnline
141
146
  hash = {
142
147
  'merchantId' => '101',
143
148
  'version'=>'8.8',
149
+ 'id'=>'test',
144
150
  'reportGroup'=>'Planets',
145
151
  'orderId'=>'12344',
146
152
  'amount'=>'106',
@@ -168,6 +174,7 @@ module LitleOnline
168
174
  hash = {
169
175
  'merchantId' => '101',
170
176
  'version'=>'8.8',
177
+ 'id'=>'test',
171
178
  'reportGroup'=>'Planets',
172
179
  'orderId'=>'12344',
173
180
  'authInformation' => {
@@ -180,16 +187,15 @@ module LitleOnline
180
187
  'number' =>'4100000000000001',
181
188
  'expDate' =>'1210'
182
189
  }}
183
- #Get exceptions
184
- exception = assert_raise(RuntimeError){LitleOnlineRequest.new.capture_given_auth(hash)}
185
- #Test
186
- assert(exception.message =~ /Error validating xml data against the schema/)
190
+ response= LitleOnlineRequest.new.capture_given_auth(hash)
191
+ assert(response.message =~ /Error validating xml data against the schema/)
187
192
  end
188
193
 
189
194
  def test_simple_captureGivenAuth_with_mpos
190
195
  hash = {
191
196
  'merchantId' => '101',
192
197
  'version'=>'8.8',
198
+ 'id'=>'test',
193
199
  'reportGroup'=>'Planets',
194
200
  'orderId'=>'12344',
195
201
  'amount'=>'106',
@@ -215,6 +221,7 @@ module LitleOnline
215
221
  hash = {
216
222
  'merchantId' => '101',
217
223
  'version'=>'8.8',
224
+ 'id'=>'test',
218
225
  'reportGroup'=>'Planets',
219
226
  'orderId'=>'12344',
220
227
  'authInformation' => {
@@ -233,54 +240,5 @@ module LitleOnline
233
240
  response= LitleOnlineRequest.new.capture_given_auth(hash)
234
241
  assert_equal('Valid Format', response.message)
235
242
  end
236
-
237
- def test_simple_capture_given_auth_with_processingType
238
- hash = {
239
- 'merchantId' => '101',
240
- 'version'=>'8.8',
241
- 'reportGroup'=>'Planets',
242
- 'orderId'=>'12344',
243
- 'amount'=>'106',
244
- 'orderSource'=>'ecommerce',
245
- 'authInformation' => {
246
- 'authDate'=>'2002-10-09','authCode'=>'543216',
247
- 'authAmount'=>'12345'
248
- },
249
- 'processingType'=>'initialRecurring',
250
- 'card'=>{
251
- 'type'=>'VI',
252
- 'number' =>'4100000000000001',
253
- 'expDate' =>'1210'
254
- }}
255
- response= LitleOnlineRequest.new.capture_given_auth(hash)
256
- assert_equal('Valid Format', response.message)
257
- #assert_equal('000', response.captureGivenAuthResponse.response)
258
- end
259
-
260
- def test_simple_capture_given_auth_with_originalNetworkTransactionId_originalTransactionAmount
261
- hash = {
262
- 'merchantId' => '101',
263
- 'version'=>'8.8',
264
- 'reportGroup'=>'Planets',
265
- 'orderId'=>'12344',
266
- 'amount'=>'106',
267
- 'orderSource'=>'ecommerce',
268
- 'authInformation' => {
269
- 'authDate'=>'2002-10-09','authCode'=>'543216',
270
- 'authAmount'=>'12345'
271
- },
272
- 'card'=>{
273
- 'type'=>'VI',
274
- 'number' =>'4100000000000001',
275
- 'expDate' =>'1210'
276
- },
277
- 'originalNetworkTransactionId'=>'987654321098765432109876543210',
278
- 'originalTransactionAmount'=>'10661'
279
- }
280
- response= LitleOnlineRequest.new.capture_given_auth(hash)
281
- assert_equal('Valid Format', response.message)
282
- #assert_equal('000', response.captureGivenAuthResponse.response)
283
- end
284
-
285
243
  end
286
244
  end
@@ -1,5 +1,5 @@
1
1
  =begin
2
- Copyright (c) 2017 Vantiv eCommerce
2
+ Copyright (c) 2012 Litle & Co.
3
3
  Permission is hereby granted, free of charge, to any person
4
4
  obtaining a copy of this software and associated documentation
5
5
  files (the "Software"), to deal in the Software without
@@ -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
@@ -78,10 +78,8 @@ def test_simple_happy
78
78
  'intervalType'=>'ANNUAL',
79
79
  }
80
80
 
81
- #Get exceptions
82
- exception = assert_raise(RuntimeError){LitleOnlineRequest.new.create_plan(hash)}
83
- #Test
84
- assert(exception.message =~ /Error validating xml data against the schema/)
81
+ response= LitleOnlineRequest.new.create_plan(hash)
82
+ assert(response.message =~ /Error validating xml data against the schema/)
85
83
  end
86
84
  end
87
85
  end
@@ -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
@@ -30,6 +30,7 @@ module LitleOnline
30
30
  def test_simple_credit_with_card
31
31
  hash = {
32
32
  'merchantId' => '101',
33
+ 'id' => 'test',
33
34
  'version'=>'8.8',
34
35
  'reportGroup'=>'Planets',
35
36
  'orderId'=>'12344',
@@ -47,6 +48,7 @@ module LitleOnline
47
48
  def test_simple_credit_with_paypal
48
49
  hash = {
49
50
  'merchantId' => '101',
51
+ 'id' => 'test',
50
52
  'version'=>'8.8',
51
53
  'reportGroup'=>'Planets',
52
54
  'amount'=>'106',
@@ -63,6 +65,7 @@ module LitleOnline
63
65
  def test_simple_credit_with_secondaryAmount
64
66
  hash = {
65
67
  'merchantId' => '101',
68
+ 'id' => 'test',
66
69
  'version'=>'8.8',
67
70
  'reportGroup'=>'Planets',
68
71
  'amount'=>'106',
@@ -80,6 +83,7 @@ module LitleOnline
80
83
  def test_credit_with_TxnID_secondaryAmount
81
84
  hash = {
82
85
  'merchantId' => '101',
86
+ 'id' => '102',
83
87
  'version'=>'8.8',
84
88
  'reportGroup'=>'Planets',
85
89
  'amount'=>'106',
@@ -93,6 +97,7 @@ module LitleOnline
93
97
  def test_fields_out_of_order
94
98
  hash = {
95
99
  'merchantId' => '101',
100
+ 'id' => '102',
96
101
  'version'=>'8.8',
97
102
  'reportGroup'=>'Planets',
98
103
  'orderId'=>'12344',
@@ -111,6 +116,7 @@ module LitleOnline
111
116
  def test_invalid_field
112
117
  hash = {
113
118
  'merchantId' => '101',
119
+ 'id' => '102',
114
120
  'version'=>'8.8',
115
121
  'reportGroup'=>'Planets',
116
122
  'orderId'=>'12344',
@@ -129,6 +135,7 @@ module LitleOnline
129
135
  def test_pay_pal_notes
130
136
  hash = {
131
137
  'merchantId' => '101',
138
+ 'id' => '102',
132
139
  'version'=>'8.8',
133
140
  'reportGroup'=>'Planets',
134
141
  'orderId'=>'12344',
@@ -147,6 +154,7 @@ module LitleOnline
147
154
  def test_processing_instructions_and_amex_data
148
155
  hash = {
149
156
  'merchantId' => '101',
157
+ 'id' => '102',
150
158
  'version'=>'8.8',
151
159
  'reportGroup'=>'Planets',
152
160
  'amount'=>'2000',
@@ -166,6 +174,7 @@ module LitleOnline
166
174
  def test_simple_credit_with_mpos
167
175
  hash = {
168
176
  'merchantId' => '101',
177
+ 'id' => '102',
169
178
  'version'=>'8.8',
170
179
  'reportGroup'=>'Planets',
171
180
  'orderId'=>'12344',
@@ -183,21 +192,5 @@ module LitleOnline
183
192
  response= LitleOnlineRequest.new.credit(hash)
184
193
  assert_equal('Valid Format', response.message)
185
194
  end
186
-
187
- def test_simple_credit_with_pin
188
- hash = {
189
- 'merchantId' => '101',
190
- 'version'=>'8.8',
191
- 'reportGroup'=>'Planets',
192
- 'amount'=>'106',
193
- 'secondaryAmount'=>'20',
194
- 'litleTxnId'=>'1234',
195
- 'pin'=>'3333'
196
- }
197
- response= LitleOnlineRequest.new.credit(hash)
198
- assert_equal('Valid Format', response.message)
199
- assert_equal('000', response.creditResponse.response)
200
- end
201
-
202
195
  end
203
196
  end
@@ -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
@@ -33,6 +33,7 @@ def test_simple_happy
33
33
  hash = {
34
34
  'merchantId' => '101',
35
35
  'version'=>'8.8',
36
+ 'id'=>'test',
36
37
  'reportGroup'=>'Planets',
37
38
  'orderId' =>'1001',
38
39
  'orderSource' =>'ecommerce',
@@ -51,6 +52,7 @@ def test_simple_happy
51
52
  hash = {
52
53
  'merchantId' => '101',
53
54
  'version'=>'8.8',
55
+ 'id'=>'test',
54
56
  'reportGroup'=>'Planets',
55
57
  'orderSource' =>'ecommerce',
56
58
  'orderId' =>'1001',
@@ -73,10 +75,8 @@ def test_simple_happy
73
75
  'amount' =>'500',
74
76
  }
75
77
 
76
- #Get exceptions
77
- exception = assert_raise(RuntimeError){LitleOnlineRequest.new.deactivate(hash)}
78
- #Test
79
- assert(exception.message =~ /Error validating xml data against the schema/)
78
+ response= LitleOnlineRequest.new.deactivate(hash)
79
+ assert(response.message =~ /Error validating xml data against the schema/)
80
80
  end
81
81
  end
82
82
  end
@@ -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
@@ -33,6 +33,7 @@ def test_simple
33
33
  hash = {
34
34
  'merchantId' => '101',
35
35
  'version'=>'8.8',
36
+ 'id'=>'test',
36
37
  'reportGroup'=>'Planets',
37
38
  'litleTxnId' =>'5000'
38
39
  }
@@ -49,10 +50,8 @@ def test_simple
49
50
  'reportGroup'=>'Planets',
50
51
  }
51
52
 
52
- #Get exceptions
53
- exception = assert_raise(RuntimeError){LitleOnlineRequest.new.deactivate_reversal(hash)}
54
- #Test
55
- assert(exception.message =~ /Error validating xml data against the schema/)
53
+ response= LitleOnlineRequest.new.deactivate_reversal(hash)
54
+ assert(response.message =~ /Error validating xml data against the schema/)
56
55
  end
57
56
  end
58
57
  end