exact4r 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +6 -1
- data/README +71 -3
- data/Rakefile +8 -7
- data/VERSION +1 -1
- data/doc/classes/EWS/Transaction/FakeResponse.html +451 -0
- data/doc/classes/EWS/Transaction/Request.html +61 -80
- data/doc/classes/EWS/Transaction/Response.html +206 -14
- data/doc/classes/EWS/Transaction/Validator.html +182 -0
- data/doc/classes/EWS/Transporter.html +269 -0
- data/doc/classes/REXML/Document.html +176 -0
- data/doc/classes/REXML/Entity.html +150 -0
- data/doc/classes/REXML.html +112 -0
- data/doc/created.rid +1 -1
- data/doc/files/CHANGELOG.html +156 -0
- data/doc/files/LICENCE.html +109 -0
- data/doc/files/README.html +164 -23
- data/doc/files/VERSION.html +107 -0
- data/doc/files/lib/ews/transaction/fake_response_rb.html +101 -0
- data/doc/files/lib/ews/transaction/mapping_rb.html +1 -1
- data/doc/files/lib/ews/transaction/request_rb.html +8 -1
- data/doc/files/lib/ews/transaction/response_rb.html +1 -1
- data/doc/files/lib/ews/transaction/validator_rb.html +101 -0
- data/doc/files/lib/ews/{transaction/transporter_rb.html → transporter_rb.html} +3 -3
- data/doc/files/lib/exact4r_rb.html +6 -2
- data/doc/fr_class_index.html +6 -1
- data/doc/fr_file_index.html +6 -1
- data/doc/fr_method_index.html +22 -7
- data/lib/ews/transaction/mapping.rb +41 -40
- data/lib/ews/transaction/request.rb +3 -4
- data/lib/ews/transaction/response.rb +5 -0
- data/lib/ews/transaction/validator.rb +44 -34
- data/lib/ews/transporter.rb +3 -3
- data/lib/exact4r.rb +1 -1
- data/test/exhaustive/forced_post_test.rb +75 -0
- data/test/exhaustive/online_debit_purchase_test.rb +66 -0
- data/test/exhaustive/online_debit_refund_test.rb +66 -0
- data/test/exhaustive/pre_auth_completion_test.rb +99 -0
- data/test/exhaustive/pre_auth_only_test.rb +68 -0
- data/test/exhaustive/pre_auth_test.rb +68 -0
- data/test/exhaustive/purchase_correction_test.rb +79 -0
- data/test/exhaustive/purchase_test.rb +68 -0
- data/test/exhaustive/recurring_seed_pre_auth_test.rb +68 -0
- data/test/exhaustive/recurring_seed_purchase_test.rb +68 -0
- data/test/exhaustive/refund_correction_test.rb +79 -0
- data/test/exhaustive/refund_test.rb +68 -0
- data/test/exhaustive/secure_storage_test.rb +75 -0
- data/test/exhaustive/tagged_online_debit_refund_test.rb +168 -0
- data/test/exhaustive/tagged_pre_auth_completion_test.rb +119 -0
- data/test/exhaustive/tagged_pre_auth_test.rb +116 -0
- data/test/exhaustive/tagged_purchase_test.rb +116 -0
- data/test/exhaustive/tagged_refund_test.rb +144 -0
- data/test/exhaustive/transaction_details_test.rb +86 -0
- data/test/exhaustive/void_test.rb +75 -0
- data/{spec/avs_spec.rb → test/general/avs_test.rb} +33 -44
- data/test/general/json_encoding_test.rb +62 -0
- data/test/general/request_test.rb +185 -0
- data/test/general/rest_encoding_test.rb +174 -0
- data/test/general/soap_encoding_test.rb +211 -0
- data/test/general/transporter_test.rb +54 -0
- data/test/general/validator_test.rb +150 -0
- data/test/samples/rest.dodgy.response.xml +60 -0
- data/test/samples/rest.everything.response.xml +67 -0
- data/test/samples/rest.response.xml +60 -0
- data/test/samples/soap.deserialization.fault.xml +10 -0
- data/test/samples/soap.dodgy.response.xml +95 -0
- data/test/samples/soap.everything.response.xml +75 -0
- data/test/samples/soap.generalfailure.fault.xml +13 -0
- data/test/samples/soap.nulltransaction.fault.xml +14 -0
- data/test/samples/soap.response.xml +95 -0
- data/test/test_helper.rb +115 -0
- metadata +52 -12
- data/doc/classes/EWS/Transaction/Transporter.html +0 -251
- data/pkg/exact4r-0.5.gem +0 -0
- data/spec/mapping_spec.rb +0 -126
- data/spec/request_spec.rb +0 -154
- data/spec/spec_helper.rb +0 -55
- data/spec/transporter_spec.rb +0 -43
- data/spec/validator_spec.rb +0 -150
@@ -105,7 +105,7 @@ href="http://www.e-xact.com/wp-content/uploads/2007/06/E-xact_Payment_Webservice
|
|
105
105
|
</p>
|
106
106
|
<p>
|
107
107
|
Please note that, if your chosen transaction requires it, credit card
|
108
|
-
expiry dates <b>must</b> be entered in
|
108
|
+
expiry dates <b>must</b> be entered in MMYY format.
|
109
109
|
</p>
|
110
110
|
<h1>Allowable transaction types</h1>
|
111
111
|
<pre>
|
@@ -142,10 +142,9 @@ expiry dates <b>must</b> be entered in YYMM format.
|
|
142
142
|
<h3 class="section-bar">Methods</h3>
|
143
143
|
|
144
144
|
<div class="name-list">
|
145
|
-
<a href="#
|
146
|
-
<a href="#
|
147
|
-
<a href="#
|
148
|
-
<a href="#M000007">valid?</a>
|
145
|
+
<a href="#M000017">is_find_transaction?</a>
|
146
|
+
<a href="#M000015">new</a>
|
147
|
+
<a href="#M000016">transaction_type=</a>
|
149
148
|
</div>
|
150
149
|
</div>
|
151
150
|
|
@@ -153,6 +152,13 @@ expiry dates <b>must</b> be entered in YYMM format.
|
|
153
152
|
|
154
153
|
|
155
154
|
<!-- if includes -->
|
155
|
+
<div id="includes">
|
156
|
+
<h3 class="section-bar">Included Modules</h3>
|
157
|
+
|
158
|
+
<div id="includes-list">
|
159
|
+
<span class="include-name"><a href="Validator.html">Validator</a></span>
|
160
|
+
</div>
|
161
|
+
</div>
|
156
162
|
|
157
163
|
<div id="section">
|
158
164
|
|
@@ -171,7 +177,7 @@ expiry dates <b>must</b> be entered in YYMM format.
|
|
171
177
|
<td class="context-item-desc"></td>
|
172
178
|
</tr>
|
173
179
|
<tr class="top-aligned-row context-row">
|
174
|
-
<td class="context-item-name">
|
180
|
+
<td class="context-item-name">authorization_num</td>
|
175
181
|
<td class="context-item-value"> [RW] </td>
|
176
182
|
<td class="context-item-desc"></td>
|
177
183
|
</tr>
|
@@ -203,7 +209,10 @@ expiry dates <b>must</b> be entered in YYMM format.
|
|
203
209
|
<tr class="top-aligned-row context-row">
|
204
210
|
<td class="context-item-name">cc_verification_str1</td>
|
205
211
|
<td class="context-item-value"> [RW] </td>
|
206
|
-
<td class="context-item-desc"
|
212
|
+
<td class="context-item-desc">
|
213
|
+
AVS - Address Verification,
|
214
|
+
|
215
|
+
</td>
|
207
216
|
</tr>
|
208
217
|
<tr class="top-aligned-row context-row">
|
209
218
|
<td class="context-item-name">cc_verification_str2</td>
|
@@ -238,7 +247,10 @@ expiry dates <b>must</b> be entered in YYMM format.
|
|
238
247
|
<tr class="top-aligned-row context-row">
|
239
248
|
<td class="context-item-name">errors</td>
|
240
249
|
<td class="context-item-value"> [RW] </td>
|
241
|
-
<td class="context-item-desc"
|
250
|
+
<td class="context-item-desc">
|
251
|
+
yeah, it‘s ugly, but otherwise RDoc won‘t pick them up
|
252
|
+
|
253
|
+
</td>
|
242
254
|
</tr>
|
243
255
|
<tr class="top-aligned-row context-row">
|
244
256
|
<td class="context-item-name">gateway_id</td>
|
@@ -335,6 +347,11 @@ expiry dates <b>must</b> be entered in YYMM format.
|
|
335
347
|
<td class="context-item-value"> [RW] </td>
|
336
348
|
<td class="context-item-desc"></td>
|
337
349
|
</tr>
|
350
|
+
<tr class="top-aligned-row context-row">
|
351
|
+
<td class="context-item-name">zip_code</td>
|
352
|
+
<td class="context-item-value"> [RW] </td>
|
353
|
+
<td class="context-item-desc"></td>
|
354
|
+
</tr>
|
338
355
|
</table>
|
339
356
|
</div>
|
340
357
|
</div>
|
@@ -345,11 +362,11 @@ expiry dates <b>must</b> be entered in YYMM format.
|
|
345
362
|
<div id="methods">
|
346
363
|
<h3 class="section-bar">Public Class methods</h3>
|
347
364
|
|
348
|
-
<div id="method-
|
349
|
-
<a name="
|
365
|
+
<div id="method-M000015" class="method-detail">
|
366
|
+
<a name="M000015"></a>
|
350
367
|
|
351
368
|
<div class="method-heading">
|
352
|
-
<a href="#
|
369
|
+
<a href="#M000015" class="method-signature">
|
353
370
|
<span class="method-name">new</span><span class="method-args">(hash = {})</span>
|
354
371
|
</a>
|
355
372
|
</div>
|
@@ -359,14 +376,14 @@ expiry dates <b>must</b> be entered in YYMM format.
|
|
359
376
|
Initialize a <a href="Request.html">Request</a> with a hash of values
|
360
377
|
</p>
|
361
378
|
<p><a class="source-toggle" href="#"
|
362
|
-
onclick="toggleCode('
|
363
|
-
<div class="method-source-code" id="
|
379
|
+
onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
|
380
|
+
<div class="method-source-code" id="M000015-source">
|
364
381
|
<pre>
|
365
|
-
<span class="ruby-comment cmt"># File lib/ews/transaction/request.rb, line
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
382
|
+
<span class="ruby-comment cmt"># File lib/ews/transaction/request.rb, line 73</span>
|
383
|
+
73: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">hash</span> = {})
|
384
|
+
74: <span class="ruby-identifier">hash</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">send</span> <span class="ruby-node">"#{k.to_s}="</span>, <span class="ruby-identifier">v</span>}
|
385
|
+
75: <span class="ruby-ivar">@errors</span> = {}
|
386
|
+
76: <span class="ruby-keyword kw">end</span>
|
370
387
|
</pre>
|
371
388
|
</div>
|
372
389
|
</div>
|
@@ -374,11 +391,11 @@ Initialize a <a href="Request.html">Request</a> with a hash of values
|
|
374
391
|
|
375
392
|
<h3 class="section-bar">Public Instance methods</h3>
|
376
393
|
|
377
|
-
<div id="method-
|
378
|
-
<a name="
|
394
|
+
<div id="method-M000017" class="method-detail">
|
395
|
+
<a name="M000017"></a>
|
379
396
|
|
380
397
|
<div class="method-heading">
|
381
|
-
<a href="#
|
398
|
+
<a href="#M000017" class="method-signature">
|
382
399
|
<span class="method-name">is_find_transaction?</span><span class="method-args">()</span>
|
383
400
|
</a>
|
384
401
|
</div>
|
@@ -389,23 +406,23 @@ Indicates whether or not this transaction is a
|
|
389
406
|
<tt>:transaction_details</tt> transaction
|
390
407
|
</p>
|
391
408
|
<p><a class="source-toggle" href="#"
|
392
|
-
onclick="toggleCode('
|
393
|
-
<div class="method-source-code" id="
|
409
|
+
onclick="toggleCode('M000017-source');return false;">[Source]</a></p>
|
410
|
+
<div class="method-source-code" id="M000017-source">
|
394
411
|
<pre>
|
395
|
-
<span class="ruby-comment cmt"># File lib/ews/transaction/request.rb, line
|
396
|
-
|
397
|
-
|
398
|
-
|
412
|
+
<span class="ruby-comment cmt"># File lib/ews/transaction/request.rb, line 93</span>
|
413
|
+
93: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_find_transaction?</span>
|
414
|
+
94: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">transaction_type</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"CR"</span>
|
415
|
+
95: <span class="ruby-keyword kw">end</span>
|
399
416
|
</pre>
|
400
417
|
</div>
|
401
418
|
</div>
|
402
419
|
</div>
|
403
420
|
|
404
|
-
<div id="method-
|
405
|
-
<a name="
|
421
|
+
<div id="method-M000016" class="method-detail">
|
422
|
+
<a name="M000016"></a>
|
406
423
|
|
407
424
|
<div class="method-heading">
|
408
|
-
<a href="#
|
425
|
+
<a href="#M000016" class="method-signature">
|
409
426
|
<span class="method-name">transaction_type=</span><span class="method-args">(type_sym)</span>
|
410
427
|
</a>
|
411
428
|
</div>
|
@@ -417,57 +434,21 @@ relevant code, e.g: for a purchase you can use either
|
|
417
434
|
<tt>:purchase</tt> or <tt>‘00‘</tt>
|
418
435
|
</p>
|
419
436
|
<p><a class="source-toggle" href="#"
|
420
|
-
onclick="toggleCode('
|
421
|
-
<div class="method-source-code" id="
|
437
|
+
onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
|
438
|
+
<div class="method-source-code" id="M000016-source">
|
422
439
|
<pre>
|
423
|
-
<span class="ruby-comment cmt"># File lib/ews/transaction/request.rb, line
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
</div>
|
436
|
-
|
437
|
-
<div id="method-M000007" class="method-detail">
|
438
|
-
<a name="M000007"></a>
|
439
|
-
|
440
|
-
<div class="method-heading">
|
441
|
-
<a href="#M000007" class="method-signature">
|
442
|
-
<span class="method-name">valid?</span><span class="method-args">()</span>
|
443
|
-
</a>
|
444
|
-
</div>
|
445
|
-
|
446
|
-
<div class="method-description">
|
447
|
-
<p><a class="source-toggle" href="#"
|
448
|
-
onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
|
449
|
-
<div class="method-source-code" id="M000007-source">
|
450
|
-
<pre>
|
451
|
-
<span class="ruby-comment cmt"># File lib/ews/transaction/request.rb, line 75</span>
|
452
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid?</span>
|
453
|
-
<span class="ruby-identifier">errors</span>[<span class="ruby-identifier">:transaction_type</span>] = <span class="ruby-value str">"transaction_type must be supplied"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">transaction_type</span>.<span class="ruby-identifier">blank?</span>
|
454
|
-
<span class="ruby-identifier">errors</span>[<span class="ruby-identifier">:transaction_type</span>] = <span class="ruby-value str">"invalid transaction_type supplied"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@@transaction_codes</span>.<span class="ruby-identifier">values</span>.<span class="ruby-identifier">include?</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">transaction_type</span>
|
455
|
-
|
456
|
-
<span class="ruby-comment cmt"># need to authenticate</span>
|
457
|
-
<span class="ruby-identifier">errors</span>[<span class="ruby-identifier">:gateway_id</span>] = <span class="ruby-value str">"gateway_id must be supplied"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">gateway_id</span>.<span class="ruby-identifier">blank?</span>
|
458
|
-
<span class="ruby-identifier">errors</span>[<span class="ruby-identifier">:password</span>] = <span class="ruby-value str">"password must be supplied"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">password</span>.<span class="ruby-identifier">blank?</span>
|
459
|
-
|
460
|
-
<span class="ruby-comment cmt"># ensure we've been given valid amounts</span>
|
461
|
-
<span class="ruby-identifier">errors</span>[<span class="ruby-identifier">:amount</span>] = <span class="ruby-value str">"invalid amount supplied"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">valid_amount?</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">amount</span>)
|
462
|
-
<span class="ruby-identifier">errors</span>[<span class="ruby-identifier">:surcharge_amount</span>] = <span class="ruby-value str">"invalid surcharge_amount supplied"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">valid_amount?</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">surcharge_amount</span>)
|
463
|
-
<span class="ruby-identifier">errors</span>[<span class="ruby-identifier">:tax1_amount</span>] = <span class="ruby-value str">"invalid tax1_amount supplied"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">valid_amount?</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">tax1_amount</span>)
|
464
|
-
<span class="ruby-identifier">errors</span>[<span class="ruby-identifier">:tax2_amount</span>] = <span class="ruby-value str">"invalid tax2_amount supplied"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">valid_amount?</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">tax2_amount</span>)
|
465
|
-
|
466
|
-
<span class="ruby-identifier">errors</span>[<span class="ruby-identifier">:cc_number</span>] = <span class="ruby-value str">"invalid cc_number supplied"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">valid_card_number?</span>
|
467
|
-
<span class="ruby-identifier">errors</span>[<span class="ruby-identifier">:cc_expiry</span>] = <span class="ruby-value str">"invalid cc_expiry supplied"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">valid_expiry_date?</span>
|
468
|
-
|
469
|
-
<span class="ruby-identifier">errors</span>.<span class="ruby-identifier">empty?</span>
|
470
|
-
<span class="ruby-keyword kw">end</span>
|
440
|
+
<span class="ruby-comment cmt"># File lib/ews/transaction/request.rb, line 80</span>
|
441
|
+
80: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">transaction_type=</span>(<span class="ruby-identifier">type_sym</span>)
|
442
|
+
81: <span class="ruby-comment cmt"># assume we're given a symbol, so look up the code</span>
|
443
|
+
82: <span class="ruby-identifier">value</span> = <span class="ruby-ivar">@@transaction_codes</span>[<span class="ruby-identifier">type_sym</span>]
|
444
|
+
83: <span class="ruby-comment cmt"># if nothing found, then maybe we were given an actual code?</span>
|
445
|
+
84: <span class="ruby-keyword kw">if</span>(<span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span>)
|
446
|
+
85: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-node">"invalid transaction_type supplied #{type_sym}"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@@transaction_codes</span>.<span class="ruby-identifier">values</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">type_sym</span>)
|
447
|
+
86: <span class="ruby-identifier">value</span> = <span class="ruby-identifier">type_sym</span>
|
448
|
+
87: <span class="ruby-keyword kw">end</span>
|
449
|
+
88:
|
450
|
+
89: <span class="ruby-ivar">@transaction_type</span> = <span class="ruby-identifier">value</span>
|
451
|
+
90: <span class="ruby-keyword kw">end</span>
|
471
452
|
</pre>
|
472
453
|
</div>
|
473
454
|
</div>
|
@@ -65,9 +65,7 @@
|
|
65
65
|
<tr class="top-aligned-row">
|
66
66
|
<td><strong>Parent:</strong></td>
|
67
67
|
<td>
|
68
|
-
|
69
|
-
EWS::Transaction::Request
|
70
|
-
</a>
|
68
|
+
Object
|
71
69
|
</td>
|
72
70
|
</tr>
|
73
71
|
</table>
|
@@ -94,7 +92,8 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
94
92
|
<h3 class="section-bar">Methods</h3>
|
95
93
|
|
96
94
|
<div class="name-list">
|
97
|
-
<a href="#
|
95
|
+
<a href="#M000013">approved?</a>
|
96
|
+
<a href="#M000014">transaction_error?</a>
|
98
97
|
</div>
|
99
98
|
</div>
|
100
99
|
|
@@ -115,7 +114,12 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
115
114
|
<div class="name-list">
|
116
115
|
<table>
|
117
116
|
<tr class="top-aligned-row context-row">
|
118
|
-
<td class="context-item-name">
|
117
|
+
<td class="context-item-name">amount</td>
|
118
|
+
<td class="context-item-value"> [RW] </td>
|
119
|
+
<td class="context-item-desc"></td>
|
120
|
+
</tr>
|
121
|
+
<tr class="top-aligned-row context-row">
|
122
|
+
<td class="context-item-name">authorization_num</td>
|
119
123
|
<td class="context-item-value"> [RW] </td>
|
120
124
|
<td class="context-item-desc"></td>
|
121
125
|
</tr>
|
@@ -139,16 +143,81 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
139
143
|
<td class="context-item-value"> [RW] </td>
|
140
144
|
<td class="context-item-desc"></td>
|
141
145
|
</tr>
|
146
|
+
<tr class="top-aligned-row context-row">
|
147
|
+
<td class="context-item-name">cardholder_name</td>
|
148
|
+
<td class="context-item-value"> [RW] </td>
|
149
|
+
<td class="context-item-desc"></td>
|
150
|
+
</tr>
|
151
|
+
<tr class="top-aligned-row context-row">
|
152
|
+
<td class="context-item-name">cavv</td>
|
153
|
+
<td class="context-item-value"> [RW] </td>
|
154
|
+
<td class="context-item-desc"></td>
|
155
|
+
</tr>
|
156
|
+
<tr class="top-aligned-row context-row">
|
157
|
+
<td class="context-item-name">cavv_algorithm</td>
|
158
|
+
<td class="context-item-value"> [RW] </td>
|
159
|
+
<td class="context-item-desc"></td>
|
160
|
+
</tr>
|
142
161
|
<tr class="top-aligned-row context-row">
|
143
162
|
<td class="context-item-name">cavv_response</td>
|
144
163
|
<td class="context-item-value"> [RW] </td>
|
145
164
|
<td class="context-item-desc"></td>
|
146
165
|
</tr>
|
166
|
+
<tr class="top-aligned-row context-row">
|
167
|
+
<td class="context-item-name">cc_expiry</td>
|
168
|
+
<td class="context-item-value"> [RW] </td>
|
169
|
+
<td class="context-item-desc"></td>
|
170
|
+
</tr>
|
171
|
+
<tr class="top-aligned-row context-row">
|
172
|
+
<td class="context-item-name">cc_number</td>
|
173
|
+
<td class="context-item-value"> [RW] </td>
|
174
|
+
<td class="context-item-desc"></td>
|
175
|
+
</tr>
|
176
|
+
<tr class="top-aligned-row context-row">
|
177
|
+
<td class="context-item-name">cc_verification_str1</td>
|
178
|
+
<td class="context-item-value"> [RW] </td>
|
179
|
+
<td class="context-item-desc"></td>
|
180
|
+
</tr>
|
181
|
+
<tr class="top-aligned-row context-row">
|
182
|
+
<td class="context-item-name">cc_verification_str2</td>
|
183
|
+
<td class="context-item-value"> [RW] </td>
|
184
|
+
<td class="context-item-desc"></td>
|
185
|
+
</tr>
|
186
|
+
<tr class="top-aligned-row context-row">
|
187
|
+
<td class="context-item-name">client_email</td>
|
188
|
+
<td class="context-item-value"> [RW] </td>
|
189
|
+
<td class="context-item-desc"></td>
|
190
|
+
</tr>
|
191
|
+
<tr class="top-aligned-row context-row">
|
192
|
+
<td class="context-item-name">client_ip</td>
|
193
|
+
<td class="context-item-value"> [RW] </td>
|
194
|
+
<td class="context-item-desc"></td>
|
195
|
+
</tr>
|
196
|
+
<tr class="top-aligned-row context-row">
|
197
|
+
<td class="context-item-name">ctr</td>
|
198
|
+
<td class="context-item-value"> [RW] </td>
|
199
|
+
<td class="context-item-desc"></td>
|
200
|
+
</tr>
|
201
|
+
<tr class="top-aligned-row context-row">
|
202
|
+
<td class="context-item-name">customer_ref</td>
|
203
|
+
<td class="context-item-value"> [RW] </td>
|
204
|
+
<td class="context-item-desc"></td>
|
205
|
+
</tr>
|
206
|
+
<tr class="top-aligned-row context-row">
|
207
|
+
<td class="context-item-name">cvd_presence_ind</td>
|
208
|
+
<td class="context-item-value"> [RW] </td>
|
209
|
+
<td class="context-item-desc"></td>
|
210
|
+
</tr>
|
147
211
|
<tr class="top-aligned-row context-row">
|
148
212
|
<td class="context-item-name">cvv2</td>
|
149
213
|
<td class="context-item-value"> [RW] </td>
|
150
214
|
<td class="context-item-desc"></td>
|
151
215
|
</tr>
|
216
|
+
<tr class="top-aligned-row context-row">
|
217
|
+
<td class="context-item-name">ecommerce_flag</td>
|
218
|
+
<td class="context-item-value"> [RW] </td>
|
219
|
+
<td class="context-item-desc"></td>
|
220
|
+
</tr>
|
152
221
|
<tr class="top-aligned-row context-row">
|
153
222
|
<td class="context-item-name">error_description</td>
|
154
223
|
<td class="context-item-value"> [RW] </td>
|
@@ -169,6 +238,16 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
169
238
|
<td class="context-item-value"> [RW] </td>
|
170
239
|
<td class="context-item-desc"></td>
|
171
240
|
</tr>
|
241
|
+
<tr class="top-aligned-row context-row">
|
242
|
+
<td class="context-item-name">gateway_id</td>
|
243
|
+
<td class="context-item-value"> [RW] </td>
|
244
|
+
<td class="context-item-desc"></td>
|
245
|
+
</tr>
|
246
|
+
<tr class="top-aligned-row context-row">
|
247
|
+
<td class="context-item-name">language</td>
|
248
|
+
<td class="context-item-value"> [RW] </td>
|
249
|
+
<td class="context-item-desc"></td>
|
250
|
+
</tr>
|
172
251
|
<tr class="top-aligned-row context-row">
|
173
252
|
<td class="context-item-name">logon_message</td>
|
174
253
|
<td class="context-item-value"> [RW] </td>
|
@@ -209,16 +288,81 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
209
288
|
<td class="context-item-value"> [RW] </td>
|
210
289
|
<td class="context-item-desc"></td>
|
211
290
|
</tr>
|
291
|
+
<tr class="top-aligned-row context-row">
|
292
|
+
<td class="context-item-name">pan</td>
|
293
|
+
<td class="context-item-value"> [RW] </td>
|
294
|
+
<td class="context-item-desc"></td>
|
295
|
+
</tr>
|
296
|
+
<tr class="top-aligned-row context-row">
|
297
|
+
<td class="context-item-name">password</td>
|
298
|
+
<td class="context-item-value"> [RW] </td>
|
299
|
+
<td class="context-item-desc"></td>
|
300
|
+
</tr>
|
301
|
+
<tr class="top-aligned-row context-row">
|
302
|
+
<td class="context-item-name">reference_3</td>
|
303
|
+
<td class="context-item-value"> [RW] </td>
|
304
|
+
<td class="context-item-desc"></td>
|
305
|
+
</tr>
|
306
|
+
<tr class="top-aligned-row context-row">
|
307
|
+
<td class="context-item-name">reference_no</td>
|
308
|
+
<td class="context-item-value"> [RW] </td>
|
309
|
+
<td class="context-item-desc"></td>
|
310
|
+
</tr>
|
212
311
|
<tr class="top-aligned-row context-row">
|
213
312
|
<td class="context-item-name">retrieval_ref_no</td>
|
214
313
|
<td class="context-item-value"> [RW] </td>
|
215
314
|
<td class="context-item-desc"></td>
|
216
315
|
</tr>
|
316
|
+
<tr class="top-aligned-row context-row">
|
317
|
+
<td class="context-item-name">secure_auth_required</td>
|
318
|
+
<td class="context-item-value"> [RW] </td>
|
319
|
+
<td class="context-item-desc"></td>
|
320
|
+
</tr>
|
321
|
+
<tr class="top-aligned-row context-row">
|
322
|
+
<td class="context-item-name">secure_auth_result</td>
|
323
|
+
<td class="context-item-value"> [RW] </td>
|
324
|
+
<td class="context-item-desc"></td>
|
325
|
+
</tr>
|
217
326
|
<tr class="top-aligned-row context-row">
|
218
327
|
<td class="context-item-name">sequence_no</td>
|
219
328
|
<td class="context-item-value"> [RW] </td>
|
220
329
|
<td class="context-item-desc"></td>
|
221
330
|
</tr>
|
331
|
+
<tr class="top-aligned-row context-row">
|
332
|
+
<td class="context-item-name">surcharge_amount</td>
|
333
|
+
<td class="context-item-value"> [RW] </td>
|
334
|
+
<td class="context-item-desc"></td>
|
335
|
+
</tr>
|
336
|
+
<tr class="top-aligned-row context-row">
|
337
|
+
<td class="context-item-name">tax1_amount</td>
|
338
|
+
<td class="context-item-value"> [RW] </td>
|
339
|
+
<td class="context-item-desc"></td>
|
340
|
+
</tr>
|
341
|
+
<tr class="top-aligned-row context-row">
|
342
|
+
<td class="context-item-name">tax1_number</td>
|
343
|
+
<td class="context-item-value"> [RW] </td>
|
344
|
+
<td class="context-item-desc"></td>
|
345
|
+
</tr>
|
346
|
+
<tr class="top-aligned-row context-row">
|
347
|
+
<td class="context-item-name">tax2_amount</td>
|
348
|
+
<td class="context-item-value"> [RW] </td>
|
349
|
+
<td class="context-item-desc"></td>
|
350
|
+
</tr>
|
351
|
+
<tr class="top-aligned-row context-row">
|
352
|
+
<td class="context-item-name">tax2_number</td>
|
353
|
+
<td class="context-item-value"> [RW] </td>
|
354
|
+
<td class="context-item-desc"></td>
|
355
|
+
</tr>
|
356
|
+
<tr class="top-aligned-row context-row">
|
357
|
+
<td class="context-item-name">track1</td>
|
358
|
+
<td class="context-item-value"> [RW] </td>
|
359
|
+
<td class="context-item-desc"></td>
|
360
|
+
</tr>
|
361
|
+
<tr class="top-aligned-row context-row">
|
362
|
+
<td class="context-item-name">track2</td>
|
363
|
+
<td class="context-item-value"> [RW] </td>
|
364
|
+
<td class="context-item-desc"></td>
|
365
|
+
</tr>
|
222
366
|
<tr class="top-aligned-row context-row">
|
223
367
|
<td class="context-item-name">transaction_approved</td>
|
224
368
|
<td class="context-item-value"> [RW] </td>
|
@@ -229,6 +373,31 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
229
373
|
<td class="context-item-value"> [RW] </td>
|
230
374
|
<td class="context-item-desc"></td>
|
231
375
|
</tr>
|
376
|
+
<tr class="top-aligned-row context-row">
|
377
|
+
<td class="context-item-name">transaction_tag</td>
|
378
|
+
<td class="context-item-value"> [RW] </td>
|
379
|
+
<td class="context-item-desc"></td>
|
380
|
+
</tr>
|
381
|
+
<tr class="top-aligned-row context-row">
|
382
|
+
<td class="context-item-name">transaction_type</td>
|
383
|
+
<td class="context-item-value"> [RW] </td>
|
384
|
+
<td class="context-item-desc"></td>
|
385
|
+
</tr>
|
386
|
+
<tr class="top-aligned-row context-row">
|
387
|
+
<td class="context-item-name">user_name</td>
|
388
|
+
<td class="context-item-value"> [RW] </td>
|
389
|
+
<td class="context-item-desc"></td>
|
390
|
+
</tr>
|
391
|
+
<tr class="top-aligned-row context-row">
|
392
|
+
<td class="context-item-name">xid</td>
|
393
|
+
<td class="context-item-value"> [RW] </td>
|
394
|
+
<td class="context-item-desc"></td>
|
395
|
+
</tr>
|
396
|
+
<tr class="top-aligned-row context-row">
|
397
|
+
<td class="context-item-name">zip_code</td>
|
398
|
+
<td class="context-item-value"> [RW] </td>
|
399
|
+
<td class="context-item-desc"></td>
|
400
|
+
</tr>
|
232
401
|
</table>
|
233
402
|
</div>
|
234
403
|
</div>
|
@@ -239,11 +408,11 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
239
408
|
<div id="methods">
|
240
409
|
<h3 class="section-bar">Public Instance methods</h3>
|
241
410
|
|
242
|
-
<div id="method-
|
243
|
-
<a name="
|
411
|
+
<div id="method-M000013" class="method-detail">
|
412
|
+
<a name="M000013"></a>
|
244
413
|
|
245
414
|
<div class="method-heading">
|
246
|
-
<a href="#
|
415
|
+
<a href="#M000013" class="method-signature">
|
247
416
|
<span class="method-name">approved?</span><span class="method-args">()</span>
|
248
417
|
</a>
|
249
418
|
</div>
|
@@ -253,13 +422,36 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
253
422
|
Indicates whether or not the transaction was approved
|
254
423
|
</p>
|
255
424
|
<p><a class="source-toggle" href="#"
|
256
|
-
onclick="toggleCode('
|
257
|
-
<div class="method-source-code" id="
|
425
|
+
onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
|
426
|
+
<div class="method-source-code" id="M000013-source">
|
427
|
+
<pre>
|
428
|
+
<span class="ruby-comment cmt"># File lib/ews/transaction/response.rb, line 17</span>
|
429
|
+
17: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">approved?</span>
|
430
|
+
18: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">transaction_approved</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
|
431
|
+
19: <span class="ruby-keyword kw">end</span>
|
432
|
+
</pre>
|
433
|
+
</div>
|
434
|
+
</div>
|
435
|
+
</div>
|
436
|
+
|
437
|
+
<div id="method-M000014" class="method-detail">
|
438
|
+
<a name="M000014"></a>
|
439
|
+
|
440
|
+
<div class="method-heading">
|
441
|
+
<a href="#M000014" class="method-signature">
|
442
|
+
<span class="method-name">transaction_error?</span><span class="method-args">()</span>
|
443
|
+
</a>
|
444
|
+
</div>
|
445
|
+
|
446
|
+
<div class="method-description">
|
447
|
+
<p><a class="source-toggle" href="#"
|
448
|
+
onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
|
449
|
+
<div class="method-source-code" id="M000014-source">
|
258
450
|
<pre>
|
259
|
-
<span class="ruby-comment cmt"># File lib/ews/transaction/response.rb, line
|
260
|
-
|
261
|
-
|
262
|
-
|
451
|
+
<span class="ruby-comment cmt"># File lib/ews/transaction/response.rb, line 21</span>
|
452
|
+
21: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">transaction_error?</span>
|
453
|
+
22: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">transaction_error</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
|
454
|
+
23: <span class="ruby-keyword kw">end</span>
|
263
455
|
</pre>
|
264
456
|
</div>
|
265
457
|
</div>
|