payments-pl 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardoc/checksums +6 -0
- data/.yardoc/objects/Payments.dat +0 -0
- data/.yardoc/objects/Payments/ENCODINGS.dat +0 -0
- data/.yardoc/objects/Payments/ERRORS.dat +0 -0
- data/.yardoc/objects/Payments/POS_TYPES.dat +0 -0
- data/.yardoc/objects/Payments/Pos.dat +0 -0
- data/.yardoc/objects/Payments/Pos/cancel_i.dat +0 -0
- data/.yardoc/objects/Payments/Pos/confirm_i.dat +0 -0
- data/.yardoc/objects/Payments/Pos/encoding_i.dat +0 -0
- data/.yardoc/objects/Payments/Pos/encrypt_i.dat +0 -0
- data/.yardoc/objects/Payments/Pos/get_i.dat +0 -0
- data/.yardoc/objects/Payments/Pos/initialize_i.dat +0 -0
- data/.yardoc/objects/Payments/Pos/key1_i.dat +0 -0
- data/.yardoc/objects/Payments/Pos/key2_i.dat +0 -0
- data/.yardoc/objects/Payments/Pos/new_transaction_i.dat +0 -0
- data/.yardoc/objects/Payments/Pos/new_transaction_url_i.dat +0 -0
- data/.yardoc/objects/Payments/Pos/parse_response_body_i.dat +0 -0
- data/.yardoc/objects/Payments/Pos/path_for_i.dat +0 -0
- data/.yardoc/objects/Payments/Pos/pos_auth_key_i.dat +0 -0
- data/.yardoc/objects/Payments/Pos/pos_id_i.dat +0 -0
- data/.yardoc/objects/Payments/Pos/prepare_data_i.dat +0 -0
- data/.yardoc/objects/Payments/Pos/send_request_i.dat +0 -0
- data/.yardoc/objects/Payments/Pos/type_i.dat +0 -0
- data/.yardoc/objects/Payments/Pos/verify_i.dat +0 -0
- data/.yardoc/objects/Payments/PosInvalid.dat +0 -0
- data/.yardoc/objects/Payments/PosNotFound.dat +0 -0
- data/.yardoc/objects/Payments/RequestFailed.dat +0 -0
- data/.yardoc/objects/Payments/SignatureInvalid.dat +0 -0
- data/.yardoc/objects/Payments/Transaction.dat +0 -0
- data/.yardoc/objects/Payments/Transaction/column_c.dat +0 -0
- data/.yardoc/objects/Payments/Transaction/columns_c.dat +0 -0
- data/.yardoc/objects/Payments/Transaction/new_url_i.dat +0 -0
- data/.yardoc/objects/Payments/Transaction/pos_i.dat +0 -0
- data/.yardoc/objects/Payments/ViewHelpers.dat +0 -0
- data/.yardoc/objects/Payments/ViewHelpers/transaction_hidden_fields_i.dat +0 -0
- data/.yardoc/objects/Payments/_40_40pos_table.dat +0 -0
- data/.yardoc/objects/Payments/_5B_5D_c.dat +0 -0
- data/.yardoc/objects/Payments/error_text_c.dat +0 -0
- data/.yardoc/objects/Payments/get_pos_by_id_c.dat +0 -0
- data/.yardoc/objects/Payments/get_pos_by_name_c.dat +0 -0
- data/.yardoc/objects/Payments/init_c.dat +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/.yardoc/proxy_types +0 -0
- data/VERSION +1 -1
- data/doc/Payments.html +288 -46
- data/doc/Payments/Pos.html +177 -426
- data/doc/Payments/PosInvalid.html +100 -0
- data/doc/Payments/PosNotFound.html +1 -1
- data/doc/Payments/RequestFailed.html +1 -1
- data/doc/Payments/SignatureInvalid.html +1 -1
- data/doc/Payments/Transaction.html +81 -15
- data/doc/Payments/ViewHelpers.html +1 -1
- data/doc/_index.html +10 -3
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +2 -2
- data/doc/frames.html +1 -1
- data/doc/index.html +2 -2
- data/doc/method_list.html +13 -61
- data/doc/top-level-namespace.html +1 -1
- data/lib/payments/pos.rb +32 -17
- data/lib/payments/transaction.rb +4 -0
- data/lib/payments_pl.rb +30 -5
- data/payments-pl.gemspec +46 -2
- metadata +48 -4
data/doc/Payments/Pos.html
CHANGED
@@ -294,27 +294,6 @@ Returns the value of attribute type.
|
|
294
294
|
|
295
295
|
|
296
296
|
|
297
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
298
|
-
|
299
|
-
</li>
|
300
|
-
|
301
|
-
|
302
|
-
<li class="public ">
|
303
|
-
<span class="summary_signature">
|
304
|
-
|
305
|
-
<a href="#encrypt-instance_method" title="#encrypt (instance method)">- (Object) <strong>encrypt</strong>(*params) </a>
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
</span>
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
297
|
<span class="summary_desc"><div class='inline'></div></span>
|
319
298
|
|
320
299
|
</li>
|
@@ -344,7 +323,7 @@ Returns the value of attribute type.
|
|
344
323
|
<li class="public ">
|
345
324
|
<span class="summary_signature">
|
346
325
|
|
347
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (
|
326
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Object) <strong>initialize</strong>(options) </a>
|
348
327
|
|
349
328
|
|
350
329
|
|
@@ -360,7 +339,7 @@ Returns the value of attribute type.
|
|
360
339
|
|
361
340
|
|
362
341
|
<span class="summary_desc"><div class='inline'><p>
|
363
|
-
|
342
|
+
Creates new Pos instance.
|
364
343
|
</p>
|
365
344
|
</div></span>
|
366
345
|
|
@@ -383,112 +362,10 @@ A new instance of Pos.
|
|
383
362
|
|
384
363
|
|
385
364
|
|
386
|
-
<span class="summary_desc"><div class='inline'
|
387
|
-
|
388
|
-
</
|
389
|
-
|
390
|
-
|
391
|
-
<li class="public ">
|
392
|
-
<span class="summary_signature">
|
393
|
-
|
394
|
-
<a href="#new_transaction_url-instance_method" title="#new_transaction_url (instance method)">- (Object) <strong>new_transaction_url</strong> </a>
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
</span>
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
408
|
-
|
409
|
-
</li>
|
410
|
-
|
411
|
-
|
412
|
-
<li class="public ">
|
413
|
-
<span class="summary_signature">
|
414
|
-
|
415
|
-
<a href="#parse_response_body-instance_method" title="#parse_response_body (instance method)">- (Object) <strong>parse_response_body</strong>(body) </a>
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
</span>
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
429
|
-
|
430
|
-
</li>
|
431
|
-
|
432
|
-
|
433
|
-
<li class="public ">
|
434
|
-
<span class="summary_signature">
|
435
|
-
|
436
|
-
<a href="#path_for-instance_method" title="#path_for (instance method)">- (Object) <strong>path_for</strong>(method) </a>
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
</span>
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
450
|
-
|
451
|
-
</li>
|
452
|
-
|
453
|
-
|
454
|
-
<li class="public ">
|
455
|
-
<span class="summary_signature">
|
456
|
-
|
457
|
-
<a href="#prepare_data-instance_method" title="#prepare_data (instance method)">- (Object) <strong>prepare_data</strong>(session_id) </a>
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
</span>
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
471
|
-
|
472
|
-
</li>
|
473
|
-
|
474
|
-
|
475
|
-
<li class="public ">
|
476
|
-
<span class="summary_signature">
|
477
|
-
|
478
|
-
<a href="#send_request-instance_method" title="#send_request (instance method)">- (Object) <strong>send_request</strong>(method, session_id) </a>
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
</span>
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
365
|
+
<span class="summary_desc"><div class='inline'><p>
|
366
|
+
Creates new transaction.
|
367
|
+
</p>
|
368
|
+
</div></span>
|
492
369
|
|
493
370
|
</li>
|
494
371
|
|
@@ -496,7 +373,7 @@ A new instance of Pos.
|
|
496
373
|
<li class="public ">
|
497
374
|
<span class="summary_signature">
|
498
375
|
|
499
|
-
<a href="#
|
376
|
+
<a href="#new_transaction_url-instance_method" title="#new_transaction_url (instance method)">- (String) <strong>new_transaction_url</strong> </a>
|
500
377
|
|
501
378
|
|
502
379
|
|
@@ -509,7 +386,10 @@ A new instance of Pos.
|
|
509
386
|
|
510
387
|
|
511
388
|
|
512
|
-
<span class="summary_desc"><div class='inline'
|
389
|
+
<span class="summary_desc"><div class='inline'><p>
|
390
|
+
Returns new transaction url, depending on Pos type.
|
391
|
+
</p>
|
392
|
+
</div></span>
|
513
393
|
|
514
394
|
</li>
|
515
395
|
|
@@ -523,40 +403,81 @@ A new instance of Pos.
|
|
523
403
|
<div class="method_details first">
|
524
404
|
<p class="signature first" id="initialize-instance_method">
|
525
405
|
|
526
|
-
- (<tt
|
406
|
+
- (<tt>Object</tt>) <strong>initialize</strong>(options)
|
527
407
|
|
528
408
|
|
529
409
|
|
530
410
|
</p><div class="docstring">
|
531
411
|
<div class="discussion">
|
532
412
|
<p>
|
533
|
-
|
413
|
+
Creates new Pos instance
|
534
414
|
</p>
|
535
415
|
|
536
416
|
|
537
417
|
</div>
|
538
418
|
</div>
|
539
419
|
<div class="tags">
|
420
|
+
<h3>Parameters:</h3>
|
421
|
+
<ul class="param">
|
422
|
+
|
423
|
+
<li>
|
424
|
+
|
425
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
426
|
+
|
427
|
+
|
428
|
+
<span class='name'>options</span>
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
—
|
433
|
+
<div class='inline'><p>
|
434
|
+
options hash
|
435
|
+
</p>
|
436
|
+
</div>
|
437
|
+
|
438
|
+
</li>
|
540
439
|
|
440
|
+
</ul>
|
441
|
+
<h3>Raises:</h3>
|
442
|
+
<ul class="raise">
|
443
|
+
|
444
|
+
<li>
|
445
|
+
|
446
|
+
<span class='type'>(<tt><a href="PosInvalid.html" title="Payments::PosInvalid (class)">PosInvalid</a></tt>)</span>
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
</li>
|
452
|
+
|
453
|
+
</ul>
|
454
|
+
|
541
455
|
</div><table class="source_code">
|
542
456
|
<tr>
|
543
457
|
<td>
|
544
458
|
<pre class="lines">
|
545
459
|
|
546
460
|
|
547
|
-
7
|
548
|
-
8
|
549
|
-
9
|
550
461
|
10
|
551
462
|
11
|
552
463
|
12
|
553
464
|
13
|
554
465
|
14
|
555
466
|
15
|
556
|
-
16
|
467
|
+
16
|
468
|
+
17
|
469
|
+
18
|
470
|
+
19
|
471
|
+
20
|
472
|
+
21
|
473
|
+
22
|
474
|
+
23
|
475
|
+
24
|
476
|
+
25
|
477
|
+
26</pre>
|
557
478
|
</td>
|
558
479
|
<td>
|
559
|
-
<pre class="code"><span class="info file"># File 'lib/payments/pos.rb', line
|
480
|
+
<pre class="code"><span class="info file"># File 'lib/payments/pos.rb', line 10</span>
|
560
481
|
|
561
482
|
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='rparen token'>)</span>
|
562
483
|
<span class='options identifier id'>options</span><span class='dot token'>.</span><span class='symbolize_keys! fid id'>symbolize_keys!</span>
|
@@ -565,8 +486,15 @@ A new instance of Pos
|
|
565
486
|
<span class='@pos_auth_key ivar id'>@pos_auth_key</span> <span class='assign token'>=</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:pos_auth_key</span><span class='rbrack token'>]</span>
|
566
487
|
<span class='@key1 ivar id'>@key1</span> <span class='assign token'>=</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:key1</span><span class='rbrack token'>]</span>
|
567
488
|
<span class='@key2 ivar id'>@key2</span> <span class='assign token'>=</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:key2</span><span class='rbrack token'>]</span>
|
568
|
-
<span class='@type ivar id'>@type</span> <span class='assign token'>=</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:type</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='string val'>'
|
489
|
+
<span class='@type ivar id'>@type</span> <span class='assign token'>=</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:type</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='string val'>'default'</span>
|
569
490
|
<span class='@encoding ivar id'>@encoding</span> <span class='assign token'>=</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:encoding</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='string val'>'UTF'</span>
|
491
|
+
|
492
|
+
<span class='raise identifier id'>raise</span> <span class='PosInvalid constant id'>PosInvalid</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='string val'>'Missing pos_id parameter'</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='@pos_id ivar id'>@pos_id</span><span class='dot token'>.</span><span class='blank? fid id'>blank?</span>
|
493
|
+
<span class='raise identifier id'>raise</span> <span class='PosInvalid constant id'>PosInvalid</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='string val'>'Missing pos_auth_key parameter'</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='@pos_auth_key ivar id'>@pos_auth_key</span><span class='dot token'>.</span><span class='blank? fid id'>blank?</span>
|
494
|
+
<span class='raise identifier id'>raise</span> <span class='PosInvalid constant id'>PosInvalid</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='string val'>'Missing key1 parameter'</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='@key1 ivar id'>@key1</span><span class='dot token'>.</span><span class='blank? fid id'>blank?</span>
|
495
|
+
<span class='raise identifier id'>raise</span> <span class='PosInvalid constant id'>PosInvalid</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='string val'>'Missing key2 parameter'</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='@key2 ivar id'>@key2</span><span class='dot token'>.</span><span class='blank? fid id'>blank?</span>
|
496
|
+
<span class='raise identifier id'>raise</span> <span class='PosInvalid constant id'>PosInvalid</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='dstring node'>"Invalid type parameter, expected one of these: #{Payments::POS_TYPES.join(', ')}"</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='Payments constant id'>Payments</span><span class='colon2 op'>::</span><span class='POS_TYPES constant id'>POS_TYPES</span><span class='dot token'>.</span><span class='include? fid id'>include?</span><span class='lparen token'>(</span><span class='@type ivar id'>@type</span><span class='rparen token'>)</span>
|
497
|
+
<span class='raise identifier id'>raise</span> <span class='PosInvalid constant id'>PosInvalid</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='dstring node'>"Invalid encoding parameter, expected one of these: #{Payments::ENCODINGS.join(', ')}"</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='Payments constant id'>Payments</span><span class='colon2 op'>::</span><span class='ENCODINGS constant id'>ENCODINGS</span><span class='dot token'>.</span><span class='include? fid id'>include?</span><span class='lparen token'>(</span><span class='@encoding ivar id'>@encoding</span><span class='rparen token'>)</span>
|
570
498
|
<span class='end end kw'>end</span>
|
571
499
|
</pre>
|
572
500
|
</td>
|
@@ -857,12 +785,12 @@ Returns the value of attribute type
|
|
857
785
|
<pre class="lines">
|
858
786
|
|
859
787
|
|
860
|
-
|
861
|
-
|
862
|
-
|
788
|
+
59
|
789
|
+
60
|
790
|
+
61</pre>
|
863
791
|
</td>
|
864
792
|
<td>
|
865
|
-
<pre class="code"><span class="info file"># File 'lib/payments/pos.rb', line
|
793
|
+
<pre class="code"><span class="info file"># File 'lib/payments/pos.rb', line 59</span>
|
866
794
|
|
867
795
|
<span class='def def kw'>def</span> <span class='cancel identifier id'>cancel</span><span class='lparen token'>(</span><span class='session_id identifier id'>session_id</span><span class='rparen token'>)</span>
|
868
796
|
<span class='send_request identifier id'>send_request</span><span class='lparen token'>(</span><span class='symbol val'>:cancel</span><span class='comma token'>,</span> <span class='session_id identifier id'>session_id</span><span class='rparen token'>)</span>
|
@@ -886,12 +814,12 @@ Returns the value of attribute type
|
|
886
814
|
<pre class="lines">
|
887
815
|
|
888
816
|
|
889
|
-
|
890
|
-
|
891
|
-
|
817
|
+
55
|
818
|
+
56
|
819
|
+
57</pre>
|
892
820
|
</td>
|
893
821
|
<td>
|
894
|
-
<pre class="code"><span class="info file"># File 'lib/payments/pos.rb', line
|
822
|
+
<pre class="code"><span class="info file"># File 'lib/payments/pos.rb', line 55</span>
|
895
823
|
|
896
824
|
<span class='def def kw'>def</span> <span class='confirm identifier id'>confirm</span><span class='lparen token'>(</span><span class='session_id identifier id'>session_id</span><span class='rparen token'>)</span>
|
897
825
|
<span class='send_request identifier id'>send_request</span><span class='lparen token'>(</span><span class='symbol val'>:confirm</span><span class='comma token'>,</span> <span class='session_id identifier id'>session_id</span><span class='rparen token'>)</span>
|
@@ -900,35 +828,6 @@ Returns the value of attribute type
|
|
900
828
|
</td>
|
901
829
|
</tr>
|
902
830
|
</table>
|
903
|
-
</div>
|
904
|
-
|
905
|
-
<div class="method_details ">
|
906
|
-
<p class="signature " id="encrypt-instance_method">
|
907
|
-
|
908
|
-
- (<tt>Object</tt>) <strong>encrypt</strong>(*params)
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
</p><table class="source_code">
|
913
|
-
<tr>
|
914
|
-
<td>
|
915
|
-
<pre class="lines">
|
916
|
-
|
917
|
-
|
918
|
-
47
|
919
|
-
48
|
920
|
-
49</pre>
|
921
|
-
</td>
|
922
|
-
<td>
|
923
|
-
<pre class="code"><span class="info file"># File 'lib/payments/pos.rb', line 47</span>
|
924
|
-
|
925
|
-
<span class='def def kw'>def</span> <span class='encrypt identifier id'>encrypt</span><span class='lparen token'>(</span><span class='mult op'>*</span><span class='params identifier id'>params</span><span class='rparen token'>)</span>
|
926
|
-
<span class='Digest constant id'>Digest</span><span class='colon2 op'>::</span><span class='MD5 constant id'>MD5</span><span class='dot token'>.</span><span class='hexdigest identifier id'>hexdigest</span><span class='lparen token'>(</span><span class='params identifier id'>params</span><span class='dot token'>.</span><span class='join identifier id'>join</span><span class='rparen token'>)</span>
|
927
|
-
<span class='end end kw'>end</span>
|
928
|
-
</pre>
|
929
|
-
</td>
|
930
|
-
</tr>
|
931
|
-
</table>
|
932
831
|
</div>
|
933
832
|
|
934
833
|
<div class="method_details ">
|
@@ -944,12 +843,12 @@ Returns the value of attribute type
|
|
944
843
|
<pre class="lines">
|
945
844
|
|
946
845
|
|
947
|
-
|
948
|
-
|
949
|
-
|
846
|
+
51
|
847
|
+
52
|
848
|
+
53</pre>
|
950
849
|
</td>
|
951
850
|
<td>
|
952
|
-
<pre class="code"><span class="info file"># File 'lib/payments/pos.rb', line
|
851
|
+
<pre class="code"><span class="info file"># File 'lib/payments/pos.rb', line 51</span>
|
953
852
|
|
954
853
|
<span class='def def kw'>def</span> <span class='get identifier id'>get</span><span class='lparen token'>(</span><span class='session_id identifier id'>session_id</span><span class='rparen token'>)</span>
|
955
854
|
<span class='send_request identifier id'>send_request</span><span class='lparen token'>(</span><span class='symbol val'>:get</span><span class='comma token'>,</span> <span class='session_id identifier id'>session_id</span><span class='rparen token'>)</span>
|
@@ -967,193 +866,86 @@ Returns the value of attribute type
|
|
967
866
|
|
968
867
|
|
969
868
|
|
970
|
-
</p><
|
971
|
-
<
|
972
|
-
<
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
18
|
977
|
-
19
|
978
|
-
20
|
979
|
-
21
|
980
|
-
22
|
981
|
-
23
|
982
|
-
24
|
983
|
-
25
|
984
|
-
26</pre>
|
985
|
-
</td>
|
986
|
-
<td>
|
987
|
-
<pre class="code"><span class="info file"># File 'lib/payments/pos.rb', line 18</span>
|
988
|
-
|
989
|
-
<span class='def def kw'>def</span> <span class='new_transaction identifier id'>new_transaction</span><span class='lparen token'>(</span><span class='options identifier id'>options</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
990
|
-
<span class='options identifier id'>options</span><span class='dot token'>.</span><span class='stringify_keys! fid id'>stringify_keys!</span>
|
869
|
+
</p><div class="docstring">
|
870
|
+
<div class="discussion">
|
871
|
+
<p>
|
872
|
+
Creates new transaction
|
873
|
+
</p>
|
991
874
|
|
992
|
-
<span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:pos_id</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='@pos_id ivar id'>@pos_id</span>
|
993
|
-
<span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:pos_auth_key</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='@pos_auth_key ivar id'>@pos_auth_key</span>
|
994
|
-
<span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:session_id</span><span class='rbrack token'>]</span> <span class='opasgn op'>||=</span> <span class='lparen token'>(</span><span class='Time constant id'>Time</span><span class='dot token'>.</span><span class='now identifier id'>now</span><span class='dot token'>.</span><span class='to_f identifier id'>to_f</span> <span class='mult op'>*</span> <span class='integer val'>100</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='to_i identifier id'>to_i</span>
|
995
875
|
|
996
|
-
|
997
|
-
<span class='end end kw'>end</span>
|
998
|
-
</pre>
|
999
|
-
</td>
|
1000
|
-
</tr>
|
1001
|
-
</table>
|
876
|
+
</div>
|
1002
877
|
</div>
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
878
|
+
<div class="tags">
|
879
|
+
<h3>Parameters:</h3>
|
880
|
+
<ul class="param">
|
881
|
+
|
882
|
+
<li>
|
883
|
+
|
884
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
885
|
+
|
886
|
+
|
887
|
+
<span class='name'>options</span>
|
888
|
+
|
889
|
+
|
890
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
891
|
+
|
892
|
+
|
893
|
+
—
|
894
|
+
<div class='inline'><p>
|
895
|
+
options hash for new transaction
|
896
|
+
</p>
|
897
|
+
</div>
|
898
|
+
|
899
|
+
</li>
|
1006
900
|
|
1007
|
-
|
901
|
+
</ul>
|
902
|
+
<h3>Returns:</h3>
|
903
|
+
<ul class="return">
|
1008
904
|
|
1009
|
-
|
905
|
+
<li>
|
906
|
+
|
907
|
+
<span class='type'>(<tt>Object</tt>)</span>
|
908
|
+
|
909
|
+
|
910
|
+
|
911
|
+
|
912
|
+
—
|
913
|
+
<div class='inline'><p>
|
914
|
+
Transaction object
|
915
|
+
</p>
|
916
|
+
</div>
|
917
|
+
|
918
|
+
</li>
|
1010
919
|
|
1011
|
-
</
|
920
|
+
</ul>
|
921
|
+
|
922
|
+
</div><table class="source_code">
|
1012
923
|
<tr>
|
1013
924
|
<td>
|
1014
925
|
<pre class="lines">
|
1015
926
|
|
1016
927
|
|
1017
|
-
28
|
1018
|
-
29
|
1019
|
-
30
|
1020
928
|
31
|
1021
929
|
32
|
1022
930
|
33
|
1023
931
|
34
|
1024
932
|
35
|
1025
|
-
36
|
1026
|
-
|
1027
|
-
<td>
|
1028
|
-
<pre class="code"><span class="info file"># File 'lib/payments/pos.rb', line 28</span>
|
1029
|
-
|
1030
|
-
<span class='def def kw'>def</span> <span class='new_transaction_url identifier id'>new_transaction_url</span>
|
1031
|
-
<span class='if if kw'>if</span> <span class='@type ivar id'>@type</span> <span class='eq op'>==</span> <span class='string val'>'express_gateway'</span>
|
1032
|
-
<span class='return return kw'>return</span> <span class='dstring node'>"https://www.platnosci.pl/paygw/#{@encoding}/NewPayment"</span>
|
1033
|
-
<span class='elsif elsif kw'>elsif</span> <span class='@type ivar id'>@type</span> <span class='eq op'>==</span> <span class='string val'>'sms_premium'</span>
|
1034
|
-
<span class='return return kw'>return</span> <span class='dstring node'>"https://www.platnosci.pl/paygw/#{@encoding}/NewSMS"</span>
|
1035
|
-
<span class='else else kw'>else</span>
|
1036
|
-
<span class='return return kw'>return</span> <span class='nil nil kw'>nil</span>
|
1037
|
-
<span class='end end kw'>end</span>
|
1038
|
-
<span class='end end kw'>end</span>
|
1039
|
-
</pre>
|
1040
|
-
</td>
|
1041
|
-
</tr>
|
1042
|
-
</table>
|
1043
|
-
</div>
|
1044
|
-
|
1045
|
-
<div class="method_details ">
|
1046
|
-
<p class="signature " id="parse_response_body-instance_method">
|
1047
|
-
|
1048
|
-
- (<tt>Object</tt>) <strong>parse_response_body</strong>(body)
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
</p><table class="source_code">
|
1053
|
-
<tr>
|
1054
|
-
<td>
|
1055
|
-
<pre class="lines">
|
1056
|
-
|
1057
|
-
|
1058
|
-
108
|
1059
|
-
109
|
1060
|
-
110
|
1061
|
-
111
|
1062
|
-
112
|
1063
|
-
113</pre>
|
1064
|
-
</td>
|
1065
|
-
<td>
|
1066
|
-
<pre class="code"><span class="info file"># File 'lib/payments/pos.rb', line 108</span>
|
1067
|
-
|
1068
|
-
<span class='def def kw'>def</span> <span class='parse_response_body identifier id'>parse_response_body</span><span class='lparen token'>(</span><span class='body identifier id'>body</span><span class='rparen token'>)</span>
|
1069
|
-
<span class='body identifier id'>body</span><span class='dot token'>.</span><span class='gsub! fid id'>gsub!</span><span class='lparen token'>(</span><span class='string val'>"\r"</span><span class='comma token'>,</span> <span class='string val'>""</span><span class='rparen token'>)</span>
|
1070
|
-
<span class='pattern identifier id'>pattern</span> <span class='assign token'>=</span> <span class='regexp val'>/^(\w+):(?:[ ])?(.*)$/</span>
|
1071
|
-
<span class='data identifier id'>data</span> <span class='assign token'>=</span> <span class='body identifier id'>body</span><span class='dot token'>.</span><span class='scan identifier id'>scan</span><span class='lparen token'>(</span><span class='pattern identifier id'>pattern</span><span class='rparen token'>)</span>
|
1072
|
-
<span class='OpenStruct constant id'>OpenStruct</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='data identifier id'>data</span><span class='rparen token'>)</span>
|
1073
|
-
<span class='end end kw'>end</span>
|
1074
|
-
</pre>
|
1075
|
-
</td>
|
1076
|
-
</tr>
|
1077
|
-
</table>
|
1078
|
-
</div>
|
1079
|
-
|
1080
|
-
<div class="method_details ">
|
1081
|
-
<p class="signature " id="path_for-instance_method">
|
1082
|
-
|
1083
|
-
- (<tt>Object</tt>) <strong>path_for</strong>(method)
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
</p><table class="source_code">
|
1088
|
-
<tr>
|
1089
|
-
<td>
|
1090
|
-
<pre class="lines">
|
1091
|
-
|
1092
|
-
|
933
|
+
36
|
934
|
+
37
|
1093
935
|
38
|
1094
|
-
39
|
1095
|
-
40
|
1096
|
-
41
|
1097
|
-
42
|
1098
|
-
43
|
1099
|
-
44
|
1100
|
-
45</pre>
|
936
|
+
39</pre>
|
1101
937
|
</td>
|
1102
938
|
<td>
|
1103
|
-
<pre class="code"><span class="info file"># File 'lib/payments/pos.rb', line
|
1104
|
-
|
1105
|
-
<span class='def def kw'>def</span> <span class='path_for identifier id'>path_for</span><span class='lparen token'>(</span><span class='method identifier id'>method</span><span class='rparen token'>)</span>
|
1106
|
-
<span class='case case kw'>case</span> <span class='method identifier id'>method</span>
|
1107
|
-
<span class='when when kw'>when</span> <span class='symbol val'>:get</span> <span class='then then kw'>then</span> <span class='dstring node'>"/paygw/#{@encoding}/Payment/get/txt"</span>
|
1108
|
-
<span class='when when kw'>when</span> <span class='symbol val'>:confirm</span> <span class='then then kw'>then</span> <span class='dstring node'>"/paygw/#{@encoding}/Payment/confirm/txt"</span>
|
1109
|
-
<span class='when when kw'>when</span> <span class='symbol val'>:cancel</span> <span class='then then kw'>then</span> <span class='dstring node'>"/paygw/#{@encoding}/Payment/cancel/txt"</span>
|
1110
|
-
<span class='else else kw'>else</span> <span class='nil nil kw'>nil</span>
|
1111
|
-
<span class='end end kw'>end</span>
|
1112
|
-
<span class='end end kw'>end</span>
|
1113
|
-
</pre>
|
1114
|
-
</td>
|
1115
|
-
</tr>
|
1116
|
-
</table>
|
1117
|
-
</div>
|
1118
|
-
|
1119
|
-
<div class="method_details ">
|
1120
|
-
<p class="signature " id="prepare_data-instance_method">
|
1121
|
-
|
1122
|
-
- (<tt>Object</tt>) <strong>prepare_data</strong>(session_id)
|
1123
|
-
|
939
|
+
<pre class="code"><span class="info file"># File 'lib/payments/pos.rb', line 31</span>
|
1124
940
|
|
1125
|
-
|
1126
|
-
</
|
1127
|
-
<tr>
|
1128
|
-
<td>
|
1129
|
-
<pre class="lines">
|
941
|
+
<span class='def def kw'>def</span> <span class='new_transaction identifier id'>new_transaction</span><span class='lparen token'>(</span><span class='options identifier id'>options</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
942
|
+
<span class='options identifier id'>options</span><span class='dot token'>.</span><span class='stringify_keys! fid id'>stringify_keys!</span>
|
1130
943
|
|
944
|
+
<span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:pos_id</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='@pos_id ivar id'>@pos_id</span>
|
945
|
+
<span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:pos_auth_key</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='@pos_auth_key ivar id'>@pos_auth_key</span>
|
946
|
+
<span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:session_id</span><span class='rbrack token'>]</span> <span class='opasgn op'>||=</span> <span class='lparen token'>(</span><span class='Time constant id'>Time</span><span class='dot token'>.</span><span class='now identifier id'>now</span><span class='dot token'>.</span><span class='to_f identifier id'>to_f</span> <span class='mult op'>*</span> <span class='integer val'>100</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='to_i identifier id'>to_i</span>
|
1131
947
|
|
1132
|
-
|
1133
|
-
97
|
1134
|
-
98
|
1135
|
-
99
|
1136
|
-
100
|
1137
|
-
101
|
1138
|
-
102
|
1139
|
-
103
|
1140
|
-
104
|
1141
|
-
105
|
1142
|
-
106</pre>
|
1143
|
-
</td>
|
1144
|
-
<td>
|
1145
|
-
<pre class="code"><span class="info file"># File 'lib/payments/pos.rb', line 96</span>
|
1146
|
-
|
1147
|
-
<span class='def def kw'>def</span> <span class='prepare_data identifier id'>prepare_data</span><span class='lparen token'>(</span><span class='session_id identifier id'>session_id</span><span class='rparen token'>)</span>
|
1148
|
-
<span class='ts identifier id'>ts</span> <span class='assign token'>=</span> <span class='lparen token'>(</span><span class='Time constant id'>Time</span><span class='dot token'>.</span><span class='now identifier id'>now</span><span class='dot token'>.</span><span class='to_f identifier id'>to_f</span> <span class='mult op'>*</span> <span class='integer val'>1000</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='to_i identifier id'>to_i</span>
|
1149
|
-
<span class='sig identifier id'>sig</span> <span class='assign token'>=</span> <span class='encrypt identifier id'>encrypt</span><span class='lparen token'>(</span><span class='@pos_id ivar id'>@pos_id</span><span class='comma token'>,</span> <span class='session_id identifier id'>session_id</span><span class='comma token'>,</span> <span class='ts identifier id'>ts</span><span class='comma token'>,</span> <span class='@key1 ivar id'>@key1</span><span class='rparen token'>)</span>
|
1150
|
-
|
1151
|
-
<span class='lbrace token'>{</span>
|
1152
|
-
<span class='string val'>'pos_id'</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='@pos_id ivar id'>@pos_id</span><span class='comma token'>,</span>
|
1153
|
-
<span class='string val'>'session_id'</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='session_id identifier id'>session_id</span><span class='comma token'>,</span>
|
1154
|
-
<span class='string val'>'ts'</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='ts identifier id'>ts</span><span class='comma token'>,</span>
|
1155
|
-
<span class='string val'>'sig'</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='sig identifier id'>sig</span>
|
1156
|
-
<span class='rbrace token'>}</span>
|
948
|
+
<span class='Transaction constant id'>Transaction</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='rparen token'>)</span>
|
1157
949
|
<span class='end end kw'>end</span>
|
1158
950
|
</pre>
|
1159
951
|
</td>
|
@@ -1162,106 +954,65 @@ Returns the value of attribute type
|
|
1162
954
|
</div>
|
1163
955
|
|
1164
956
|
<div class="method_details ">
|
1165
|
-
<p class="signature " id="
|
957
|
+
<p class="signature " id="new_transaction_url-instance_method">
|
1166
958
|
|
1167
|
-
- (<tt>
|
959
|
+
- (<tt>String</tt>) <strong>new_transaction_url</strong>
|
1168
960
|
|
1169
961
|
|
1170
962
|
|
1171
|
-
</p><
|
1172
|
-
<
|
1173
|
-
<
|
1174
|
-
|
1175
|
-
|
963
|
+
</p><div class="docstring">
|
964
|
+
<div class="discussion">
|
965
|
+
<p>
|
966
|
+
Returns new transaction url, depending on Pos type
|
967
|
+
</p>
|
1176
968
|
|
1177
|
-
73
|
1178
|
-
74
|
1179
|
-
75
|
1180
|
-
76
|
1181
|
-
77
|
1182
|
-
78
|
1183
|
-
79
|
1184
|
-
80
|
1185
|
-
81
|
1186
|
-
82
|
1187
|
-
83
|
1188
|
-
84
|
1189
|
-
85
|
1190
|
-
86
|
1191
|
-
87
|
1192
|
-
88
|
1193
|
-
89
|
1194
|
-
90
|
1195
|
-
91
|
1196
|
-
92
|
1197
|
-
93
|
1198
|
-
94</pre>
|
1199
|
-
</td>
|
1200
|
-
<td>
|
1201
|
-
<pre class="code"><span class="info file"># File 'lib/payments/pos.rb', line 73</span>
|
1202
|
-
|
1203
|
-
<span class='def def kw'>def</span> <span class='send_request identifier id'>send_request</span><span class='lparen token'>(</span><span class='method identifier id'>method</span><span class='comma token'>,</span> <span class='session_id identifier id'>session_id</span><span class='rparen token'>)</span>
|
1204
|
-
<span class='url identifier id'>url</span> <span class='assign token'>=</span> <span class='path_for identifier id'>path_for</span><span class='lparen token'>(</span><span class='method identifier id'>method</span><span class='rparen token'>)</span>
|
1205
|
-
<span class='data identifier id'>data</span> <span class='assign token'>=</span> <span class='prepare_data identifier id'>prepare_data</span><span class='lparen token'>(</span><span class='session_id identifier id'>session_id</span><span class='rparen token'>)</span>
|
1206
|
-
<span class='connection identifier id'>connection</span> <span class='assign token'>=</span> <span class='Net constant id'>Net</span><span class='colon2 op'>::</span><span class='HTTP constant id'>HTTP</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='string val'>'www.platnosci.pl'</span><span class='comma token'>,</span> <span class='integer val'>443</span><span class='rparen token'>)</span>
|
1207
|
-
<span class='connection identifier id'>connection</span><span class='dot token'>.</span><span class='use_ssl identifier id'>use_ssl</span> <span class='assign token'>=</span> <span class='true true kw'>true</span>
|
1208
|
-
|
1209
|
-
<span class='response identifier id'>response</span> <span class='assign token'>=</span> <span class='connection identifier id'>connection</span><span class='dot token'>.</span><span class='start identifier id'>start</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='http identifier id'>http</span><span class='bitor op'>|</span>
|
1210
|
-
<span class='post identifier id'>post</span> <span class='assign token'>=</span> <span class='Net constant id'>Net</span><span class='colon2 op'>::</span><span class='HTTP constant id'>HTTP</span><span class='colon2 op'>::</span><span class='Post constant id'>Post</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='url identifier id'>url</span><span class='rparen token'>)</span>
|
1211
|
-
<span class='post identifier id'>post</span><span class='dot token'>.</span><span class='set_form_data identifier id'>set_form_data</span><span class='lparen token'>(</span><span class='data identifier id'>data</span><span class='dot token'>.</span><span class='stringify_keys identifier id'>stringify_keys</span><span class='rparen token'>)</span>
|
1212
|
-
<span class='http identifier id'>http</span><span class='dot token'>.</span><span class='request identifier id'>request</span><span class='lparen token'>(</span><span class='post identifier id'>post</span><span class='rparen token'>)</span>
|
1213
|
-
<span class='end end kw'>end</span>
|
1214
969
|
|
1215
|
-
|
1216
|
-
<span class='t identifier id'>t</span> <span class='assign token'>=</span> <span class='parse_response_body identifier id'>parse_response_body</span><span class='lparen token'>(</span><span class='response identifier id'>response</span><span class='dot token'>.</span><span class='body identifier id'>body</span><span class='rparen token'>)</span>
|
1217
|
-
<span class='if if kw'>if</span> <span class='t identifier id'>t</span><span class='dot token'>.</span><span class='status identifier id'>status</span> <span class='eq op'>==</span> <span class='string val'>'OK'</span>
|
1218
|
-
<span class='raise identifier id'>raise</span> <span class='SignatureInvalid constant id'>SignatureInvalid</span> <span class='unless unless_mod kw'>unless</span> <span class='verify identifier id'>verify</span><span class='lparen token'>(</span><span class='t identifier id'>t</span><span class='rparen token'>)</span>
|
1219
|
-
<span class='end end kw'>end</span>
|
1220
|
-
<span class='return return kw'>return</span> <span class='lbrack token'>[</span><span class='t identifier id'>t</span><span class='dot token'>.</span><span class='status identifier id'>status</span><span class='comma token'>,</span> <span class='t identifier id'>t</span><span class='rbrack token'>]</span>
|
1221
|
-
<span class='else else kw'>else</span>
|
1222
|
-
<span class='raise identifier id'>raise</span> <span class='RequestFailed constant id'>RequestFailed</span>
|
1223
|
-
<span class='end end kw'>end</span>
|
1224
|
-
<span class='end end kw'>end</span>
|
1225
|
-
</pre>
|
1226
|
-
</td>
|
1227
|
-
</tr>
|
1228
|
-
</table>
|
970
|
+
</div>
|
1229
971
|
</div>
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
972
|
+
<div class="tags">
|
973
|
+
<h3>Returns:</h3>
|
974
|
+
<ul class="return">
|
1233
975
|
|
1234
|
-
|
976
|
+
<li>
|
977
|
+
|
978
|
+
<span class='type'>(<tt>String</tt>)</span>
|
979
|
+
|
980
|
+
|
981
|
+
|
982
|
+
|
983
|
+
—
|
984
|
+
<div class='inline'><p>
|
985
|
+
new transaction url
|
986
|
+
</p>
|
987
|
+
</div>
|
988
|
+
|
989
|
+
</li>
|
1235
990
|
|
991
|
+
</ul>
|
1236
992
|
|
1237
|
-
|
1238
|
-
</p><table class="source_code">
|
993
|
+
</div><table class="source_code">
|
1239
994
|
<tr>
|
1240
995
|
<td>
|
1241
996
|
<pre class="lines">
|
1242
997
|
|
1243
998
|
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1251
|
-
58
|
1252
|
-
59</pre>
|
999
|
+
43
|
1000
|
+
44
|
1001
|
+
45
|
1002
|
+
46
|
1003
|
+
47
|
1004
|
+
48
|
1005
|
+
49</pre>
|
1253
1006
|
</td>
|
1254
1007
|
<td>
|
1255
|
-
<pre class="code"><span class="info file"># File 'lib/payments/pos.rb', line
|
1008
|
+
<pre class="code"><span class="info file"># File 'lib/payments/pos.rb', line 43</span>
|
1256
1009
|
|
1257
|
-
<span class='def def kw'>def</span> <span class='
|
1258
|
-
<span class='
|
1259
|
-
|
1260
|
-
<span class='sig identifier id'>sig</span> <span class='assign token'>=</span> <span class='encrypt identifier id'>encrypt</span><span class='lparen token'>(</span><span class='t identifier id'>t</span><span class='dot token'>.</span><span class='trans_pos_id identifier id'>trans_pos_id</span><span class='comma token'>,</span> <span class='t identifier id'>t</span><span class='dot token'>.</span><span class='trans_session_id identifier id'>trans_session_id</span><span class='comma token'>,</span> <span class='t identifier id'>t</span><span class='dot token'>.</span><span class='trans_order_id identifier id'>trans_order_id</span><span class='comma token'>,</span> <span class='t identifier id'>t</span><span class='dot token'>.</span><span class='trans_status identifier id'>trans_status</span><span class='comma token'>,</span> <span class='t identifier id'>t</span><span class='dot token'>.</span><span class='trans_amount identifier id'>trans_amount</span><span class='comma token'>,</span> <span class='t identifier id'>t</span><span class='dot token'>.</span><span class='trans_desc identifier id'>trans_desc</span><span class='comma token'>,</span> <span class='t identifier id'>t</span><span class='dot token'>.</span><span class='trans_ts identifier id'>trans_ts</span><span class='comma token'>,</span> <span class='@key2 ivar id'>@key2</span><span class='rparen token'>)</span>
|
1010
|
+
<span class='def def kw'>def</span> <span class='new_transaction_url identifier id'>new_transaction_url</span>
|
1011
|
+
<span class='if if kw'>if</span> <span class='@type ivar id'>@type</span> <span class='eq op'>==</span> <span class='string val'>'sms_premium'</span>
|
1012
|
+
<span class='return return kw'>return</span> <span class='dstring node'>"https://www.platnosci.pl/paygw/#{@encoding}/NewSMS"</span>
|
1261
1013
|
<span class='else else kw'>else</span>
|
1262
|
-
<span class='
|
1014
|
+
<span class='return return kw'>return</span> <span class='dstring node'>"https://www.platnosci.pl/paygw/#{@encoding}/NewPayment"</span>
|
1263
1015
|
<span class='end end kw'>end</span>
|
1264
|
-
<span class='return return kw'>return</span> <span class='sig identifier id'>sig</span> <span class='eq op'>==</span> <span class='t identifier id'>t</span><span class='dot token'>.</span><span class='trans_sig identifier id'>trans_sig</span>
|
1265
1016
|
<span class='end end kw'>end</span>
|
1266
1017
|
</pre>
|
1267
1018
|
</td>
|
@@ -1274,7 +1025,7 @@ Returns the value of attribute type
|
|
1274
1025
|
</div>
|
1275
1026
|
|
1276
1027
|
<div id="footer">
|
1277
|
-
Generated on
|
1028
|
+
Generated on Wed Aug 18 22:12:45 2010 by
|
1278
1029
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
|
1279
1030
|
0.5.8 (ruby-1.8.7).
|
1280
1031
|
</div>
|