openpayu 0.0.2 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/README.md +26 -21
- data/doc/EmptyResponseError.html +4 -4
- data/doc/HttpStatusException.html +4 -4
- data/doc/NotImplementedException.html +4 -4
- data/doc/OpenPayU.html +13 -13
- data/doc/OpenPayU/Configuration.html +19 -17
- data/doc/OpenPayU/Connection.html +35 -43
- data/doc/OpenPayU/Document.html +24 -228
- data/doc/OpenPayU/Documents.html +4 -4
- data/doc/OpenPayU/Documents/Request.html +5 -5
- data/doc/OpenPayU/Documents/Response.html +72 -120
- data/doc/OpenPayU/Models.html +5 -5
- data/doc/OpenPayU/Models/Address.html +5 -6
- data/doc/OpenPayU/Models/Buyer.html +5 -6
- data/doc/OpenPayU/Models/Buyer/Delivery.html +5 -6
- data/doc/OpenPayU/Models/Card.html +5 -6
- data/doc/OpenPayU/Models/Fee.html +5 -6
- data/doc/OpenPayU/Models/Model.html +122 -207
- data/doc/OpenPayU/Models/NotifyResponse.html +5 -6
- data/doc/OpenPayU/Models/Order.html +8 -9
- data/doc/OpenPayU/Models/PayMethod.html +5 -6
- data/doc/OpenPayU/Models/Product.html +5 -6
- data/doc/OpenPayU/Models/Refund.html +13 -102
- data/doc/OpenPayU/Models/ShippingMethod.html +13 -14
- data/doc/OpenPayU/Models/StatusUpdate.html +5 -6
- data/doc/OpenPayU/Models/Token.html +5 -6
- data/doc/OpenPayU/Order.html +53 -89
- data/doc/OpenPayU/Refund.html +6 -18
- data/doc/OpenPayU/Token.html +4 -4
- data/doc/WrongConfigurationError.html +4 -4
- data/doc/WrongNotifyRequest.html +4 -4
- data/doc/WrongOrderParameters.html +4 -4
- data/doc/WrongSignatureException.html +4 -4
- data/doc/_index.html +13 -31
- data/doc/class_list.html +1 -1
- data/doc/css/style.css +2 -1
- data/doc/file.README.html +38 -30
- data/doc/frames.html +1 -1
- data/doc/index.html +38 -30
- data/doc/js/app.js +7 -2
- data/doc/method_list.html +78 -120
- data/doc/top-level-namespace.html +4 -4
- data/lib/openpayu.rb +0 -1
- data/lib/openpayu/configuration.rb +1 -0
- data/lib/openpayu/connection.rb +28 -19
- data/lib/openpayu/document.rb +2 -38
- data/lib/openpayu/documents/response.rb +9 -20
- data/lib/openpayu/models/model.rb +4 -25
- data/lib/openpayu/models/order.rb +0 -1
- data/lib/openpayu/models/refund.rb +5 -27
- data/lib/openpayu/models/shipping_method.rb +2 -2
- data/lib/openpayu/order.rb +7 -25
- data/lib/openpayu/refund.rb +1 -7
- data/lib/openpayu/version.rb +1 -1
- data/openpayu_ruby.gemspec +0 -4
- data/spec/cassettes/cancel_order.yml +17 -26
- data/spec/cassettes/create_order.yml +19 -29
- data/spec/cassettes/retrieve_order.yml +18 -27
- data/spec/cassettes/update_order.yml +19 -28
- data/spec/integration/order_spec.rb +65 -78
- data/spec/openpayu.yml +2 -2
- data/spec/spec_helper.rb +5 -5
- data/spec/test_objects/order.rb +31 -56
- data/spec/unit/configuration_spec.rb +1 -1
- data/spec/unit/models/order_spec.rb +4 -34
- data/spec/unit/openpayu_spec.rb +2 -5
- metadata +55 -87
- data/lib/openpayu/xml_builder.rb +0 -23
- data/spec/cassettes/refund_order.yml +0 -100
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
OTQ4YWY1YzljNjFhMTE0NWEwN2IxYzNjMzZlZjM3N2RjZDQ2NWIwMQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 852a10b9df58232b7097e636dbac61225d418d44
|
4
|
+
data.tar.gz: d91a624e64fdae3938bf7bf1667b94bd1d94c7e5
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
ZjQ4NTdmMDY0MmEzODMyZTk4MDhkN2Y5NDQ1YTFmZTY4ZWI4Y2M5ODE3Y2Zj
|
11
|
-
MjFiOGYzMDQ3NzIyZjU0MTY1MmI4NGJmNTQwM2UwNGFhYzAzOTY=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZGE1YzRjMjVkMTA1OTMzZTY3MWYyZTk0MmY3ZDE0YmY4YjVmYmRkNDZhMWMy
|
14
|
-
ZjUxYjg1YzhhZDZmY2U5ZTE3MDQzMmQ1MmUyNjgwYjc4OGI5OWE0MDJkYjQz
|
15
|
-
NzYwYmE5NGI3YzYzMjk3ODcxYzkzM2JlMGI2NDdhMWI5MjU4ZTU=
|
6
|
+
metadata.gz: 0b2e7ed97b1075cfa343666130963c55a2f6253cbfd1f55488f3ace71adde993fcdd8237f3b4702a580feb094a4dd28e2dee92bbb88d22b611b5e862822b6641
|
7
|
+
data.tar.gz: aeb1706163aeb44632d3315e59d79db07523f0ae3a80d7f66de4fb26159caaf98d97755770a6c13b5b83af1dfa402f44a86ffb841e59ff17c745bdef45294c2e
|
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
-
[![Build Status](https://magnum.travis-ci.com/PayU/openpayu_ruby_sdk.png?token=sqp5QvsmzqEqtVB3sNsK&branch=master)](https://magnum.travis-ci.com/PayU/openpayu_ruby_sdk)
|
2
1
|
[![Code Climate](https://codeclimate.com/repos/524eb044f3ea00329815dff1/badges/885c2d52f25c02295344/gpa.png)](https://codeclimate.com/repos/524eb044f3ea00329815dff1/feed)
|
3
2
|
|
4
|
-
#
|
3
|
+
# OpenPayU Ruby
|
5
4
|
|
6
5
|
The OpenPayU Ruby library provides integration access to the PayU Gateway API ver. 2.
|
7
6
|
|
@@ -19,16 +18,16 @@ Or install it yourself as:
|
|
19
18
|
|
20
19
|
$ gem install openpayu
|
21
20
|
|
21
|
+
|
22
22
|
##Configure Gem
|
23
23
|
To configure OpenPayU environment add a file to config/initializers/openpayu.rb containing:
|
24
24
|
|
25
25
|
OpenPayU::Configuration.configure do |config|
|
26
|
-
config.merchant_pos_id = '
|
27
|
-
config.signature_key = '
|
26
|
+
config.merchant_pos_id = '145227'
|
27
|
+
config.signature_key = '13a980d4f851f3d9a1cfc792fb1f5e50'
|
28
28
|
config.algorithm = 'MD5' # MD5, SHA-1, SHA-256
|
29
29
|
config.service_domain = 'payu.com'
|
30
30
|
config.protocol = 'https'
|
31
|
-
config.data_format = 'json' # json, xml
|
32
31
|
config.env = 'secure'
|
33
32
|
config.order_url = 'http://localhost/order'
|
34
33
|
config.notify_url = 'http://localhost/notify'
|
@@ -42,23 +41,21 @@ Or install it yourself as:
|
|
42
41
|
Structure of YAML file:
|
43
42
|
|
44
43
|
development:
|
45
|
-
merchant_pos_id: '
|
46
|
-
signature_key:
|
44
|
+
merchant_pos_id: '145227'
|
45
|
+
signature_key: 13a980d4f851f3d9a1cfc792fb1f5e50
|
47
46
|
algorithm: MD5 # MD5, SHA-1, SHA-256
|
48
47
|
service_domain: payu.com
|
49
48
|
protocol: https
|
50
|
-
data_format: json # json, xml
|
51
49
|
env: secure
|
52
50
|
order_url: http://localhost/order
|
53
51
|
notify_url: http://localhost/notify
|
54
52
|
continue_url: http://localhost/success
|
55
53
|
production:
|
56
|
-
merchant_pos_id: '
|
57
|
-
signature_key:
|
54
|
+
merchant_pos_id: '145227'
|
55
|
+
signature_key: 13a980d4f851f3d9a1cfc792fb1f5e50
|
58
56
|
algorithm: MD5 # MD5, SHA-1, SHA-256
|
59
57
|
service_domain: payu.com
|
60
58
|
protocol: https
|
61
|
-
data_format: json # json, xml
|
62
59
|
env: secure
|
63
60
|
order_url: http://localhost/order
|
64
61
|
notify_url: http://localhost/notify
|
@@ -67,10 +64,11 @@ Or install it yourself as:
|
|
67
64
|
##Usage
|
68
65
|
|
69
66
|
###Creating Transparent order
|
67
|
+
For more information about order please refer to: http://developers.payu.com/pl/restapi.html#payusdk_creating_new_order_api .
|
70
68
|
To create an order you must provide a Hash with order:
|
71
69
|
|
72
70
|
order = {
|
73
|
-
merchant_pos_id: "
|
71
|
+
merchant_pos_id: "145227",
|
74
72
|
customer_ip: "127.0.0.1", # You can user request.remote_ip in your controller
|
75
73
|
ext_order_id: 1342, #Order id in your system
|
76
74
|
order_url: "http://localhost/",
|
@@ -79,14 +77,18 @@ Or install it yourself as:
|
|
79
77
|
total_amount: 10000,
|
80
78
|
notify_url: "http://localhost/",
|
81
79
|
continue_url: "http://localhost/",
|
82
|
-
validity_time: '48000',
|
83
80
|
buyer: {
|
84
81
|
email: 'dd@ddd.pl',
|
85
82
|
phone: '123123123',
|
86
83
|
first_name: 'Jan',
|
87
84
|
last_name: 'Kowalski',
|
88
85
|
language: 'pl_PL',
|
89
|
-
|
86
|
+
delivery: {
|
87
|
+
street: 'street',
|
88
|
+
postal_code: 'postal_code',
|
89
|
+
city: 'city',
|
90
|
+
country_code: 'PL'
|
91
|
+
}
|
90
92
|
},
|
91
93
|
products: [
|
92
94
|
{
|
@@ -95,12 +97,11 @@ Or install it yourself as:
|
|
95
97
|
quantity: 1
|
96
98
|
}
|
97
99
|
],
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
]
|
100
|
+
shipping_method: {
|
101
|
+
country: 'PL',
|
102
|
+
price: 'price',
|
103
|
+
name: 'shipping name'
|
104
|
+
}
|
104
105
|
}
|
105
106
|
|
106
107
|
When you have ready order Hash you can create new order:
|
@@ -181,7 +182,11 @@ end
|
|
181
182
|
})
|
182
183
|
|
183
184
|
|
184
|
-
|
185
|
+
##Changelog
|
186
|
+
0.1.2
|
187
|
+
|
188
|
+
* Gem adjusted to OpenPayU REST API v 2.0
|
189
|
+
* Communication with OpenPayU only in JSON format, XML is no longer supported
|
185
190
|
|
186
191
|
|
187
192
|
## Contributing
|
data/doc/EmptyResponseError.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Exception: EmptyResponseError
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '';
|
20
|
-
framesUrl = "frames.html#!"
|
20
|
+
framesUrl = "frames.html#!EmptyResponseError.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -114,9 +114,9 @@
|
|
114
114
|
</div>
|
115
115
|
|
116
116
|
<div id="footer">
|
117
|
-
Generated on
|
117
|
+
Generated on Thu May 29 15:13:58 2014 by
|
118
118
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
119
|
-
0.8.7.
|
119
|
+
0.8.7.4 (ruby-1.9.3).
|
120
120
|
</div>
|
121
121
|
|
122
122
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Exception: HttpStatusException
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '';
|
20
|
-
framesUrl = "frames.html#!"
|
20
|
+
framesUrl = "frames.html#!HttpStatusException.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -114,9 +114,9 @@
|
|
114
114
|
</div>
|
115
115
|
|
116
116
|
<div id="footer">
|
117
|
-
Generated on
|
117
|
+
Generated on Thu May 29 15:13:58 2014 by
|
118
118
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
119
|
-
0.8.7.
|
119
|
+
0.8.7.4 (ruby-1.9.3).
|
120
120
|
</div>
|
121
121
|
|
122
122
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Exception: NotImplementedException
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '';
|
20
|
-
framesUrl = "frames.html#!"
|
20
|
+
framesUrl = "frames.html#!NotImplementedException.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -114,9 +114,9 @@
|
|
114
114
|
</div>
|
115
115
|
|
116
116
|
<div id="footer">
|
117
|
-
Generated on
|
117
|
+
Generated on Thu May 29 15:13:58 2014 by
|
118
118
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
119
|
-
0.8.7.
|
119
|
+
0.8.7.4 (ruby-1.9.3).
|
120
120
|
</div>
|
121
121
|
|
122
122
|
</body>
|
data/doc/OpenPayU.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: OpenPayU
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '';
|
20
|
-
framesUrl = "frames.html#!"
|
20
|
+
framesUrl = "frames.html#!OpenPayU.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -80,7 +80,7 @@
|
|
80
80
|
|
81
81
|
<dt class="r1 last">Defined in:</dt>
|
82
82
|
<dd class="r1 last">lib/openpayu.rb<span class="defines">,<br />
|
83
|
-
lib/openpayu/order.rb,<br /> lib/openpayu/token.rb,<br /> lib/openpayu/refund.rb,<br /> lib/openpayu/version.rb,<br /> lib/openpayu/document.rb,<br /> lib/openpayu/connection.rb,<br /> lib/openpayu/models/fee.rb,<br /> lib/openpayu/models/card.rb,<br /> lib/openpayu/
|
83
|
+
lib/openpayu/order.rb,<br /> lib/openpayu/token.rb,<br /> lib/openpayu/refund.rb,<br /> lib/openpayu/version.rb,<br /> lib/openpayu/document.rb,<br /> lib/openpayu/connection.rb,<br /> lib/openpayu/models/fee.rb,<br /> lib/openpayu/models/card.rb,<br /> lib/openpayu/models/buyer.rb,<br /> lib/openpayu/models/model.rb,<br /> lib/openpayu/models/order.rb,<br /> lib/openpayu/models/token.rb,<br /> lib/openpayu/configuration.rb,<br /> lib/openpayu/models/refund.rb,<br /> lib/openpayu/models/address.rb,<br /> lib/openpayu/models/product.rb,<br /> lib/openpayu/documents/request.rb,<br /> lib/openpayu/models/pay_method.rb,<br /> lib/openpayu/documents/response.rb,<br /> lib/openpayu/models/status_update.rb,<br /> lib/openpayu/models/buyer/invoice.rb,<br /> lib/openpayu/models/buyer/delivery.rb,<br /> lib/openpayu/models/notify_response.rb,<br /> lib/openpayu/models/shipping_method.rb</span>
|
84
84
|
</dd>
|
85
85
|
|
86
86
|
</dl>
|
@@ -94,7 +94,7 @@
|
|
94
94
|
|
95
95
|
|
96
96
|
|
97
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="OpenPayU/Configuration.html" title="OpenPayU::Configuration (class)">Configuration</a></span>, <span class='object_link'><a href="OpenPayU/Connection.html" title="OpenPayU::Connection (class)">Connection</a></span>, <span class='object_link'><a href="OpenPayU/Document.html" title="OpenPayU::Document (class)">Document</a></span>, <span class='object_link'><a href="OpenPayU/Order.html" title="OpenPayU::Order (class)">Order</a></span>, <span class='object_link'><a href="OpenPayU/Refund.html" title="OpenPayU::Refund (class)">Refund</a></span>, <span class='object_link'><a href="OpenPayU/Token.html" title="OpenPayU::Token (class)">Token</a></span
|
97
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="OpenPayU/Configuration.html" title="OpenPayU::Configuration (class)">Configuration</a></span>, <span class='object_link'><a href="OpenPayU/Connection.html" title="OpenPayU::Connection (class)">Connection</a></span>, <span class='object_link'><a href="OpenPayU/Document.html" title="OpenPayU::Document (class)">Document</a></span>, <span class='object_link'><a href="OpenPayU/Order.html" title="OpenPayU::Order (class)">Order</a></span>, <span class='object_link'><a href="OpenPayU/Refund.html" title="OpenPayU::Refund (class)">Refund</a></span>, <span class='object_link'><a href="OpenPayU/Token.html" title="OpenPayU::Token (class)">Token</a></span>
|
98
98
|
|
99
99
|
|
100
100
|
</p>
|
@@ -106,7 +106,7 @@
|
|
106
106
|
<dt id="VERSION-constant" class="">VERSION =
|
107
107
|
|
108
108
|
</dt>
|
109
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.
|
109
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.1.2</span><span class='tstring_end'>'</span></span></pre></dd>
|
110
110
|
|
111
111
|
</dl>
|
112
112
|
|
@@ -246,6 +246,7 @@
|
|
246
246
|
<pre class="lines">
|
247
247
|
|
248
248
|
|
249
|
+
52
|
249
250
|
53
|
250
251
|
54
|
251
252
|
55
|
@@ -257,11 +258,10 @@
|
|
257
258
|
61
|
258
259
|
62
|
259
260
|
63
|
260
|
-
64
|
261
|
-
65</pre>
|
261
|
+
64</pre>
|
262
262
|
</td>
|
263
263
|
<td>
|
264
|
-
<pre class="code"><span class="info file"># File 'lib/openpayu.rb', line
|
264
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu.rb', line 52</span>
|
265
265
|
|
266
266
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_hosted_order_form'>hosted_order_form</span><span class='lparen'>(</span><span class='id identifier rubyid_order'>order</span><span class='rparen'>)</span>
|
267
267
|
<span class='ivar'>@order</span> <span class='op'>=</span> <span class='const'>Models</span><span class='op'>::</span><span class='const'>Order</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_order'>order</span><span class='rparen'>)</span>
|
@@ -395,6 +395,7 @@
|
|
395
395
|
<pre class="lines">
|
396
396
|
|
397
397
|
|
398
|
+
38
|
398
399
|
39
|
399
400
|
40
|
400
401
|
41
|
@@ -402,11 +403,10 @@
|
|
402
403
|
43
|
403
404
|
44
|
404
405
|
45
|
405
|
-
46
|
406
|
-
47</pre>
|
406
|
+
46</pre>
|
407
407
|
</td>
|
408
408
|
<td>
|
409
|
-
<pre class="code"><span class="info file"># File 'lib/openpayu.rb', line
|
409
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu.rb', line 38</span>
|
410
410
|
|
411
411
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_sign_form'>sign_form</span><span class='lparen'>(</span><span class='id identifier rubyid_form_fields'>form_fields</span><span class='comma'>,</span> <span class='id identifier rubyid_key'>key</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_algorithm'>algorithm</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_pos_id'>pos_id</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
412
412
|
<span class='id identifier rubyid_sorted_values'>sorted_values</span> <span class='op'>=</span> <span class='id identifier rubyid_form_fields'>form_fields</span><span class='period'>.</span><span class='id identifier rubyid_sort'>sort</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_array'>array</span><span class='op'>|</span> <span class='id identifier rubyid_array'>array</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span>
|
@@ -427,9 +427,9 @@
|
|
427
427
|
</div>
|
428
428
|
|
429
429
|
<div id="footer">
|
430
|
-
Generated on
|
430
|
+
Generated on Thu May 29 15:13:57 2014 by
|
431
431
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
432
|
-
0.8.7.
|
432
|
+
0.8.7.4 (ruby-1.9.3).
|
433
433
|
</div>
|
434
434
|
|
435
435
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: OpenPayU::Configuration
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!"
|
20
|
+
framesUrl = "../frames.html#!OpenPayU/Configuration.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -1321,12 +1321,12 @@
|
|
1321
1321
|
<pre class="lines">
|
1322
1322
|
|
1323
1323
|
|
1324
|
-
52
|
1325
1324
|
53
|
1326
|
-
54
|
1325
|
+
54
|
1326
|
+
55</pre>
|
1327
1327
|
</td>
|
1328
1328
|
<td>
|
1329
|
-
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line
|
1329
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 53</span>
|
1330
1330
|
|
1331
1331
|
<span class='kw'>def</span> <span class='id identifier rubyid_get_base_url'>get_base_url</span>
|
1332
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>
|
@@ -1351,12 +1351,12 @@
|
|
1351
1351
|
<pre class="lines">
|
1352
1352
|
|
1353
1353
|
|
1354
|
-
39
|
1355
1354
|
40
|
1356
|
-
41
|
1355
|
+
41
|
1356
|
+
42</pre>
|
1357
1357
|
</td>
|
1358
1358
|
<td>
|
1359
|
-
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line
|
1359
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 40</span>
|
1360
1360
|
|
1361
1361
|
<span class='kw'>def</span> <span class='id identifier rubyid_required_parameters'>required_parameters</span>
|
1362
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>
|
@@ -1386,7 +1386,8 @@
|
|
1386
1386
|
34
|
1387
1387
|
35
|
1388
1388
|
36
|
1389
|
-
37
|
1389
|
+
37
|
1390
|
+
38</pre>
|
1390
1391
|
</td>
|
1391
1392
|
<td>
|
1392
1393
|
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 32</span>
|
@@ -1396,6 +1397,7 @@
|
|
1396
1397
|
<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
1398
|
<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
1399
|
<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>
|
1400
|
+
<span class='ivar'>@data_format</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>json</span><span class='tstring_end'>'</span></span>
|
1399
1401
|
<span class='kw'>end</span></pre>
|
1400
1402
|
</td>
|
1401
1403
|
</tr>
|
@@ -1439,12 +1441,12 @@
|
|
1439
1441
|
<pre class="lines">
|
1440
1442
|
|
1441
1443
|
|
1442
|
-
56
|
1443
1444
|
57
|
1444
|
-
58
|
1445
|
+
58
|
1446
|
+
59</pre>
|
1445
1447
|
</td>
|
1446
1448
|
<td>
|
1447
|
-
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line
|
1449
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 57</span>
|
1448
1450
|
|
1449
1451
|
<span class='kw'>def</span> <span class='id identifier rubyid_use_ssl?'>use_ssl?</span>
|
1450
1452
|
<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>
|
@@ -1491,17 +1493,17 @@
|
|
1491
1493
|
<pre class="lines">
|
1492
1494
|
|
1493
1495
|
|
1494
|
-
43
|
1495
1496
|
44
|
1496
1497
|
45
|
1497
1498
|
46
|
1498
1499
|
47
|
1499
1500
|
48
|
1500
1501
|
49
|
1501
|
-
50
|
1502
|
+
50
|
1503
|
+
51</pre>
|
1502
1504
|
</td>
|
1503
1505
|
<td>
|
1504
|
-
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line
|
1506
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/configuration.rb', line 44</span>
|
1505
1507
|
|
1506
1508
|
<span class='kw'>def</span> <span class='id identifier rubyid_valid?'>valid?</span>
|
1507
1509
|
<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>
|
@@ -1521,9 +1523,9 @@
|
|
1521
1523
|
</div>
|
1522
1524
|
|
1523
1525
|
<div id="footer">
|
1524
|
-
Generated on
|
1526
|
+
Generated on Thu May 29 15:13:59 2014 by
|
1525
1527
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1526
|
-
0.8.7.
|
1528
|
+
0.8.7.4 (ruby-1.9.3).
|
1527
1529
|
</div>
|
1528
1530
|
|
1529
1531
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: OpenPayU::Connection
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!"
|
20
|
+
framesUrl = "../frames.html#!OpenPayU/Connection.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -117,7 +117,7 @@
|
|
117
117
|
<li class="public ">
|
118
118
|
<span class="summary_signature">
|
119
119
|
|
120
|
-
<a href="#delete-class_method" title="delete (class method)">+ (Object) <strong>delete</strong>(
|
120
|
+
<a href="#delete-class_method" title="delete (class method)">+ (Object) <strong>delete</strong>(endpoint, data) </a>
|
121
121
|
|
122
122
|
|
123
123
|
|
@@ -139,7 +139,7 @@
|
|
139
139
|
<li class="public ">
|
140
140
|
<span class="summary_signature">
|
141
141
|
|
142
|
-
<a href="#get-class_method" title="get (class method)">+ (Object) <strong>get</strong>(
|
142
|
+
<a href="#get-class_method" title="get (class method)">+ (Object) <strong>get</strong>(endpoint, data) </a>
|
143
143
|
|
144
144
|
|
145
145
|
|
@@ -161,7 +161,7 @@
|
|
161
161
|
<li class="public ">
|
162
162
|
<span class="summary_signature">
|
163
163
|
|
164
|
-
<a href="#post-class_method" title="post (class method)">+ (Object) <strong>post</strong>(
|
164
|
+
<a href="#post-class_method" title="post (class method)">+ (Object) <strong>post</strong>(endpoint, data) </a>
|
165
165
|
|
166
166
|
|
167
167
|
|
@@ -183,7 +183,7 @@
|
|
183
183
|
<li class="public ">
|
184
184
|
<span class="summary_signature">
|
185
185
|
|
186
|
-
<a href="#put-class_method" title="put (class method)">+ (Object) <strong>put</strong>(
|
186
|
+
<a href="#put-class_method" title="put (class method)">+ (Object) <strong>put</strong>(endpoint, data) </a>
|
187
187
|
|
188
188
|
|
189
189
|
|
@@ -214,7 +214,7 @@
|
|
214
214
|
<div class="method_details first">
|
215
215
|
<h3 class="signature first" id="delete-class_method">
|
216
216
|
|
217
|
-
+ (<tt>Object</tt>) <strong>delete</strong>(
|
217
|
+
+ (<tt>Object</tt>) <strong>delete</strong>(endpoint, data)
|
218
218
|
|
219
219
|
|
220
220
|
|
@@ -226,15 +226,15 @@
|
|
226
226
|
<pre class="lines">
|
227
227
|
|
228
228
|
|
229
|
-
|
230
|
-
|
231
|
-
|
229
|
+
36
|
230
|
+
37
|
231
|
+
38</pre>
|
232
232
|
</td>
|
233
233
|
<td>
|
234
|
-
<pre class="code"><span class="info file"># File 'lib/openpayu/connection.rb', line
|
234
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/connection.rb', line 36</span>
|
235
235
|
|
236
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier
|
237
|
-
<span class='id identifier rubyid_common_connection'>common_connection</span><span class='lparen'>(</span><span class='id identifier
|
236
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_endpoint'>endpoint</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
237
|
+
<span class='id identifier rubyid_common_connection'>common_connection</span><span class='lparen'>(</span><span class='id identifier rubyid_endpoint'>endpoint</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>DELETE</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
238
238
|
<span class='kw'>end</span></pre>
|
239
239
|
</td>
|
240
240
|
</tr>
|
@@ -244,7 +244,7 @@
|
|
244
244
|
<div class="method_details ">
|
245
245
|
<h3 class="signature " id="get-class_method">
|
246
246
|
|
247
|
-
+ (<tt>Object</tt>) <strong>get</strong>(
|
247
|
+
+ (<tt>Object</tt>) <strong>get</strong>(endpoint, data)
|
248
248
|
|
249
249
|
|
250
250
|
|
@@ -256,15 +256,15 @@
|
|
256
256
|
<pre class="lines">
|
257
257
|
|
258
258
|
|
259
|
-
|
260
|
-
|
261
|
-
|
259
|
+
32
|
260
|
+
33
|
261
|
+
34</pre>
|
262
262
|
</td>
|
263
263
|
<td>
|
264
|
-
<pre class="code"><span class="info file"># File 'lib/openpayu/connection.rb', line
|
264
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/connection.rb', line 32</span>
|
265
265
|
|
266
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='id identifier
|
267
|
-
<span class='id identifier rubyid_common_connection'>common_connection</span><span class='lparen'>(</span><span class='id identifier
|
266
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='id identifier rubyid_endpoint'>endpoint</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
267
|
+
<span class='id identifier rubyid_common_connection'>common_connection</span><span class='lparen'>(</span><span class='id identifier rubyid_endpoint'>endpoint</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>GET</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
268
268
|
<span class='kw'>end</span></pre>
|
269
269
|
</td>
|
270
270
|
</tr>
|
@@ -274,7 +274,7 @@
|
|
274
274
|
<div class="method_details ">
|
275
275
|
<h3 class="signature " id="post-class_method">
|
276
276
|
|
277
|
-
+ (<tt>Object</tt>) <strong>post</strong>(
|
277
|
+
+ (<tt>Object</tt>) <strong>post</strong>(endpoint, data)
|
278
278
|
|
279
279
|
|
280
280
|
|
@@ -295,22 +295,18 @@
|
|
295
295
|
16
|
296
296
|
17
|
297
297
|
18
|
298
|
-
19
|
299
|
-
20
|
300
|
-
21</pre>
|
298
|
+
19</pre>
|
301
299
|
</td>
|
302
300
|
<td>
|
303
301
|
<pre class="code"><span class="info file"># File 'lib/openpayu/connection.rb', line 10</span>
|
304
302
|
|
305
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='id identifier
|
306
|
-
<span class='id identifier
|
307
|
-
<span class='id identifier rubyid_http'>http</span> <span class='op'>=</span> <span class='const'>Net</span><span class='op'>::</span><span class='const'>HTTP</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_host'>host</span><span class='comma'>,</span> <span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_port'>port</span><span class='rparen'>)</span>
|
308
|
-
<span class='id identifier rubyid_http'>http</span><span class='period'>.</span><span class='id identifier rubyid_use_ssl'>use_ssl</span> <span class='op'>=</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='const'>OpenPayU</span><span class='op'>::</span><span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_use_ssl?'>use_ssl?</span>
|
303
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='id identifier rubyid_endpoint'>endpoint</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
304
|
+
<span class='id identifier rubyid_http'>http</span><span class='comma'>,</span> <span class='id identifier rubyid_uri'>uri</span> <span class='op'>=</span> <span class='id identifier rubyid_build_url'>build_url</span><span class='lparen'>(</span><span class='id identifier rubyid_endpoint'>endpoint</span><span class='rparen'>)</span>
|
309
305
|
<span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>Net</span><span class='op'>::</span><span class='const'>HTTP</span><span class='op'>::</span><span class='const'>Post</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
306
|
+
<span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='id identifier rubyid_authenticate'>authenticate</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span>
|
310
307
|
<span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span> <span class='op'>=</span> <span class='id identifier rubyid_data'>data</span>
|
311
308
|
<span class='id identifier rubyid_request'>request</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Content-Type</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span>
|
312
309
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>application/</span><span class='embexpr_beg'>#{</span><span class='const'>OpenPayU</span><span class='op'>::</span><span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_data_format'>data_format</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
313
|
-
<span class='id identifier rubyid_request'>request</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>OpenPayu-Signature</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_headers'>headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>OpenPayu-Signature</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
314
310
|
<span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='id identifier rubyid_http'>http</span><span class='period'>.</span><span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span>
|
315
311
|
<span class='lbrace'>{</span> <span class='label'>response:</span> <span class='id identifier rubyid_response'>response</span><span class='comma'>,</span> <span class='label'>request:</span> <span class='id identifier rubyid_request'>request</span> <span class='rbrace'>}</span>
|
316
312
|
<span class='kw'>end</span></pre>
|
@@ -322,7 +318,7 @@
|
|
322
318
|
<div class="method_details ">
|
323
319
|
<h3 class="signature " id="put-class_method">
|
324
320
|
|
325
|
-
+ (<tt>Object</tt>) <strong>put</strong>(
|
321
|
+
+ (<tt>Object</tt>) <strong>put</strong>(endpoint, data)
|
326
322
|
|
327
323
|
|
328
324
|
|
@@ -334,6 +330,8 @@
|
|
334
330
|
<pre class="lines">
|
335
331
|
|
336
332
|
|
333
|
+
21
|
334
|
+
22
|
337
335
|
23
|
338
336
|
24
|
339
337
|
25
|
@@ -341,24 +339,18 @@
|
|
341
339
|
27
|
342
340
|
28
|
343
341
|
29
|
344
|
-
30
|
345
|
-
31
|
346
|
-
32
|
347
|
-
33
|
348
|
-
34</pre>
|
342
|
+
30</pre>
|
349
343
|
</td>
|
350
344
|
<td>
|
351
|
-
<pre class="code"><span class="info file"># File 'lib/openpayu/connection.rb', line
|
345
|
+
<pre class="code"><span class="info file"># File 'lib/openpayu/connection.rb', line 21</span>
|
352
346
|
|
353
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_put'>put</span><span class='lparen'>(</span><span class='id identifier
|
354
|
-
<span class='id identifier
|
355
|
-
<span class='id identifier rubyid_http'>http</span> <span class='op'>=</span> <span class='const'>Net</span><span class='op'>::</span><span class='const'>HTTP</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_host'>host</span><span class='comma'>,</span> <span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_port'>port</span><span class='rparen'>)</span>
|
356
|
-
<span class='id identifier rubyid_http'>http</span><span class='period'>.</span><span class='id identifier rubyid_use_ssl'>use_ssl</span> <span class='op'>=</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='const'>OpenPayU</span><span class='op'>::</span><span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_use_ssl?'>use_ssl?</span>
|
347
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_put'>put</span><span class='lparen'>(</span><span class='id identifier rubyid_endpoint'>endpoint</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
348
|
+
<span class='id identifier rubyid_http'>http</span><span class='comma'>,</span> <span class='id identifier rubyid_uri'>uri</span> <span class='op'>=</span> <span class='id identifier rubyid_build_url'>build_url</span><span class='lparen'>(</span><span class='id identifier rubyid_endpoint'>endpoint</span><span class='rparen'>)</span>
|
357
349
|
<span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>Net</span><span class='op'>::</span><span class='const'>HTTP</span><span class='op'>::</span><span class='const'>Put</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
350
|
+
<span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='id identifier rubyid_authenticate'>authenticate</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span>
|
358
351
|
<span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span> <span class='op'>=</span> <span class='id identifier rubyid_data'>data</span>
|
359
352
|
<span class='id identifier rubyid_request'>request</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Content-Type</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span>
|
360
353
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>application/</span><span class='embexpr_beg'>#{</span><span class='const'>OpenPayU</span><span class='op'>::</span><span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_data_format'>data_format</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
361
|
-
<span class='id identifier rubyid_request'>request</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>OpenPayu-Signature</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_headers'>headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>OpenPayu-Signature</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
362
354
|
<span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='id identifier rubyid_http'>http</span><span class='period'>.</span><span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span>
|
363
355
|
<span class='lbrace'>{</span> <span class='label'>response:</span> <span class='id identifier rubyid_response'>response</span><span class='comma'>,</span> <span class='label'>request:</span> <span class='id identifier rubyid_request'>request</span> <span class='rbrace'>}</span>
|
364
356
|
<span class='kw'>end</span></pre>
|
@@ -372,9 +364,9 @@
|
|
372
364
|
</div>
|
373
365
|
|
374
366
|
<div id="footer">
|
375
|
-
Generated on
|
367
|
+
Generated on Thu May 29 15:13:58 2014 by
|
376
368
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
377
|
-
0.8.7.
|
369
|
+
0.8.7.4 (ruby-1.9.3).
|
378
370
|
</div>
|
379
371
|
|
380
372
|
</body>
|