openpayu 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +18 -0
- data/.rspec +3 -0
- data/.rubocop.yml +45 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +10 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +193 -0
- data/Rakefile +1 -0
- data/doc/EmptyResponseError.html +123 -0
- data/doc/HttpStatusException.html +123 -0
- data/doc/NotImplementedException.html +123 -0
- data/doc/OpenPayU.html +436 -0
- data/doc/OpenPayU/Configuration.html +1530 -0
- data/doc/OpenPayU/Connection.html +381 -0
- data/doc/OpenPayU/Document.html +705 -0
- data/doc/OpenPayU/Documents.html +117 -0
- data/doc/OpenPayU/Documents/Request.html +503 -0
- data/doc/OpenPayU/Documents/Response.html +783 -0
- data/doc/OpenPayU/Models.html +117 -0
- data/doc/OpenPayU/Models/Address.html +861 -0
- data/doc/OpenPayU/Models/Buyer.html +587 -0
- data/doc/OpenPayU/Models/Buyer/Delivery.html +312 -0
- data/doc/OpenPayU/Models/Card.html +507 -0
- data/doc/OpenPayU/Models/Fee.html +367 -0
- data/doc/OpenPayU/Models/Model.html +1208 -0
- data/doc/OpenPayU/Models/NotifyResponse.html +297 -0
- data/doc/OpenPayU/Models/Order.html +1155 -0
- data/doc/OpenPayU/Models/PayMethod.html +507 -0
- data/doc/OpenPayU/Models/Product.html +787 -0
- data/doc/OpenPayU/Models/Refund.html +1020 -0
- data/doc/OpenPayU/Models/ShippingMethod.html +367 -0
- data/doc/OpenPayU/Models/StatusUpdate.html +647 -0
- data/doc/OpenPayU/Models/Token.html +507 -0
- data/doc/OpenPayU/Order.html +924 -0
- data/doc/OpenPayU/Refund.html +269 -0
- data/doc/OpenPayU/Token.html +288 -0
- data/doc/OpenPayU/XmlBuilder.html +277 -0
- data/doc/WrongConfigurationError.html +123 -0
- data/doc/WrongNotifyRequest.html +123 -0
- data/doc/WrongOrderParameters.html +267 -0
- data/doc/WrongSignatureException.html +123 -0
- data/doc/_index.html +446 -0
- data/doc/class_list.html +54 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +338 -0
- data/doc/file.README.html +281 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +281 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +178 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +1007 -0
- data/doc/top-level-namespace.html +114 -0
- data/lib/openpayu.rb +66 -0
- data/lib/openpayu/configuration.rb +62 -0
- data/lib/openpayu/connection.rb +65 -0
- data/lib/openpayu/document.rb +105 -0
- data/lib/openpayu/documents/request.rb +34 -0
- data/lib/openpayu/documents/response.rb +48 -0
- data/lib/openpayu/exceptions.rb +19 -0
- data/lib/openpayu/models/address.rb +12 -0
- data/lib/openpayu/models/buyer.rb +11 -0
- data/lib/openpayu/models/buyer/delivery.rb +7 -0
- data/lib/openpayu/models/buyer/invoice.rb +8 -0
- data/lib/openpayu/models/card.rb +10 -0
- data/lib/openpayu/models/fee.rb +9 -0
- data/lib/openpayu/models/model.rb +151 -0
- data/lib/openpayu/models/notify_response.rb +9 -0
- data/lib/openpayu/models/order.rb +28 -0
- data/lib/openpayu/models/pay_method.rb +10 -0
- data/lib/openpayu/models/product.rb +10 -0
- data/lib/openpayu/models/refund.rb +41 -0
- data/lib/openpayu/models/shipping_method.rb +9 -0
- data/lib/openpayu/models/status_update.rb +14 -0
- data/lib/openpayu/models/token.rb +10 -0
- data/lib/openpayu/order.rb +119 -0
- data/lib/openpayu/refund.rb +26 -0
- data/lib/openpayu/token.rb +27 -0
- data/lib/openpayu/version.rb +4 -0
- data/lib/openpayu/xml_builder.rb +23 -0
- data/lib/openpayu_ruby.rb +2 -0
- data/openpayu_ruby.gemspec +40 -0
- data/spec/cassettes/cancel_order.yml +50 -0
- data/spec/cassettes/create_order.yml +51 -0
- data/spec/cassettes/refund_order.yml +100 -0
- data/spec/cassettes/retrieve_order.yml +51 -0
- data/spec/cassettes/update_order.yml +50 -0
- data/spec/integration/order_spec.rb +103 -0
- data/spec/openpayu.yml +11 -0
- data/spec/spec_helper.rb +27 -0
- data/spec/test_objects/order.rb +97 -0
- data/spec/unit/configuration_spec.rb +71 -0
- data/spec/unit/document_spec.rb +18 -0
- data/spec/unit/models/order_spec.rb +82 -0
- data/spec/unit/models/refund_spec.rb +24 -0
- data/spec/unit/openpayu_spec.rb +27 -0
- metadata +327 -0
@@ -0,0 +1,1530 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: OpenPayU::Configuration
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.2
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../';
|
20
|
+
framesUrl = "../frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../_index.html">Index (C)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../OpenPayU.html" title="OpenPayU (module)">OpenPayU</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Configuration</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: OpenPayU::Configuration
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">Object</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">OpenPayU::Configuration</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
<dt class="r2">Includes:</dt>
|
94
|
+
<dd class="r2">Singleton</dd>
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<dt class="r1 last">Defined in:</dt>
|
101
|
+
<dd class="r1 last">lib/openpayu/configuration.rb</dd>
|
102
|
+
|
103
|
+
</dl>
|
104
|
+
<div class="clear"></div>
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<h2>Class Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
111
|
+
<ul class="summary">
|
112
|
+
|
113
|
+
<li class="public ">
|
114
|
+
<span class="summary_signature">
|
115
|
+
|
116
|
+
<a href="#algorithm-class_method" title="algorithm (class method)">+ (Object) <strong>algorithm</strong> </a>
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
</span>
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<span class="summary_desc"><div class='inline'>
|
134
|
+
<p>Returns the value of attribute algorithm.</p>
|
135
|
+
</div></span>
|
136
|
+
|
137
|
+
</li>
|
138
|
+
|
139
|
+
|
140
|
+
<li class="public ">
|
141
|
+
<span class="summary_signature">
|
142
|
+
|
143
|
+
<a href="#client_id-class_method" title="client_id (class method)">+ (Object) <strong>client_id</strong> </a>
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
</span>
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
<span class="summary_desc"><div class='inline'>
|
161
|
+
<p>Returns the value of attribute client_id.</p>
|
162
|
+
</div></span>
|
163
|
+
|
164
|
+
</li>
|
165
|
+
|
166
|
+
|
167
|
+
<li class="public ">
|
168
|
+
<span class="summary_signature">
|
169
|
+
|
170
|
+
<a href="#client_secret-class_method" title="client_secret (class method)">+ (Object) <strong>client_secret</strong> </a>
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
</span>
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
<span class="summary_desc"><div class='inline'>
|
188
|
+
<p>Returns the value of attribute client_secret.</p>
|
189
|
+
</div></span>
|
190
|
+
|
191
|
+
</li>
|
192
|
+
|
193
|
+
|
194
|
+
<li class="public ">
|
195
|
+
<span class="summary_signature">
|
196
|
+
|
197
|
+
<a href="#continue_url-class_method" title="continue_url (class method)">+ (Object) <strong>continue_url</strong> </a>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
</span>
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
<span class="summary_desc"><div class='inline'>
|
215
|
+
<p>Returns the value of attribute continue_url.</p>
|
216
|
+
</div></span>
|
217
|
+
|
218
|
+
</li>
|
219
|
+
|
220
|
+
|
221
|
+
<li class="public ">
|
222
|
+
<span class="summary_signature">
|
223
|
+
|
224
|
+
<a href="#country-class_method" title="country (class method)">+ (Object) <strong>country</strong> </a>
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
</span>
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
<span class="summary_desc"><div class='inline'>
|
242
|
+
<p>Returns the value of attribute country.</p>
|
243
|
+
</div></span>
|
244
|
+
|
245
|
+
</li>
|
246
|
+
|
247
|
+
|
248
|
+
<li class="public ">
|
249
|
+
<span class="summary_signature">
|
250
|
+
|
251
|
+
<a href="#data_format-class_method" title="data_format (class method)">+ (Object) <strong>data_format</strong> </a>
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
</span>
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
<span class="summary_desc"><div class='inline'>
|
269
|
+
<p>Returns the value of attribute data_format.</p>
|
270
|
+
</div></span>
|
271
|
+
|
272
|
+
</li>
|
273
|
+
|
274
|
+
|
275
|
+
<li class="public ">
|
276
|
+
<span class="summary_signature">
|
277
|
+
|
278
|
+
<a href="#env-class_method" title="env (class method)">+ (Object) <strong>env</strong> </a>
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
</span>
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
<span class="summary_desc"><div class='inline'>
|
296
|
+
<p>Returns the value of attribute env.</p>
|
297
|
+
</div></span>
|
298
|
+
|
299
|
+
</li>
|
300
|
+
|
301
|
+
|
302
|
+
<li class="public ">
|
303
|
+
<span class="summary_signature">
|
304
|
+
|
305
|
+
<a href="#merchant_pos_id-class_method" title="merchant_pos_id (class method)">+ (Object) <strong>merchant_pos_id</strong> </a>
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
</span>
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
<span class="summary_desc"><div class='inline'>
|
323
|
+
<p>Returns the value of attribute merchant_pos_id.</p>
|
324
|
+
</div></span>
|
325
|
+
|
326
|
+
</li>
|
327
|
+
|
328
|
+
|
329
|
+
<li class="public ">
|
330
|
+
<span class="summary_signature">
|
331
|
+
|
332
|
+
<a href="#notify_url-class_method" title="notify_url (class method)">+ (Object) <strong>notify_url</strong> </a>
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
</span>
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
<span class="summary_desc"><div class='inline'>
|
350
|
+
<p>Returns the value of attribute notify_url.</p>
|
351
|
+
</div></span>
|
352
|
+
|
353
|
+
</li>
|
354
|
+
|
355
|
+
|
356
|
+
<li class="public ">
|
357
|
+
<span class="summary_signature">
|
358
|
+
|
359
|
+
<a href="#order_url-class_method" title="order_url (class method)">+ (Object) <strong>order_url</strong> </a>
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
</span>
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
<span class="summary_desc"><div class='inline'>
|
377
|
+
<p>Returns the value of attribute order_url.</p>
|
378
|
+
</div></span>
|
379
|
+
|
380
|
+
</li>
|
381
|
+
|
382
|
+
|
383
|
+
<li class="public ">
|
384
|
+
<span class="summary_signature">
|
385
|
+
|
386
|
+
<a href="#pos_auth_key-class_method" title="pos_auth_key (class method)">+ (Object) <strong>pos_auth_key</strong> </a>
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
</span>
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
<span class="summary_desc"><div class='inline'>
|
404
|
+
<p>Returns the value of attribute pos_auth_key.</p>
|
405
|
+
</div></span>
|
406
|
+
|
407
|
+
</li>
|
408
|
+
|
409
|
+
|
410
|
+
<li class="public ">
|
411
|
+
<span class="summary_signature">
|
412
|
+
|
413
|
+
<a href="#protocol-class_method" title="protocol (class method)">+ (Object) <strong>protocol</strong> </a>
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
</span>
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
<span class="summary_desc"><div class='inline'>
|
431
|
+
<p>Returns the value of attribute protocol.</p>
|
432
|
+
</div></span>
|
433
|
+
|
434
|
+
</li>
|
435
|
+
|
436
|
+
|
437
|
+
<li class="public ">
|
438
|
+
<span class="summary_signature">
|
439
|
+
|
440
|
+
<a href="#service_domain-class_method" title="service_domain (class method)">+ (Object) <strong>service_domain</strong> </a>
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
</span>
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
<span class="summary_desc"><div class='inline'>
|
458
|
+
<p>Returns the value of attribute service_domain.</p>
|
459
|
+
</div></span>
|
460
|
+
|
461
|
+
</li>
|
462
|
+
|
463
|
+
|
464
|
+
<li class="public ">
|
465
|
+
<span class="summary_signature">
|
466
|
+
|
467
|
+
<a href="#signature_key-class_method" title="signature_key (class method)">+ (Object) <strong>signature_key</strong> </a>
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
</span>
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
|
484
|
+
<span class="summary_desc"><div class='inline'>
|
485
|
+
<p>Returns the value of attribute signature_key.</p>
|
486
|
+
</div></span>
|
487
|
+
|
488
|
+
</li>
|
489
|
+
|
490
|
+
|
491
|
+
</ul>
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
<h2>
|
498
|
+
Class Method Summary
|
499
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
500
|
+
</h2>
|
501
|
+
|
502
|
+
<ul class="summary">
|
503
|
+
|
504
|
+
<li class="public ">
|
505
|
+
<span class="summary_signature">
|
506
|
+
|
507
|
+
<a href="#configure-class_method" title="configure (class method)">+ (Object) <strong>configure</strong>(file_path = nil) </a>
|
508
|
+
|
509
|
+
|
510
|
+
|
511
|
+
</span>
|
512
|
+
|
513
|
+
|
514
|
+
|
515
|
+
|
516
|
+
|
517
|
+
|
518
|
+
|
519
|
+
|
520
|
+
|
521
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
522
|
+
|
523
|
+
</li>
|
524
|
+
|
525
|
+
|
526
|
+
<li class="public ">
|
527
|
+
<span class="summary_signature">
|
528
|
+
|
529
|
+
<a href="#get_base_url-class_method" title="get_base_url (class method)">+ (Object) <strong>get_base_url</strong> </a>
|
530
|
+
|
531
|
+
|
532
|
+
|
533
|
+
</span>
|
534
|
+
|
535
|
+
|
536
|
+
|
537
|
+
|
538
|
+
|
539
|
+
|
540
|
+
|
541
|
+
|
542
|
+
|
543
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
544
|
+
|
545
|
+
</li>
|
546
|
+
|
547
|
+
|
548
|
+
<li class="public ">
|
549
|
+
<span class="summary_signature">
|
550
|
+
|
551
|
+
<a href="#required_parameters-class_method" title="required_parameters (class method)">+ (Object) <strong>required_parameters</strong> </a>
|
552
|
+
|
553
|
+
|
554
|
+
|
555
|
+
</span>
|
556
|
+
|
557
|
+
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
|
562
|
+
|
563
|
+
|
564
|
+
|
565
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
566
|
+
|
567
|
+
</li>
|
568
|
+
|
569
|
+
|
570
|
+
<li class="public ">
|
571
|
+
<span class="summary_signature">
|
572
|
+
|
573
|
+
<a href="#set_defaults-class_method" title="set_defaults (class method)">+ (Object) <strong>set_defaults</strong> </a>
|
574
|
+
|
575
|
+
|
576
|
+
|
577
|
+
</span>
|
578
|
+
|
579
|
+
|
580
|
+
|
581
|
+
|
582
|
+
|
583
|
+
|
584
|
+
|
585
|
+
|
586
|
+
|
587
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
588
|
+
|
589
|
+
</li>
|
590
|
+
|
591
|
+
|
592
|
+
<li class="public ">
|
593
|
+
<span class="summary_signature">
|
594
|
+
|
595
|
+
<a href="#use_ssl%3F-class_method" title="use_ssl? (class method)">+ (Boolean) <strong>use_ssl?</strong> </a>
|
596
|
+
|
597
|
+
|
598
|
+
|
599
|
+
</span>
|
600
|
+
|
601
|
+
|
602
|
+
|
603
|
+
|
604
|
+
|
605
|
+
|
606
|
+
|
607
|
+
|
608
|
+
|
609
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
610
|
+
|
611
|
+
</li>
|
612
|
+
|
613
|
+
|
614
|
+
<li class="public ">
|
615
|
+
<span class="summary_signature">
|
616
|
+
|
617
|
+
<a href="#valid%3F-class_method" title="valid? (class method)">+ (Boolean) <strong>valid?</strong> </a>
|
618
|
+
|
619
|
+
|
620
|
+
|
621
|
+
</span>
|
622
|
+
|
623
|
+
|
624
|
+
|
625
|
+
|
626
|
+
|
627
|
+
|
628
|
+
|
629
|
+
|
630
|
+
|
631
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
632
|
+
|
633
|
+
</li>
|
634
|
+
|
635
|
+
|
636
|
+
</ul>
|
637
|
+
|
638
|
+
|
639
|
+
|
640
|
+
|
641
|
+
<div id="class_attr_details" class="attr_details">
|
642
|
+
<h2>Class Attribute Details</h2>
|
643
|
+
|
644
|
+
|
645
|
+
<span id="algorithm=-class_method"></span>
|
646
|
+
<div class="method_details first">
|
647
|
+
<h3 class="signature first" id="algorithm-class_method">
|
648
|
+
|
649
|
+
+ (<tt>Object</tt>) <strong>algorithm</strong>
|
650
|
+
|
651
|
+
|
652
|
+
|
653
|
+
|
654
|
+
|
655
|
+
</h3><div class="docstring">
|
656
|
+
<div class="discussion">
|
657
|
+
|
658
|
+
<p>Returns the value of attribute algorithm</p>
|
659
|
+
|
660
|
+
|
661
|
+
</div>
|
662
|
+
</div>
|
663
|
+
<div class="tags">
|
664
|
+
|
665
|
+
|
666
|
+
</div><table class="source_code">
|
667
|
+
<tr>
|
668
|
+
<td>
|
669
|
+
<pre class="lines">
|
670
|
+
|
671
|
+
|
672
|
+
11
|
673
|
+
12
|
674
|
+
13</pre>
|
675
|
+
</td>
|
676
|
+
<td>
|
677
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 11</span>
|
678
|
+
|
679
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_algorithm'>algorithm</span>
|
680
|
+
<span class='ivar'>@algorithm</span>
|
681
|
+
<span class='kw'>end</span></pre>
|
682
|
+
</td>
|
683
|
+
</tr>
|
684
|
+
</table>
|
685
|
+
</div>
|
686
|
+
|
687
|
+
|
688
|
+
<span id="client_id=-class_method"></span>
|
689
|
+
<div class="method_details ">
|
690
|
+
<h3 class="signature " id="client_id-class_method">
|
691
|
+
|
692
|
+
+ (<tt>Object</tt>) <strong>client_id</strong>
|
693
|
+
|
694
|
+
|
695
|
+
|
696
|
+
|
697
|
+
|
698
|
+
</h3><div class="docstring">
|
699
|
+
<div class="discussion">
|
700
|
+
|
701
|
+
<p>Returns the value of attribute client_id</p>
|
702
|
+
|
703
|
+
|
704
|
+
</div>
|
705
|
+
</div>
|
706
|
+
<div class="tags">
|
707
|
+
|
708
|
+
|
709
|
+
</div><table class="source_code">
|
710
|
+
<tr>
|
711
|
+
<td>
|
712
|
+
<pre class="lines">
|
713
|
+
|
714
|
+
|
715
|
+
11
|
716
|
+
12
|
717
|
+
13</pre>
|
718
|
+
</td>
|
719
|
+
<td>
|
720
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 11</span>
|
721
|
+
|
722
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_client_id'>client_id</span>
|
723
|
+
<span class='ivar'>@client_id</span>
|
724
|
+
<span class='kw'>end</span></pre>
|
725
|
+
</td>
|
726
|
+
</tr>
|
727
|
+
</table>
|
728
|
+
</div>
|
729
|
+
|
730
|
+
|
731
|
+
<span id="client_secret=-class_method"></span>
|
732
|
+
<div class="method_details ">
|
733
|
+
<h3 class="signature " id="client_secret-class_method">
|
734
|
+
|
735
|
+
+ (<tt>Object</tt>) <strong>client_secret</strong>
|
736
|
+
|
737
|
+
|
738
|
+
|
739
|
+
|
740
|
+
|
741
|
+
</h3><div class="docstring">
|
742
|
+
<div class="discussion">
|
743
|
+
|
744
|
+
<p>Returns the value of attribute client_secret</p>
|
745
|
+
|
746
|
+
|
747
|
+
</div>
|
748
|
+
</div>
|
749
|
+
<div class="tags">
|
750
|
+
|
751
|
+
|
752
|
+
</div><table class="source_code">
|
753
|
+
<tr>
|
754
|
+
<td>
|
755
|
+
<pre class="lines">
|
756
|
+
|
757
|
+
|
758
|
+
11
|
759
|
+
12
|
760
|
+
13</pre>
|
761
|
+
</td>
|
762
|
+
<td>
|
763
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 11</span>
|
764
|
+
|
765
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_client_secret'>client_secret</span>
|
766
|
+
<span class='ivar'>@client_secret</span>
|
767
|
+
<span class='kw'>end</span></pre>
|
768
|
+
</td>
|
769
|
+
</tr>
|
770
|
+
</table>
|
771
|
+
</div>
|
772
|
+
|
773
|
+
|
774
|
+
<span id="continue_url=-class_method"></span>
|
775
|
+
<div class="method_details ">
|
776
|
+
<h3 class="signature " id="continue_url-class_method">
|
777
|
+
|
778
|
+
+ (<tt>Object</tt>) <strong>continue_url</strong>
|
779
|
+
|
780
|
+
|
781
|
+
|
782
|
+
|
783
|
+
|
784
|
+
</h3><div class="docstring">
|
785
|
+
<div class="discussion">
|
786
|
+
|
787
|
+
<p>Returns the value of attribute continue_url</p>
|
788
|
+
|
789
|
+
|
790
|
+
</div>
|
791
|
+
</div>
|
792
|
+
<div class="tags">
|
793
|
+
|
794
|
+
|
795
|
+
</div><table class="source_code">
|
796
|
+
<tr>
|
797
|
+
<td>
|
798
|
+
<pre class="lines">
|
799
|
+
|
800
|
+
|
801
|
+
11
|
802
|
+
12
|
803
|
+
13</pre>
|
804
|
+
</td>
|
805
|
+
<td>
|
806
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 11</span>
|
807
|
+
|
808
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_continue_url'>continue_url</span>
|
809
|
+
<span class='ivar'>@continue_url</span>
|
810
|
+
<span class='kw'>end</span></pre>
|
811
|
+
</td>
|
812
|
+
</tr>
|
813
|
+
</table>
|
814
|
+
</div>
|
815
|
+
|
816
|
+
|
817
|
+
<span id="country=-class_method"></span>
|
818
|
+
<div class="method_details ">
|
819
|
+
<h3 class="signature " id="country-class_method">
|
820
|
+
|
821
|
+
+ (<tt>Object</tt>) <strong>country</strong>
|
822
|
+
|
823
|
+
|
824
|
+
|
825
|
+
|
826
|
+
|
827
|
+
</h3><div class="docstring">
|
828
|
+
<div class="discussion">
|
829
|
+
|
830
|
+
<p>Returns the value of attribute country</p>
|
831
|
+
|
832
|
+
|
833
|
+
</div>
|
834
|
+
</div>
|
835
|
+
<div class="tags">
|
836
|
+
|
837
|
+
|
838
|
+
</div><table class="source_code">
|
839
|
+
<tr>
|
840
|
+
<td>
|
841
|
+
<pre class="lines">
|
842
|
+
|
843
|
+
|
844
|
+
11
|
845
|
+
12
|
846
|
+
13</pre>
|
847
|
+
</td>
|
848
|
+
<td>
|
849
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 11</span>
|
850
|
+
|
851
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_country'>country</span>
|
852
|
+
<span class='ivar'>@country</span>
|
853
|
+
<span class='kw'>end</span></pre>
|
854
|
+
</td>
|
855
|
+
</tr>
|
856
|
+
</table>
|
857
|
+
</div>
|
858
|
+
|
859
|
+
|
860
|
+
<span id="data_format=-class_method"></span>
|
861
|
+
<div class="method_details ">
|
862
|
+
<h3 class="signature " id="data_format-class_method">
|
863
|
+
|
864
|
+
+ (<tt>Object</tt>) <strong>data_format</strong>
|
865
|
+
|
866
|
+
|
867
|
+
|
868
|
+
|
869
|
+
|
870
|
+
</h3><div class="docstring">
|
871
|
+
<div class="discussion">
|
872
|
+
|
873
|
+
<p>Returns the value of attribute data_format</p>
|
874
|
+
|
875
|
+
|
876
|
+
</div>
|
877
|
+
</div>
|
878
|
+
<div class="tags">
|
879
|
+
|
880
|
+
|
881
|
+
</div><table class="source_code">
|
882
|
+
<tr>
|
883
|
+
<td>
|
884
|
+
<pre class="lines">
|
885
|
+
|
886
|
+
|
887
|
+
11
|
888
|
+
12
|
889
|
+
13</pre>
|
890
|
+
</td>
|
891
|
+
<td>
|
892
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 11</span>
|
893
|
+
|
894
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_data_format'>data_format</span>
|
895
|
+
<span class='ivar'>@data_format</span>
|
896
|
+
<span class='kw'>end</span></pre>
|
897
|
+
</td>
|
898
|
+
</tr>
|
899
|
+
</table>
|
900
|
+
</div>
|
901
|
+
|
902
|
+
|
903
|
+
<span id="env=-class_method"></span>
|
904
|
+
<div class="method_details ">
|
905
|
+
<h3 class="signature " id="env-class_method">
|
906
|
+
|
907
|
+
+ (<tt>Object</tt>) <strong>env</strong>
|
908
|
+
|
909
|
+
|
910
|
+
|
911
|
+
|
912
|
+
|
913
|
+
</h3><div class="docstring">
|
914
|
+
<div class="discussion">
|
915
|
+
|
916
|
+
<p>Returns the value of attribute env</p>
|
917
|
+
|
918
|
+
|
919
|
+
</div>
|
920
|
+
</div>
|
921
|
+
<div class="tags">
|
922
|
+
|
923
|
+
|
924
|
+
</div><table class="source_code">
|
925
|
+
<tr>
|
926
|
+
<td>
|
927
|
+
<pre class="lines">
|
928
|
+
|
929
|
+
|
930
|
+
11
|
931
|
+
12
|
932
|
+
13</pre>
|
933
|
+
</td>
|
934
|
+
<td>
|
935
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 11</span>
|
936
|
+
|
937
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_env'>env</span>
|
938
|
+
<span class='ivar'>@env</span>
|
939
|
+
<span class='kw'>end</span></pre>
|
940
|
+
</td>
|
941
|
+
</tr>
|
942
|
+
</table>
|
943
|
+
</div>
|
944
|
+
|
945
|
+
|
946
|
+
<span id="merchant_pos_id=-class_method"></span>
|
947
|
+
<div class="method_details ">
|
948
|
+
<h3 class="signature " id="merchant_pos_id-class_method">
|
949
|
+
|
950
|
+
+ (<tt>Object</tt>) <strong>merchant_pos_id</strong>
|
951
|
+
|
952
|
+
|
953
|
+
|
954
|
+
|
955
|
+
|
956
|
+
</h3><div class="docstring">
|
957
|
+
<div class="discussion">
|
958
|
+
|
959
|
+
<p>Returns the value of attribute merchant_pos_id</p>
|
960
|
+
|
961
|
+
|
962
|
+
</div>
|
963
|
+
</div>
|
964
|
+
<div class="tags">
|
965
|
+
|
966
|
+
|
967
|
+
</div><table class="source_code">
|
968
|
+
<tr>
|
969
|
+
<td>
|
970
|
+
<pre class="lines">
|
971
|
+
|
972
|
+
|
973
|
+
11
|
974
|
+
12
|
975
|
+
13</pre>
|
976
|
+
</td>
|
977
|
+
<td>
|
978
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 11</span>
|
979
|
+
|
980
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_merchant_pos_id'>merchant_pos_id</span>
|
981
|
+
<span class='ivar'>@merchant_pos_id</span>
|
982
|
+
<span class='kw'>end</span></pre>
|
983
|
+
</td>
|
984
|
+
</tr>
|
985
|
+
</table>
|
986
|
+
</div>
|
987
|
+
|
988
|
+
|
989
|
+
<span id="notify_url=-class_method"></span>
|
990
|
+
<div class="method_details ">
|
991
|
+
<h3 class="signature " id="notify_url-class_method">
|
992
|
+
|
993
|
+
+ (<tt>Object</tt>) <strong>notify_url</strong>
|
994
|
+
|
995
|
+
|
996
|
+
|
997
|
+
|
998
|
+
|
999
|
+
</h3><div class="docstring">
|
1000
|
+
<div class="discussion">
|
1001
|
+
|
1002
|
+
<p>Returns the value of attribute notify_url</p>
|
1003
|
+
|
1004
|
+
|
1005
|
+
</div>
|
1006
|
+
</div>
|
1007
|
+
<div class="tags">
|
1008
|
+
|
1009
|
+
|
1010
|
+
</div><table class="source_code">
|
1011
|
+
<tr>
|
1012
|
+
<td>
|
1013
|
+
<pre class="lines">
|
1014
|
+
|
1015
|
+
|
1016
|
+
11
|
1017
|
+
12
|
1018
|
+
13</pre>
|
1019
|
+
</td>
|
1020
|
+
<td>
|
1021
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 11</span>
|
1022
|
+
|
1023
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_notify_url'>notify_url</span>
|
1024
|
+
<span class='ivar'>@notify_url</span>
|
1025
|
+
<span class='kw'>end</span></pre>
|
1026
|
+
</td>
|
1027
|
+
</tr>
|
1028
|
+
</table>
|
1029
|
+
</div>
|
1030
|
+
|
1031
|
+
|
1032
|
+
<span id="order_url=-class_method"></span>
|
1033
|
+
<div class="method_details ">
|
1034
|
+
<h3 class="signature " id="order_url-class_method">
|
1035
|
+
|
1036
|
+
+ (<tt>Object</tt>) <strong>order_url</strong>
|
1037
|
+
|
1038
|
+
|
1039
|
+
|
1040
|
+
|
1041
|
+
|
1042
|
+
</h3><div class="docstring">
|
1043
|
+
<div class="discussion">
|
1044
|
+
|
1045
|
+
<p>Returns the value of attribute order_url</p>
|
1046
|
+
|
1047
|
+
|
1048
|
+
</div>
|
1049
|
+
</div>
|
1050
|
+
<div class="tags">
|
1051
|
+
|
1052
|
+
|
1053
|
+
</div><table class="source_code">
|
1054
|
+
<tr>
|
1055
|
+
<td>
|
1056
|
+
<pre class="lines">
|
1057
|
+
|
1058
|
+
|
1059
|
+
11
|
1060
|
+
12
|
1061
|
+
13</pre>
|
1062
|
+
</td>
|
1063
|
+
<td>
|
1064
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 11</span>
|
1065
|
+
|
1066
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_order_url'>order_url</span>
|
1067
|
+
<span class='ivar'>@order_url</span>
|
1068
|
+
<span class='kw'>end</span></pre>
|
1069
|
+
</td>
|
1070
|
+
</tr>
|
1071
|
+
</table>
|
1072
|
+
</div>
|
1073
|
+
|
1074
|
+
|
1075
|
+
<span id="pos_auth_key=-class_method"></span>
|
1076
|
+
<div class="method_details ">
|
1077
|
+
<h3 class="signature " id="pos_auth_key-class_method">
|
1078
|
+
|
1079
|
+
+ (<tt>Object</tt>) <strong>pos_auth_key</strong>
|
1080
|
+
|
1081
|
+
|
1082
|
+
|
1083
|
+
|
1084
|
+
|
1085
|
+
</h3><div class="docstring">
|
1086
|
+
<div class="discussion">
|
1087
|
+
|
1088
|
+
<p>Returns the value of attribute pos_auth_key</p>
|
1089
|
+
|
1090
|
+
|
1091
|
+
</div>
|
1092
|
+
</div>
|
1093
|
+
<div class="tags">
|
1094
|
+
|
1095
|
+
|
1096
|
+
</div><table class="source_code">
|
1097
|
+
<tr>
|
1098
|
+
<td>
|
1099
|
+
<pre class="lines">
|
1100
|
+
|
1101
|
+
|
1102
|
+
11
|
1103
|
+
12
|
1104
|
+
13</pre>
|
1105
|
+
</td>
|
1106
|
+
<td>
|
1107
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 11</span>
|
1108
|
+
|
1109
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_pos_auth_key'>pos_auth_key</span>
|
1110
|
+
<span class='ivar'>@pos_auth_key</span>
|
1111
|
+
<span class='kw'>end</span></pre>
|
1112
|
+
</td>
|
1113
|
+
</tr>
|
1114
|
+
</table>
|
1115
|
+
</div>
|
1116
|
+
|
1117
|
+
|
1118
|
+
<span id="protocol=-class_method"></span>
|
1119
|
+
<div class="method_details ">
|
1120
|
+
<h3 class="signature " id="protocol-class_method">
|
1121
|
+
|
1122
|
+
+ (<tt>Object</tt>) <strong>protocol</strong>
|
1123
|
+
|
1124
|
+
|
1125
|
+
|
1126
|
+
|
1127
|
+
|
1128
|
+
</h3><div class="docstring">
|
1129
|
+
<div class="discussion">
|
1130
|
+
|
1131
|
+
<p>Returns the value of attribute protocol</p>
|
1132
|
+
|
1133
|
+
|
1134
|
+
</div>
|
1135
|
+
</div>
|
1136
|
+
<div class="tags">
|
1137
|
+
|
1138
|
+
|
1139
|
+
</div><table class="source_code">
|
1140
|
+
<tr>
|
1141
|
+
<td>
|
1142
|
+
<pre class="lines">
|
1143
|
+
|
1144
|
+
|
1145
|
+
11
|
1146
|
+
12
|
1147
|
+
13</pre>
|
1148
|
+
</td>
|
1149
|
+
<td>
|
1150
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 11</span>
|
1151
|
+
|
1152
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_protocol'>protocol</span>
|
1153
|
+
<span class='ivar'>@protocol</span>
|
1154
|
+
<span class='kw'>end</span></pre>
|
1155
|
+
</td>
|
1156
|
+
</tr>
|
1157
|
+
</table>
|
1158
|
+
</div>
|
1159
|
+
|
1160
|
+
|
1161
|
+
<span id="service_domain=-class_method"></span>
|
1162
|
+
<div class="method_details ">
|
1163
|
+
<h3 class="signature " id="service_domain-class_method">
|
1164
|
+
|
1165
|
+
+ (<tt>Object</tt>) <strong>service_domain</strong>
|
1166
|
+
|
1167
|
+
|
1168
|
+
|
1169
|
+
|
1170
|
+
|
1171
|
+
</h3><div class="docstring">
|
1172
|
+
<div class="discussion">
|
1173
|
+
|
1174
|
+
<p>Returns the value of attribute service_domain</p>
|
1175
|
+
|
1176
|
+
|
1177
|
+
</div>
|
1178
|
+
</div>
|
1179
|
+
<div class="tags">
|
1180
|
+
|
1181
|
+
|
1182
|
+
</div><table class="source_code">
|
1183
|
+
<tr>
|
1184
|
+
<td>
|
1185
|
+
<pre class="lines">
|
1186
|
+
|
1187
|
+
|
1188
|
+
11
|
1189
|
+
12
|
1190
|
+
13</pre>
|
1191
|
+
</td>
|
1192
|
+
<td>
|
1193
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 11</span>
|
1194
|
+
|
1195
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_service_domain'>service_domain</span>
|
1196
|
+
<span class='ivar'>@service_domain</span>
|
1197
|
+
<span class='kw'>end</span></pre>
|
1198
|
+
</td>
|
1199
|
+
</tr>
|
1200
|
+
</table>
|
1201
|
+
</div>
|
1202
|
+
|
1203
|
+
|
1204
|
+
<span id="signature_key=-class_method"></span>
|
1205
|
+
<div class="method_details ">
|
1206
|
+
<h3 class="signature " id="signature_key-class_method">
|
1207
|
+
|
1208
|
+
+ (<tt>Object</tt>) <strong>signature_key</strong>
|
1209
|
+
|
1210
|
+
|
1211
|
+
|
1212
|
+
|
1213
|
+
|
1214
|
+
</h3><div class="docstring">
|
1215
|
+
<div class="discussion">
|
1216
|
+
|
1217
|
+
<p>Returns the value of attribute signature_key</p>
|
1218
|
+
|
1219
|
+
|
1220
|
+
</div>
|
1221
|
+
</div>
|
1222
|
+
<div class="tags">
|
1223
|
+
|
1224
|
+
|
1225
|
+
</div><table class="source_code">
|
1226
|
+
<tr>
|
1227
|
+
<td>
|
1228
|
+
<pre class="lines">
|
1229
|
+
|
1230
|
+
|
1231
|
+
11
|
1232
|
+
12
|
1233
|
+
13</pre>
|
1234
|
+
</td>
|
1235
|
+
<td>
|
1236
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 11</span>
|
1237
|
+
|
1238
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_signature_key'>signature_key</span>
|
1239
|
+
<span class='ivar'>@signature_key</span>
|
1240
|
+
<span class='kw'>end</span></pre>
|
1241
|
+
</td>
|
1242
|
+
</tr>
|
1243
|
+
</table>
|
1244
|
+
</div>
|
1245
|
+
|
1246
|
+
</div>
|
1247
|
+
|
1248
|
+
|
1249
|
+
<div id="class_method_details" class="method_details_list">
|
1250
|
+
<h2>Class Method Details</h2>
|
1251
|
+
|
1252
|
+
|
1253
|
+
<div class="method_details first">
|
1254
|
+
<h3 class="signature first" id="configure-class_method">
|
1255
|
+
|
1256
|
+
+ (<tt>Object</tt>) <strong>configure</strong>(file_path = nil)
|
1257
|
+
|
1258
|
+
|
1259
|
+
|
1260
|
+
|
1261
|
+
|
1262
|
+
</h3><table class="source_code">
|
1263
|
+
<tr>
|
1264
|
+
<td>
|
1265
|
+
<pre class="lines">
|
1266
|
+
|
1267
|
+
|
1268
|
+
15
|
1269
|
+
16
|
1270
|
+
17
|
1271
|
+
18
|
1272
|
+
19
|
1273
|
+
20
|
1274
|
+
21
|
1275
|
+
22
|
1276
|
+
23
|
1277
|
+
24
|
1278
|
+
25
|
1279
|
+
26
|
1280
|
+
27
|
1281
|
+
28
|
1282
|
+
29
|
1283
|
+
30</pre>
|
1284
|
+
</td>
|
1285
|
+
<td>
|
1286
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 15</span>
|
1287
|
+
|
1288
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_configure'>configure</span><span class='lparen'>(</span><span class='id identifier rubyid_file_path'>file_path</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1289
|
+
<span class='id identifier rubyid_set_defaults'>set_defaults</span>
|
1290
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
1291
|
+
<span class='kw'>yield</span> <span class='kw'>self</span>
|
1292
|
+
<span class='kw'>else</span>
|
1293
|
+
<span class='id identifier rubyid_file'>file</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_file_path'>file_path</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_file_path'>file_path</span> <span class='op'>&&</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exists?'>exists?</span><span class='lparen'>(</span><span class='id identifier rubyid_file_path'>file_path</span><span class='rparen'>)</span>
|
1294
|
+
<span class='id identifier rubyid_env'>env</span> <span class='op'>=</span> <span class='kw'>defined?</span><span class='lparen'>(</span><span class='const'>Rails</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='const'>Rails</span><span class='period'>.</span><span class='id identifier rubyid_env'>env</span> <span class='op'>:</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>RACK_ENV</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
1295
|
+
<span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='const'>YAML</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='id identifier rubyid_env'>env</span><span class='rbracket'>]</span>
|
1296
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span>
|
1297
|
+
<span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_each_pair'>each_pair</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='op'>|</span>
|
1298
|
+
<span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_key'>key</span><span class='rbrace'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
1299
|
+
<span class='kw'>end</span>
|
1300
|
+
<span class='kw'>end</span>
|
1301
|
+
<span class='kw'>end</span>
|
1302
|
+
<span class='id identifier rubyid_valid?'>valid?</span>
|
1303
|
+
<span class='kw'>end</span></pre>
|
1304
|
+
</td>
|
1305
|
+
</tr>
|
1306
|
+
</table>
|
1307
|
+
</div>
|
1308
|
+
|
1309
|
+
<div class="method_details ">
|
1310
|
+
<h3 class="signature " id="get_base_url-class_method">
|
1311
|
+
|
1312
|
+
+ (<tt>Object</tt>) <strong>get_base_url</strong>
|
1313
|
+
|
1314
|
+
|
1315
|
+
|
1316
|
+
|
1317
|
+
|
1318
|
+
</h3><table class="source_code">
|
1319
|
+
<tr>
|
1320
|
+
<td>
|
1321
|
+
<pre class="lines">
|
1322
|
+
|
1323
|
+
|
1324
|
+
52
|
1325
|
+
53
|
1326
|
+
54</pre>
|
1327
|
+
</td>
|
1328
|
+
<td>
|
1329
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 52</span>
|
1330
|
+
|
1331
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get_base_url'>get_base_url</span>
|
1332
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='ivar'>@protocol</span><span class='rbrace'>}</span><span class='tstring_content'>://</span><span class='embexpr_beg'>#{</span><span class='ivar'>@env</span><span class='rbrace'>}</span><span class='tstring_content'>.</span><span class='embexpr_beg'>#{</span><span class='ivar'>@service_domain</span><span class='rbrace'>}</span><span class='tstring_content'>/api/v2/</span><span class='tstring_end'>"</span></span>
|
1333
|
+
<span class='kw'>end</span></pre>
|
1334
|
+
</td>
|
1335
|
+
</tr>
|
1336
|
+
</table>
|
1337
|
+
</div>
|
1338
|
+
|
1339
|
+
<div class="method_details ">
|
1340
|
+
<h3 class="signature " id="required_parameters-class_method">
|
1341
|
+
|
1342
|
+
+ (<tt>Object</tt>) <strong>required_parameters</strong>
|
1343
|
+
|
1344
|
+
|
1345
|
+
|
1346
|
+
|
1347
|
+
|
1348
|
+
</h3><table class="source_code">
|
1349
|
+
<tr>
|
1350
|
+
<td>
|
1351
|
+
<pre class="lines">
|
1352
|
+
|
1353
|
+
|
1354
|
+
39
|
1355
|
+
40
|
1356
|
+
41</pre>
|
1357
|
+
</td>
|
1358
|
+
<td>
|
1359
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 39</span>
|
1360
|
+
|
1361
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_required_parameters'>required_parameters</span>
|
1362
|
+
<span class='lbracket'>[</span><span class='symbol'>:merchant_pos_id</span><span class='comma'>,</span> <span class='symbol'>:signature_key</span><span class='rbracket'>]</span>
|
1363
|
+
<span class='kw'>end</span></pre>
|
1364
|
+
</td>
|
1365
|
+
</tr>
|
1366
|
+
</table>
|
1367
|
+
</div>
|
1368
|
+
|
1369
|
+
<div class="method_details ">
|
1370
|
+
<h3 class="signature " id="set_defaults-class_method">
|
1371
|
+
|
1372
|
+
+ (<tt>Object</tt>) <strong>set_defaults</strong>
|
1373
|
+
|
1374
|
+
|
1375
|
+
|
1376
|
+
|
1377
|
+
|
1378
|
+
</h3><table class="source_code">
|
1379
|
+
<tr>
|
1380
|
+
<td>
|
1381
|
+
<pre class="lines">
|
1382
|
+
|
1383
|
+
|
1384
|
+
32
|
1385
|
+
33
|
1386
|
+
34
|
1387
|
+
35
|
1388
|
+
36
|
1389
|
+
37</pre>
|
1390
|
+
</td>
|
1391
|
+
<td>
|
1392
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 32</span>
|
1393
|
+
|
1394
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_set_defaults'>set_defaults</span>
|
1395
|
+
<span class='ivar'>@service_domain</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>payu.com</span><span class='tstring_end'>'</span></span>
|
1396
|
+
<span class='ivar'>@env</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>sandbox</span><span class='tstring_end'>'</span></span>
|
1397
|
+
<span class='ivar'>@country</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>pl</span><span class='tstring_end'>'</span></span>
|
1398
|
+
<span class='ivar'>@algorithm</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>MD5</span><span class='tstring_end'>'</span></span>
|
1399
|
+
<span class='kw'>end</span></pre>
|
1400
|
+
</td>
|
1401
|
+
</tr>
|
1402
|
+
</table>
|
1403
|
+
</div>
|
1404
|
+
|
1405
|
+
<div class="method_details ">
|
1406
|
+
<h3 class="signature " id="use_ssl?-class_method">
|
1407
|
+
|
1408
|
+
+ (<tt>Boolean</tt>) <strong>use_ssl?</strong>
|
1409
|
+
|
1410
|
+
|
1411
|
+
|
1412
|
+
|
1413
|
+
|
1414
|
+
</h3><div class="docstring">
|
1415
|
+
<div class="discussion">
|
1416
|
+
|
1417
|
+
|
1418
|
+
</div>
|
1419
|
+
</div>
|
1420
|
+
<div class="tags">
|
1421
|
+
|
1422
|
+
<p class="tag_title">Returns:</p>
|
1423
|
+
<ul class="return">
|
1424
|
+
|
1425
|
+
<li>
|
1426
|
+
|
1427
|
+
|
1428
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1429
|
+
|
1430
|
+
|
1431
|
+
|
1432
|
+
</li>
|
1433
|
+
|
1434
|
+
</ul>
|
1435
|
+
|
1436
|
+
</div><table class="source_code">
|
1437
|
+
<tr>
|
1438
|
+
<td>
|
1439
|
+
<pre class="lines">
|
1440
|
+
|
1441
|
+
|
1442
|
+
56
|
1443
|
+
57
|
1444
|
+
58</pre>
|
1445
|
+
</td>
|
1446
|
+
<td>
|
1447
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 56</span>
|
1448
|
+
|
1449
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_use_ssl?'>use_ssl?</span>
|
1450
|
+
<span class='ivar'>@protocol</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>https</span><span class='tstring_end'>'</span></span>
|
1451
|
+
<span class='kw'>end</span></pre>
|
1452
|
+
</td>
|
1453
|
+
</tr>
|
1454
|
+
</table>
|
1455
|
+
</div>
|
1456
|
+
|
1457
|
+
<div class="method_details ">
|
1458
|
+
<h3 class="signature " id="valid?-class_method">
|
1459
|
+
|
1460
|
+
+ (<tt>Boolean</tt>) <strong>valid?</strong>
|
1461
|
+
|
1462
|
+
|
1463
|
+
|
1464
|
+
|
1465
|
+
|
1466
|
+
</h3><div class="docstring">
|
1467
|
+
<div class="discussion">
|
1468
|
+
|
1469
|
+
|
1470
|
+
</div>
|
1471
|
+
</div>
|
1472
|
+
<div class="tags">
|
1473
|
+
|
1474
|
+
<p class="tag_title">Returns:</p>
|
1475
|
+
<ul class="return">
|
1476
|
+
|
1477
|
+
<li>
|
1478
|
+
|
1479
|
+
|
1480
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1481
|
+
|
1482
|
+
|
1483
|
+
|
1484
|
+
</li>
|
1485
|
+
|
1486
|
+
</ul>
|
1487
|
+
|
1488
|
+
</div><table class="source_code">
|
1489
|
+
<tr>
|
1490
|
+
<td>
|
1491
|
+
<pre class="lines">
|
1492
|
+
|
1493
|
+
|
1494
|
+
43
|
1495
|
+
44
|
1496
|
+
45
|
1497
|
+
46
|
1498
|
+
47
|
1499
|
+
48
|
1500
|
+
49
|
1501
|
+
50</pre>
|
1502
|
+
</td>
|
1503
|
+
<td>
|
1504
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 43</span>
|
1505
|
+
|
1506
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_valid?'>valid?</span>
|
1507
|
+
<span class='id identifier rubyid_required_parameters'>required_parameters</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_parameter'>parameter</span><span class='op'>|</span>
|
1508
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_parameter'>parameter</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>||</span> <span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_parameter'>parameter</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span>
|
1509
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>WrongConfigurationError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Parameter </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_parameter'>parameter</span><span class='rbrace'>}</span><span class='tstring_content'> is invalid.</span><span class='tstring_end'>"</span></span>
|
1510
|
+
<span class='kw'>end</span>
|
1511
|
+
<span class='kw'>end</span>
|
1512
|
+
<span class='kw'>true</span>
|
1513
|
+
<span class='kw'>end</span></pre>
|
1514
|
+
</td>
|
1515
|
+
</tr>
|
1516
|
+
</table>
|
1517
|
+
</div>
|
1518
|
+
|
1519
|
+
</div>
|
1520
|
+
|
1521
|
+
</div>
|
1522
|
+
|
1523
|
+
<div id="footer">
|
1524
|
+
Generated on Tue Dec 17 15:21:00 2013 by
|
1525
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1526
|
+
0.8.7.2 (ruby-1.9.3).
|
1527
|
+
</div>
|
1528
|
+
|
1529
|
+
</body>
|
1530
|
+
</html>
|