exact4r 0.9 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -1
- data/VERSION +1 -1
- data/doc/classes/EWS/Transaction/Request.html +81 -54
- data/doc/classes/EWS/Transaction/Response.html +14 -182
- data/doc/classes/EWS/Transaction/Transporter.html +251 -0
- data/doc/created.rid +1 -1
- data/doc/files/README.html +24 -37
- data/doc/files/lib/ews/transaction/mapping_rb.html +1 -1
- data/doc/files/lib/ews/transaction/request_rb.html +1 -8
- data/doc/files/lib/ews/transaction/response_rb.html +1 -1
- data/doc/files/lib/ews/{transporter_rb.html → transaction/transporter_rb.html} +3 -3
- data/doc/files/lib/exact4r_rb.html +2 -4
- data/doc/fr_class_index.html +1 -3
- data/doc/fr_file_index.html +1 -6
- data/doc/fr_method_index.html +7 -18
- data/lib/ews/transaction/request.rb +33 -4
- data/pkg/exact4r-0.5.gem +0 -0
- data/spec/avs_spec.rb +94 -0
- data/spec/request_spec.rb +1 -4
- data/spec/spec_helper.rb +2 -2
- metadata +10 -29
- data/after.log +0 -6
- data/before.log +0 -17
- data/doc/classes/EWS/Transaction/FakeResponse.html +0 -451
- data/doc/classes/EWS/Transaction/Validator.html +0 -168
- data/doc/classes/EWS/Transporter.html +0 -269
- data/doc/files/CHANGELOG.html +0 -142
- data/doc/files/LICENCE.html +0 -109
- data/doc/files/VERSION.html +0 -107
- data/doc/files/lib/ews/transaction/fake_response_rb.html +0 -101
- data/doc/files/lib/ews/transaction/validator_rb.html +0 -101
- data/qa.log +0 -14
data/CHANGELOG
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
== v0.9.1
|
2
|
+
Added Processor independent AVS (Address Verification) API.
|
3
|
+
|
1
4
|
== v0.9
|
2
5
|
Fixed incorrect decoding of boolean attributes from SOAP response
|
3
6
|
|
@@ -30,4 +33,4 @@
|
|
30
33
|
Fixed path to default E-xact certificates
|
31
34
|
|
32
35
|
== v0.5
|
33
|
-
Initial Release
|
36
|
+
Initial Release
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9
|
1
|
+
0.9.1
|
@@ -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 YYMM format.
|
109
109
|
</p>
|
110
110
|
<h1>Allowable transaction types</h1>
|
111
111
|
<pre>
|
@@ -142,9 +142,10 @@ expiry dates <b>must</b> be entered in MMYY 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="#
|
145
|
+
<a href="#M000006">is_find_transaction?</a>
|
146
|
+
<a href="#M000004">new</a>
|
147
|
+
<a href="#M000005">transaction_type=</a>
|
148
|
+
<a href="#M000007">valid?</a>
|
148
149
|
</div>
|
149
150
|
</div>
|
150
151
|
|
@@ -152,13 +153,6 @@ expiry dates <b>must</b> be entered in MMYY format.
|
|
152
153
|
|
153
154
|
|
154
155
|
<!-- 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>
|
162
156
|
|
163
157
|
<div id="section">
|
164
158
|
|
@@ -177,7 +171,7 @@ expiry dates <b>must</b> be entered in MMYY format.
|
|
177
171
|
<td class="context-item-desc"></td>
|
178
172
|
</tr>
|
179
173
|
<tr class="top-aligned-row context-row">
|
180
|
-
<td class="context-item-name">
|
174
|
+
<td class="context-item-name">auth_number</td>
|
181
175
|
<td class="context-item-value"> [RW] </td>
|
182
176
|
<td class="context-item-desc"></td>
|
183
177
|
</tr>
|
@@ -244,10 +238,7 @@ expiry dates <b>must</b> be entered in MMYY format.
|
|
244
238
|
<tr class="top-aligned-row context-row">
|
245
239
|
<td class="context-item-name">errors</td>
|
246
240
|
<td class="context-item-value"> [RW] </td>
|
247
|
-
<td class="context-item-desc">
|
248
|
-
yeah, it‘s ugly, but otherwise RDoc won‘t pick them up
|
249
|
-
|
250
|
-
</td>
|
241
|
+
<td class="context-item-desc"></td>
|
251
242
|
</tr>
|
252
243
|
<tr class="top-aligned-row context-row">
|
253
244
|
<td class="context-item-name">gateway_id</td>
|
@@ -335,12 +326,12 @@ yeah, it‘s ugly, but otherwise RDoc won‘t pick them up
|
|
335
326
|
<td class="context-item-desc"></td>
|
336
327
|
</tr>
|
337
328
|
<tr class="top-aligned-row context-row">
|
338
|
-
<td class="context-item-name">
|
329
|
+
<td class="context-item-name">user_name</td>
|
339
330
|
<td class="context-item-value"> [RW] </td>
|
340
331
|
<td class="context-item-desc"></td>
|
341
332
|
</tr>
|
342
333
|
<tr class="top-aligned-row context-row">
|
343
|
-
<td class="context-item-name">
|
334
|
+
<td class="context-item-name">xid</td>
|
344
335
|
<td class="context-item-value"> [RW] </td>
|
345
336
|
<td class="context-item-desc"></td>
|
346
337
|
</tr>
|
@@ -354,11 +345,11 @@ yeah, it‘s ugly, but otherwise RDoc won‘t pick them up
|
|
354
345
|
<div id="methods">
|
355
346
|
<h3 class="section-bar">Public Class methods</h3>
|
356
347
|
|
357
|
-
<div id="method-
|
358
|
-
<a name="
|
348
|
+
<div id="method-M000004" class="method-detail">
|
349
|
+
<a name="M000004"></a>
|
359
350
|
|
360
351
|
<div class="method-heading">
|
361
|
-
<a href="#
|
352
|
+
<a href="#M000004" class="method-signature">
|
362
353
|
<span class="method-name">new</span><span class="method-args">(hash = {})</span>
|
363
354
|
</a>
|
364
355
|
</div>
|
@@ -368,14 +359,14 @@ yeah, it‘s ugly, but otherwise RDoc won‘t pick them up
|
|
368
359
|
Initialize a <a href="Request.html">Request</a> with a hash of values
|
369
360
|
</p>
|
370
361
|
<p><a class="source-toggle" href="#"
|
371
|
-
onclick="toggleCode('
|
372
|
-
<div class="method-source-code" id="
|
362
|
+
onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
|
363
|
+
<div class="method-source-code" id="M000004-source">
|
373
364
|
<pre>
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
365
|
+
<span class="ruby-comment cmt"># File lib/ews/transaction/request.rb, line 54</span>
|
366
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">hash</span> = {})
|
367
|
+
<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>}
|
368
|
+
<span class="ruby-ivar">@errors</span> = {}
|
369
|
+
<span class="ruby-keyword kw">end</span>
|
379
370
|
</pre>
|
380
371
|
</div>
|
381
372
|
</div>
|
@@ -383,11 +374,11 @@ Initialize a <a href="Request.html">Request</a> with a hash of values
|
|
383
374
|
|
384
375
|
<h3 class="section-bar">Public Instance methods</h3>
|
385
376
|
|
386
|
-
<div id="method-
|
387
|
-
<a name="
|
377
|
+
<div id="method-M000006" class="method-detail">
|
378
|
+
<a name="M000006"></a>
|
388
379
|
|
389
380
|
<div class="method-heading">
|
390
|
-
<a href="#
|
381
|
+
<a href="#M000006" class="method-signature">
|
391
382
|
<span class="method-name">is_find_transaction?</span><span class="method-args">()</span>
|
392
383
|
</a>
|
393
384
|
</div>
|
@@ -398,23 +389,23 @@ Indicates whether or not this transaction is a
|
|
398
389
|
<tt>:transaction_details</tt> transaction
|
399
390
|
</p>
|
400
391
|
<p><a class="source-toggle" href="#"
|
401
|
-
onclick="toggleCode('
|
402
|
-
<div class="method-source-code" id="
|
392
|
+
onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
|
393
|
+
<div class="method-source-code" id="M000006-source">
|
403
394
|
<pre>
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
395
|
+
<span class="ruby-comment cmt"># File lib/ews/transaction/request.rb, line 71</span>
|
396
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_find_transaction?</span>
|
397
|
+
<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>
|
398
|
+
<span class="ruby-keyword kw">end</span>
|
408
399
|
</pre>
|
409
400
|
</div>
|
410
401
|
</div>
|
411
402
|
</div>
|
412
403
|
|
413
|
-
<div id="method-
|
414
|
-
<a name="
|
404
|
+
<div id="method-M000005" class="method-detail">
|
405
|
+
<a name="M000005"></a>
|
415
406
|
|
416
407
|
<div class="method-heading">
|
417
|
-
<a href="#
|
408
|
+
<a href="#M000005" class="method-signature">
|
418
409
|
<span class="method-name">transaction_type=</span><span class="method-args">(type_sym)</span>
|
419
410
|
</a>
|
420
411
|
</div>
|
@@ -426,21 +417,57 @@ relevant code, e.g: for a purchase you can use either
|
|
426
417
|
<tt>:purchase</tt> or <tt>‘00‘</tt>
|
427
418
|
</p>
|
428
419
|
<p><a class="source-toggle" href="#"
|
429
|
-
onclick="toggleCode('
|
430
|
-
<div class="method-source-code" id="
|
420
|
+
onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
|
421
|
+
<div class="method-source-code" id="M000005-source">
|
431
422
|
<pre>
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
423
|
+
<span class="ruby-comment cmt"># File lib/ews/transaction/request.rb, line 61</span>
|
424
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">transaction_type=</span>(<span class="ruby-identifier">type_sym</span>)
|
425
|
+
<span class="ruby-comment cmt"># assume we're given a symbol, so look up the code</span>
|
426
|
+
<span class="ruby-identifier">value</span> = <span class="ruby-ivar">@@transaction_codes</span>[<span class="ruby-identifier">type_sym</span>]
|
427
|
+
<span class="ruby-comment cmt"># if nothing found, then maybe we were given an actual code?</span>
|
428
|
+
<span class="ruby-identifier">value</span> = <span class="ruby-identifier">type_sym</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">and</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>
|
429
|
+
|
430
|
+
<span class="ruby-ivar">@transaction_type</span> = <span class="ruby-identifier">value</span>
|
431
|
+
<span class="ruby-keyword kw">end</span>
|
432
|
+
</pre>
|
433
|
+
</div>
|
434
|
+
</div>
|
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>
|
444
471
|
</pre>
|
445
472
|
</div>
|
446
473
|
</div>
|
@@ -65,7 +65,9 @@
|
|
65
65
|
<tr class="top-aligned-row">
|
66
66
|
<td><strong>Parent:</strong></td>
|
67
67
|
<td>
|
68
|
-
|
68
|
+
<a href="Request.html">
|
69
|
+
EWS::Transaction::Request
|
70
|
+
</a>
|
69
71
|
</td>
|
70
72
|
</tr>
|
71
73
|
</table>
|
@@ -92,7 +94,7 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
92
94
|
<h3 class="section-bar">Methods</h3>
|
93
95
|
|
94
96
|
<div class="name-list">
|
95
|
-
<a href="#
|
97
|
+
<a href="#M000003">approved?</a>
|
96
98
|
</div>
|
97
99
|
</div>
|
98
100
|
|
@@ -113,12 +115,7 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
113
115
|
<div class="name-list">
|
114
116
|
<table>
|
115
117
|
<tr class="top-aligned-row context-row">
|
116
|
-
<td class="context-item-name">
|
117
|
-
<td class="context-item-value"> [RW] </td>
|
118
|
-
<td class="context-item-desc"></td>
|
119
|
-
</tr>
|
120
|
-
<tr class="top-aligned-row context-row">
|
121
|
-
<td class="context-item-name">authorization_num</td>
|
118
|
+
<td class="context-item-name">CTR</td>
|
122
119
|
<td class="context-item-value"> [RW] </td>
|
123
120
|
<td class="context-item-desc"></td>
|
124
121
|
</tr>
|
@@ -142,81 +139,16 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
142
139
|
<td class="context-item-value"> [RW] </td>
|
143
140
|
<td class="context-item-desc"></td>
|
144
141
|
</tr>
|
145
|
-
<tr class="top-aligned-row context-row">
|
146
|
-
<td class="context-item-name">cardholder_name</td>
|
147
|
-
<td class="context-item-value"> [RW] </td>
|
148
|
-
<td class="context-item-desc"></td>
|
149
|
-
</tr>
|
150
|
-
<tr class="top-aligned-row context-row">
|
151
|
-
<td class="context-item-name">cavv</td>
|
152
|
-
<td class="context-item-value"> [RW] </td>
|
153
|
-
<td class="context-item-desc"></td>
|
154
|
-
</tr>
|
155
|
-
<tr class="top-aligned-row context-row">
|
156
|
-
<td class="context-item-name">cavv_algorithm</td>
|
157
|
-
<td class="context-item-value"> [RW] </td>
|
158
|
-
<td class="context-item-desc"></td>
|
159
|
-
</tr>
|
160
142
|
<tr class="top-aligned-row context-row">
|
161
143
|
<td class="context-item-name">cavv_response</td>
|
162
144
|
<td class="context-item-value"> [RW] </td>
|
163
145
|
<td class="context-item-desc"></td>
|
164
146
|
</tr>
|
165
|
-
<tr class="top-aligned-row context-row">
|
166
|
-
<td class="context-item-name">cc_expiry</td>
|
167
|
-
<td class="context-item-value"> [RW] </td>
|
168
|
-
<td class="context-item-desc"></td>
|
169
|
-
</tr>
|
170
|
-
<tr class="top-aligned-row context-row">
|
171
|
-
<td class="context-item-name">cc_number</td>
|
172
|
-
<td class="context-item-value"> [RW] </td>
|
173
|
-
<td class="context-item-desc"></td>
|
174
|
-
</tr>
|
175
|
-
<tr class="top-aligned-row context-row">
|
176
|
-
<td class="context-item-name">cc_verification_str1</td>
|
177
|
-
<td class="context-item-value"> [RW] </td>
|
178
|
-
<td class="context-item-desc"></td>
|
179
|
-
</tr>
|
180
|
-
<tr class="top-aligned-row context-row">
|
181
|
-
<td class="context-item-name">cc_verification_str2</td>
|
182
|
-
<td class="context-item-value"> [RW] </td>
|
183
|
-
<td class="context-item-desc"></td>
|
184
|
-
</tr>
|
185
|
-
<tr class="top-aligned-row context-row">
|
186
|
-
<td class="context-item-name">client_email</td>
|
187
|
-
<td class="context-item-value"> [RW] </td>
|
188
|
-
<td class="context-item-desc"></td>
|
189
|
-
</tr>
|
190
|
-
<tr class="top-aligned-row context-row">
|
191
|
-
<td class="context-item-name">client_ip</td>
|
192
|
-
<td class="context-item-value"> [RW] </td>
|
193
|
-
<td class="context-item-desc"></td>
|
194
|
-
</tr>
|
195
|
-
<tr class="top-aligned-row context-row">
|
196
|
-
<td class="context-item-name">ctr</td>
|
197
|
-
<td class="context-item-value"> [RW] </td>
|
198
|
-
<td class="context-item-desc"></td>
|
199
|
-
</tr>
|
200
|
-
<tr class="top-aligned-row context-row">
|
201
|
-
<td class="context-item-name">customer_ref</td>
|
202
|
-
<td class="context-item-value"> [RW] </td>
|
203
|
-
<td class="context-item-desc"></td>
|
204
|
-
</tr>
|
205
|
-
<tr class="top-aligned-row context-row">
|
206
|
-
<td class="context-item-name">cvd_presence_ind</td>
|
207
|
-
<td class="context-item-value"> [RW] </td>
|
208
|
-
<td class="context-item-desc"></td>
|
209
|
-
</tr>
|
210
147
|
<tr class="top-aligned-row context-row">
|
211
148
|
<td class="context-item-name">cvv2</td>
|
212
149
|
<td class="context-item-value"> [RW] </td>
|
213
150
|
<td class="context-item-desc"></td>
|
214
151
|
</tr>
|
215
|
-
<tr class="top-aligned-row context-row">
|
216
|
-
<td class="context-item-name">ecommerce_flag</td>
|
217
|
-
<td class="context-item-value"> [RW] </td>
|
218
|
-
<td class="context-item-desc"></td>
|
219
|
-
</tr>
|
220
152
|
<tr class="top-aligned-row context-row">
|
221
153
|
<td class="context-item-name">error_description</td>
|
222
154
|
<td class="context-item-value"> [RW] </td>
|
@@ -237,16 +169,6 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
237
169
|
<td class="context-item-value"> [RW] </td>
|
238
170
|
<td class="context-item-desc"></td>
|
239
171
|
</tr>
|
240
|
-
<tr class="top-aligned-row context-row">
|
241
|
-
<td class="context-item-name">gateway_id</td>
|
242
|
-
<td class="context-item-value"> [RW] </td>
|
243
|
-
<td class="context-item-desc"></td>
|
244
|
-
</tr>
|
245
|
-
<tr class="top-aligned-row context-row">
|
246
|
-
<td class="context-item-name">language</td>
|
247
|
-
<td class="context-item-value"> [RW] </td>
|
248
|
-
<td class="context-item-desc"></td>
|
249
|
-
</tr>
|
250
172
|
<tr class="top-aligned-row context-row">
|
251
173
|
<td class="context-item-name">logon_message</td>
|
252
174
|
<td class="context-item-value"> [RW] </td>
|
@@ -287,81 +209,16 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
287
209
|
<td class="context-item-value"> [RW] </td>
|
288
210
|
<td class="context-item-desc"></td>
|
289
211
|
</tr>
|
290
|
-
<tr class="top-aligned-row context-row">
|
291
|
-
<td class="context-item-name">pan</td>
|
292
|
-
<td class="context-item-value"> [RW] </td>
|
293
|
-
<td class="context-item-desc"></td>
|
294
|
-
</tr>
|
295
|
-
<tr class="top-aligned-row context-row">
|
296
|
-
<td class="context-item-name">password</td>
|
297
|
-
<td class="context-item-value"> [RW] </td>
|
298
|
-
<td class="context-item-desc"></td>
|
299
|
-
</tr>
|
300
|
-
<tr class="top-aligned-row context-row">
|
301
|
-
<td class="context-item-name">reference_3</td>
|
302
|
-
<td class="context-item-value"> [RW] </td>
|
303
|
-
<td class="context-item-desc"></td>
|
304
|
-
</tr>
|
305
|
-
<tr class="top-aligned-row context-row">
|
306
|
-
<td class="context-item-name">reference_no</td>
|
307
|
-
<td class="context-item-value"> [RW] </td>
|
308
|
-
<td class="context-item-desc"></td>
|
309
|
-
</tr>
|
310
212
|
<tr class="top-aligned-row context-row">
|
311
213
|
<td class="context-item-name">retrieval_ref_no</td>
|
312
214
|
<td class="context-item-value"> [RW] </td>
|
313
215
|
<td class="context-item-desc"></td>
|
314
216
|
</tr>
|
315
|
-
<tr class="top-aligned-row context-row">
|
316
|
-
<td class="context-item-name">secure_auth_required</td>
|
317
|
-
<td class="context-item-value"> [RW] </td>
|
318
|
-
<td class="context-item-desc"></td>
|
319
|
-
</tr>
|
320
|
-
<tr class="top-aligned-row context-row">
|
321
|
-
<td class="context-item-name">secure_auth_result</td>
|
322
|
-
<td class="context-item-value"> [RW] </td>
|
323
|
-
<td class="context-item-desc"></td>
|
324
|
-
</tr>
|
325
217
|
<tr class="top-aligned-row context-row">
|
326
218
|
<td class="context-item-name">sequence_no</td>
|
327
219
|
<td class="context-item-value"> [RW] </td>
|
328
220
|
<td class="context-item-desc"></td>
|
329
221
|
</tr>
|
330
|
-
<tr class="top-aligned-row context-row">
|
331
|
-
<td class="context-item-name">surcharge_amount</td>
|
332
|
-
<td class="context-item-value"> [RW] </td>
|
333
|
-
<td class="context-item-desc"></td>
|
334
|
-
</tr>
|
335
|
-
<tr class="top-aligned-row context-row">
|
336
|
-
<td class="context-item-name">tax1_amount</td>
|
337
|
-
<td class="context-item-value"> [RW] </td>
|
338
|
-
<td class="context-item-desc"></td>
|
339
|
-
</tr>
|
340
|
-
<tr class="top-aligned-row context-row">
|
341
|
-
<td class="context-item-name">tax1_number</td>
|
342
|
-
<td class="context-item-value"> [RW] </td>
|
343
|
-
<td class="context-item-desc"></td>
|
344
|
-
</tr>
|
345
|
-
<tr class="top-aligned-row context-row">
|
346
|
-
<td class="context-item-name">tax2_amount</td>
|
347
|
-
<td class="context-item-value"> [RW] </td>
|
348
|
-
<td class="context-item-desc"></td>
|
349
|
-
</tr>
|
350
|
-
<tr class="top-aligned-row context-row">
|
351
|
-
<td class="context-item-name">tax2_number</td>
|
352
|
-
<td class="context-item-value"> [RW] </td>
|
353
|
-
<td class="context-item-desc"></td>
|
354
|
-
</tr>
|
355
|
-
<tr class="top-aligned-row context-row">
|
356
|
-
<td class="context-item-name">track1</td>
|
357
|
-
<td class="context-item-value"> [RW] </td>
|
358
|
-
<td class="context-item-desc"></td>
|
359
|
-
</tr>
|
360
|
-
<tr class="top-aligned-row context-row">
|
361
|
-
<td class="context-item-name">track2</td>
|
362
|
-
<td class="context-item-value"> [RW] </td>
|
363
|
-
<td class="context-item-desc"></td>
|
364
|
-
</tr>
|
365
222
|
<tr class="top-aligned-row context-row">
|
366
223
|
<td class="context-item-name">transaction_approved</td>
|
367
224
|
<td class="context-item-value"> [RW] </td>
|
@@ -372,31 +229,6 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
372
229
|
<td class="context-item-value"> [RW] </td>
|
373
230
|
<td class="context-item-desc"></td>
|
374
231
|
</tr>
|
375
|
-
<tr class="top-aligned-row context-row">
|
376
|
-
<td class="context-item-name">transaction_tag</td>
|
377
|
-
<td class="context-item-value"> [RW] </td>
|
378
|
-
<td class="context-item-desc"></td>
|
379
|
-
</tr>
|
380
|
-
<tr class="top-aligned-row context-row">
|
381
|
-
<td class="context-item-name">transaction_type</td>
|
382
|
-
<td class="context-item-value"> [RW] </td>
|
383
|
-
<td class="context-item-desc"></td>
|
384
|
-
</tr>
|
385
|
-
<tr class="top-aligned-row context-row">
|
386
|
-
<td class="context-item-name">user_name</td>
|
387
|
-
<td class="context-item-value"> [RW] </td>
|
388
|
-
<td class="context-item-desc"></td>
|
389
|
-
</tr>
|
390
|
-
<tr class="top-aligned-row context-row">
|
391
|
-
<td class="context-item-name">xid</td>
|
392
|
-
<td class="context-item-value"> [RW] </td>
|
393
|
-
<td class="context-item-desc"></td>
|
394
|
-
</tr>
|
395
|
-
<tr class="top-aligned-row context-row">
|
396
|
-
<td class="context-item-name">zip_code</td>
|
397
|
-
<td class="context-item-value"> [RW] </td>
|
398
|
-
<td class="context-item-desc"></td>
|
399
|
-
</tr>
|
400
232
|
</table>
|
401
233
|
</div>
|
402
234
|
</div>
|
@@ -407,11 +239,11 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
407
239
|
<div id="methods">
|
408
240
|
<h3 class="section-bar">Public Instance methods</h3>
|
409
241
|
|
410
|
-
<div id="method-
|
411
|
-
<a name="
|
242
|
+
<div id="method-M000003" class="method-detail">
|
243
|
+
<a name="M000003"></a>
|
412
244
|
|
413
245
|
<div class="method-heading">
|
414
|
-
<a href="#
|
246
|
+
<a href="#M000003" class="method-signature">
|
415
247
|
<span class="method-name">approved?</span><span class="method-args">()</span>
|
416
248
|
</a>
|
417
249
|
</div>
|
@@ -421,13 +253,13 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
421
253
|
Indicates whether or not the transaction was approved
|
422
254
|
</p>
|
423
255
|
<p><a class="source-toggle" href="#"
|
424
|
-
onclick="toggleCode('
|
425
|
-
<div class="method-source-code" id="
|
256
|
+
onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
|
257
|
+
<div class="method-source-code" id="M000003-source">
|
426
258
|
<pre>
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
259
|
+
<span class="ruby-comment cmt"># File lib/ews/transaction/response.rb, line 13</span>
|
260
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">approved?</span>
|
261
|
+
<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>
|
262
|
+
<span class="ruby-keyword kw">end</span>
|
431
263
|
</pre>
|
432
264
|
</div>
|
433
265
|
</div>
|