openpayu 0.0.2 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +5 -13
  2. data/README.md +26 -21
  3. data/doc/EmptyResponseError.html +4 -4
  4. data/doc/HttpStatusException.html +4 -4
  5. data/doc/NotImplementedException.html +4 -4
  6. data/doc/OpenPayU.html +13 -13
  7. data/doc/OpenPayU/Configuration.html +19 -17
  8. data/doc/OpenPayU/Connection.html +35 -43
  9. data/doc/OpenPayU/Document.html +24 -228
  10. data/doc/OpenPayU/Documents.html +4 -4
  11. data/doc/OpenPayU/Documents/Request.html +5 -5
  12. data/doc/OpenPayU/Documents/Response.html +72 -120
  13. data/doc/OpenPayU/Models.html +5 -5
  14. data/doc/OpenPayU/Models/Address.html +5 -6
  15. data/doc/OpenPayU/Models/Buyer.html +5 -6
  16. data/doc/OpenPayU/Models/Buyer/Delivery.html +5 -6
  17. data/doc/OpenPayU/Models/Card.html +5 -6
  18. data/doc/OpenPayU/Models/Fee.html +5 -6
  19. data/doc/OpenPayU/Models/Model.html +122 -207
  20. data/doc/OpenPayU/Models/NotifyResponse.html +5 -6
  21. data/doc/OpenPayU/Models/Order.html +8 -9
  22. data/doc/OpenPayU/Models/PayMethod.html +5 -6
  23. data/doc/OpenPayU/Models/Product.html +5 -6
  24. data/doc/OpenPayU/Models/Refund.html +13 -102
  25. data/doc/OpenPayU/Models/ShippingMethod.html +13 -14
  26. data/doc/OpenPayU/Models/StatusUpdate.html +5 -6
  27. data/doc/OpenPayU/Models/Token.html +5 -6
  28. data/doc/OpenPayU/Order.html +53 -89
  29. data/doc/OpenPayU/Refund.html +6 -18
  30. data/doc/OpenPayU/Token.html +4 -4
  31. data/doc/WrongConfigurationError.html +4 -4
  32. data/doc/WrongNotifyRequest.html +4 -4
  33. data/doc/WrongOrderParameters.html +4 -4
  34. data/doc/WrongSignatureException.html +4 -4
  35. data/doc/_index.html +13 -31
  36. data/doc/class_list.html +1 -1
  37. data/doc/css/style.css +2 -1
  38. data/doc/file.README.html +38 -30
  39. data/doc/frames.html +1 -1
  40. data/doc/index.html +38 -30
  41. data/doc/js/app.js +7 -2
  42. data/doc/method_list.html +78 -120
  43. data/doc/top-level-namespace.html +4 -4
  44. data/lib/openpayu.rb +0 -1
  45. data/lib/openpayu/configuration.rb +1 -0
  46. data/lib/openpayu/connection.rb +28 -19
  47. data/lib/openpayu/document.rb +2 -38
  48. data/lib/openpayu/documents/response.rb +9 -20
  49. data/lib/openpayu/models/model.rb +4 -25
  50. data/lib/openpayu/models/order.rb +0 -1
  51. data/lib/openpayu/models/refund.rb +5 -27
  52. data/lib/openpayu/models/shipping_method.rb +2 -2
  53. data/lib/openpayu/order.rb +7 -25
  54. data/lib/openpayu/refund.rb +1 -7
  55. data/lib/openpayu/version.rb +1 -1
  56. data/openpayu_ruby.gemspec +0 -4
  57. data/spec/cassettes/cancel_order.yml +17 -26
  58. data/spec/cassettes/create_order.yml +19 -29
  59. data/spec/cassettes/retrieve_order.yml +18 -27
  60. data/spec/cassettes/update_order.yml +19 -28
  61. data/spec/integration/order_spec.rb +65 -78
  62. data/spec/openpayu.yml +2 -2
  63. data/spec/spec_helper.rb +5 -5
  64. data/spec/test_objects/order.rb +31 -56
  65. data/spec/unit/configuration_spec.rb +1 -1
  66. data/spec/unit/models/order_spec.rb +4 -34
  67. data/spec/unit/openpayu_spec.rb +2 -5
  68. metadata +55 -87
  69. data/lib/openpayu/xml_builder.rb +0 -23
  70. data/spec/cassettes/refund_order.yml +0 -100
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Exception: WrongSignatureException
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.2
9
+ &mdash; 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#!" + escape(window.location.href);
20
+ framesUrl = "frames.html#!WrongSignatureException.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 Tue Dec 17 15:20:59 2013 by
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.2 (ruby-1.9.3).
119
+ 0.8.7.4 (ruby-1.9.3).
120
120
  </div>
121
121
 
122
122
  </body>
data/doc/_index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
6
  <title>
7
- Documentation by YARD 0.8.7.2
7
+ Documentation by YARD 0.8.7.4
8
8
 
9
9
  </title>
10
10
 
@@ -15,7 +15,7 @@
15
15
  <script type="text/javascript" charset="utf-8">
16
16
  hasFrames = window.top.frames.main ? true : false;
17
17
  relpath = '';
18
- framesUrl = "frames.html#!" + escape(window.location.href);
18
+ framesUrl = "frames.html#!_index.html";
19
19
  </script>
20
20
 
21
21
 
@@ -56,7 +56,7 @@
56
56
 
57
57
  <iframe id="search_frame"></iframe>
58
58
 
59
- <div id="content"><h1 class="noborder title">Documentation by YARD 0.8.7.2</h1>
59
+ <div id="content"><h1 class="noborder title">Documentation by YARD 0.8.7.4</h1>
60
60
  <div id="listing">
61
61
  <h1 class="alphaindex">Alphabetic Index</h1>
62
62
 
@@ -308,16 +308,16 @@
308
308
  <ul>
309
309
 
310
310
  <li>
311
- <span class='object_link'><a href="OpenPayU/Models/Refund.html" title="OpenPayU::Models::Refund (class)">Refund</a></span>
311
+ <span class='object_link'><a href="OpenPayU/Refund.html" title="OpenPayU::Refund (class)">Refund</a></span>
312
312
 
313
- <small>(OpenPayU::Models)</small>
313
+ <small>(OpenPayU)</small>
314
314
 
315
315
  </li>
316
316
 
317
317
  <li>
318
- <span class='object_link'><a href="OpenPayU/Refund.html" title="OpenPayU::Refund (class)">Refund</a></span>
318
+ <span class='object_link'><a href="OpenPayU/Models/Refund.html" title="OpenPayU::Models::Refund (class)">Refund</a></span>
319
319
 
320
- <small>(OpenPayU)</small>
320
+ <small>(OpenPayU::Models)</small>
321
321
 
322
322
  </li>
323
323
 
@@ -366,16 +366,16 @@
366
366
  <ul>
367
367
 
368
368
  <li>
369
- <span class='object_link'><a href="OpenPayU/Models/Token.html" title="OpenPayU::Models::Token (class)">Token</a></span>
369
+ <span class='object_link'><a href="OpenPayU/Token.html" title="OpenPayU::Token (class)">Token</a></span>
370
370
 
371
- <small>(OpenPayU::Models)</small>
371
+ <small>(OpenPayU)</small>
372
372
 
373
373
  </li>
374
374
 
375
375
  <li>
376
- <span class='object_link'><a href="OpenPayU/Token.html" title="OpenPayU::Token (class)">Token</a></span>
376
+ <span class='object_link'><a href="OpenPayU/Models/Token.html" title="OpenPayU::Models::Token (class)">Token</a></span>
377
377
 
378
- <small>(OpenPayU)</small>
378
+ <small>(OpenPayU::Models)</small>
379
379
 
380
380
  </li>
381
381
 
@@ -410,24 +410,6 @@
410
410
  </ul>
411
411
  </ul>
412
412
 
413
-
414
- </td><td valign='top' width="33%">
415
-
416
-
417
- <ul id="alpha_X" class="alpha">
418
- <li class="letter">X</li>
419
- <ul>
420
-
421
- <li>
422
- <span class='object_link'><a href="OpenPayU/XmlBuilder.html" title="OpenPayU::XmlBuilder (class)">XmlBuilder</a></span>
423
-
424
- <small>(OpenPayU)</small>
425
-
426
- </li>
427
-
428
- </ul>
429
- </ul>
430
-
431
413
  </td>
432
414
  </tr>
433
415
  </table>
@@ -437,9 +419,9 @@
437
419
  </div>
438
420
 
439
421
  <div id="footer">
440
- Generated on Tue Dec 17 15:20:57 2013 by
422
+ Generated on Thu May 29 15:13:55 2014 by
441
423
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
442
- 0.8.7.2 (ruby-1.9.3).
424
+ 0.8.7.4 (ruby-1.9.3).
443
425
  </div>
444
426
 
445
427
  </body>
data/doc/class_list.html CHANGED
@@ -46,7 +46,7 @@
46
46
 
47
47
  <ul id="full_list" class="class">
48
48
  <li><span class='object_link'><a href="top-level-namespace.html" title="Top Level Namespace (root)">Top Level Namespace</a></span></li>
49
- <li><span class='object_link'><a href="EmptyResponseError.html" title="EmptyResponseError (class)">EmptyResponseError</a></span> &lt; StandardError<small class='search_info'>Top Level Namespace</small></li><li><span class='object_link'><a href="HttpStatusException.html" title="HttpStatusException (class)">HttpStatusException</a></span> &lt; StandardError<small class='search_info'>Top Level Namespace</small></li><li><span class='object_link'><a href="NotImplementedException.html" title="NotImplementedException (class)">NotImplementedException</a></span> &lt; StandardError<small class='search_info'>Top Level Namespace</small></li><li><a class='toggle'></a> <span class='object_link'><a href="OpenPayU.html" title="OpenPayU (module)">OpenPayU</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><span class='object_link'><a href="OpenPayU/Configuration.html" title="OpenPayU::Configuration (class)">Configuration</a></span> &lt; Object<small class='search_info'>OpenPayU</small></li><li><span class='object_link'><a href="OpenPayU/Connection.html" title="OpenPayU::Connection (class)">Connection</a></span> &lt; Object<small class='search_info'>OpenPayU</small></li><li><span class='object_link'><a href="OpenPayU/Document.html" title="OpenPayU::Document (class)">Document</a></span> &lt; Object<small class='search_info'>OpenPayU</small></li><li><a class='toggle'></a> <span class='object_link'><a href="OpenPayU/Documents.html" title="OpenPayU::Documents (module)">Documents</a></span><small class='search_info'>OpenPayU</small></li><ul><li><span class='object_link'><a href="OpenPayU/Documents/Request.html" title="OpenPayU::Documents::Request (class)">Request</a></span> &lt; Document<small class='search_info'>OpenPayU::Documents</small></li><li><span class='object_link'><a href="OpenPayU/Documents/Response.html" title="OpenPayU::Documents::Response (class)">Response</a></span> &lt; Document<small class='search_info'>OpenPayU::Documents</small></li></ul><li><a class='toggle'></a> <span class='object_link'><a href="OpenPayU/Models.html" title="OpenPayU::Models (module)">Models</a></span><small class='search_info'>OpenPayU</small></li><ul><li><span class='object_link'><a href="OpenPayU/Models/Address.html" title="OpenPayU::Models::Address (class)">Address</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><li><a class='toggle'></a> <span class='object_link'><a href="OpenPayU/Models/Buyer.html" title="OpenPayU::Models::Buyer (class)">Buyer</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><ul><li><span class='object_link'><a href="OpenPayU/Models/Buyer/Delivery.html" title="OpenPayU::Models::Buyer::Delivery (class)">Delivery</a></span> &lt; Address<small class='search_info'>OpenPayU::Models::Buyer</small></li></ul><li><span class='object_link'><a href="OpenPayU/Models/Card.html" title="OpenPayU::Models::Card (class)">Card</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><li><span class='object_link'><a href="OpenPayU/Models/Fee.html" title="OpenPayU::Models::Fee (class)">Fee</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><li><span class='object_link'><a href="OpenPayU/Models/Model.html" title="OpenPayU::Models::Model (class)">Model</a></span> &lt; Object<small class='search_info'>OpenPayU::Models</small></li><li><span class='object_link'><a href="OpenPayU/Models/NotifyResponse.html" title="OpenPayU::Models::NotifyResponse (class)">NotifyResponse</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><li><span class='object_link'><a href="OpenPayU/Models/Order.html" title="OpenPayU::Models::Order (class)">Order</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><li><span class='object_link'><a href="OpenPayU/Models/PayMethod.html" title="OpenPayU::Models::PayMethod (class)">PayMethod</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><li><span class='object_link'><a href="OpenPayU/Models/Product.html" title="OpenPayU::Models::Product (class)">Product</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><li><span class='object_link'><a href="OpenPayU/Models/Refund.html" title="OpenPayU::Models::Refund (class)">Refund</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><li><span class='object_link'><a href="OpenPayU/Models/ShippingMethod.html" title="OpenPayU::Models::ShippingMethod (class)">ShippingMethod</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><li><span class='object_link'><a href="OpenPayU/Models/StatusUpdate.html" title="OpenPayU::Models::StatusUpdate (class)">StatusUpdate</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><li><span class='object_link'><a href="OpenPayU/Models/Token.html" title="OpenPayU::Models::Token (class)">Token</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li></ul><li><span class='object_link'><a href="OpenPayU/Order.html" title="OpenPayU::Order (class)">Order</a></span> &lt; Object<small class='search_info'>OpenPayU</small></li><li><span class='object_link'><a href="OpenPayU/Refund.html" title="OpenPayU::Refund (class)">Refund</a></span> &lt; Object<small class='search_info'>OpenPayU</small></li><li><span class='object_link'><a href="OpenPayU/Token.html" title="OpenPayU::Token (class)">Token</a></span> &lt; Object<small class='search_info'>OpenPayU</small></li><li><span class='object_link'><a href="OpenPayU/XmlBuilder.html" title="OpenPayU::XmlBuilder (class)">XmlBuilder</a></span> &lt; XmlMarkup<small class='search_info'>OpenPayU</small></li></ul><li><span class='object_link'><a href="WrongConfigurationError.html" title="WrongConfigurationError (class)">WrongConfigurationError</a></span> &lt; StandardError<small class='search_info'>Top Level Namespace</small></li><li><span class='object_link'><a href="WrongNotifyRequest.html" title="WrongNotifyRequest (class)">WrongNotifyRequest</a></span> &lt; StandardError<small class='search_info'>Top Level Namespace</small></li><li><span class='object_link'><a href="WrongOrderParameters.html" title="WrongOrderParameters (class)">WrongOrderParameters</a></span> &lt; StandardError<small class='search_info'>Top Level Namespace</small></li><li><span class='object_link'><a href="WrongSignatureException.html" title="WrongSignatureException (class)">WrongSignatureException</a></span> &lt; StandardError<small class='search_info'>Top Level Namespace</small></li>
49
+ <li><span class='object_link'><a href="EmptyResponseError.html" title="EmptyResponseError (class)">EmptyResponseError</a></span> &lt; StandardError<small class='search_info'>Top Level Namespace</small></li><li><span class='object_link'><a href="HttpStatusException.html" title="HttpStatusException (class)">HttpStatusException</a></span> &lt; StandardError<small class='search_info'>Top Level Namespace</small></li><li><span class='object_link'><a href="NotImplementedException.html" title="NotImplementedException (class)">NotImplementedException</a></span> &lt; StandardError<small class='search_info'>Top Level Namespace</small></li><li><a class='toggle'></a> <span class='object_link'><a href="OpenPayU.html" title="OpenPayU (module)">OpenPayU</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><span class='object_link'><a href="OpenPayU/Configuration.html" title="OpenPayU::Configuration (class)">Configuration</a></span> &lt; Object<small class='search_info'>OpenPayU</small></li><li><span class='object_link'><a href="OpenPayU/Connection.html" title="OpenPayU::Connection (class)">Connection</a></span> &lt; Object<small class='search_info'>OpenPayU</small></li><li><span class='object_link'><a href="OpenPayU/Document.html" title="OpenPayU::Document (class)">Document</a></span> &lt; Object<small class='search_info'>OpenPayU</small></li><li><a class='toggle'></a> <span class='object_link'><a href="OpenPayU/Documents.html" title="OpenPayU::Documents (module)">Documents</a></span><small class='search_info'>OpenPayU</small></li><ul><li><span class='object_link'><a href="OpenPayU/Documents/Request.html" title="OpenPayU::Documents::Request (class)">Request</a></span> &lt; Document<small class='search_info'>OpenPayU::Documents</small></li><li><span class='object_link'><a href="OpenPayU/Documents/Response.html" title="OpenPayU::Documents::Response (class)">Response</a></span> &lt; Document<small class='search_info'>OpenPayU::Documents</small></li></ul><li><a class='toggle'></a> <span class='object_link'><a href="OpenPayU/Models.html" title="OpenPayU::Models (module)">Models</a></span><small class='search_info'>OpenPayU</small></li><ul><li><span class='object_link'><a href="OpenPayU/Models/Address.html" title="OpenPayU::Models::Address (class)">Address</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><li><a class='toggle'></a> <span class='object_link'><a href="OpenPayU/Models/Buyer.html" title="OpenPayU::Models::Buyer (class)">Buyer</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><ul><li><span class='object_link'><a href="OpenPayU/Models/Buyer/Delivery.html" title="OpenPayU::Models::Buyer::Delivery (class)">Delivery</a></span> &lt; Address<small class='search_info'>OpenPayU::Models::Buyer</small></li></ul><li><span class='object_link'><a href="OpenPayU/Models/Card.html" title="OpenPayU::Models::Card (class)">Card</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><li><span class='object_link'><a href="OpenPayU/Models/Fee.html" title="OpenPayU::Models::Fee (class)">Fee</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><li><span class='object_link'><a href="OpenPayU/Models/Model.html" title="OpenPayU::Models::Model (class)">Model</a></span> &lt; Object<small class='search_info'>OpenPayU::Models</small></li><li><span class='object_link'><a href="OpenPayU/Models/NotifyResponse.html" title="OpenPayU::Models::NotifyResponse (class)">NotifyResponse</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><li><span class='object_link'><a href="OpenPayU/Models/Order.html" title="OpenPayU::Models::Order (class)">Order</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><li><span class='object_link'><a href="OpenPayU/Models/PayMethod.html" title="OpenPayU::Models::PayMethod (class)">PayMethod</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><li><span class='object_link'><a href="OpenPayU/Models/Product.html" title="OpenPayU::Models::Product (class)">Product</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><li><span class='object_link'><a href="OpenPayU/Models/Refund.html" title="OpenPayU::Models::Refund (class)">Refund</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><li><span class='object_link'><a href="OpenPayU/Models/ShippingMethod.html" title="OpenPayU::Models::ShippingMethod (class)">ShippingMethod</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><li><span class='object_link'><a href="OpenPayU/Models/StatusUpdate.html" title="OpenPayU::Models::StatusUpdate (class)">StatusUpdate</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li><li><span class='object_link'><a href="OpenPayU/Models/Token.html" title="OpenPayU::Models::Token (class)">Token</a></span> &lt; Model<small class='search_info'>OpenPayU::Models</small></li></ul><li><span class='object_link'><a href="OpenPayU/Order.html" title="OpenPayU::Order (class)">Order</a></span> &lt; Object<small class='search_info'>OpenPayU</small></li><li><span class='object_link'><a href="OpenPayU/Refund.html" title="OpenPayU::Refund (class)">Refund</a></span> &lt; Object<small class='search_info'>OpenPayU</small></li><li><span class='object_link'><a href="OpenPayU/Token.html" title="OpenPayU::Token (class)">Token</a></span> &lt; Object<small class='search_info'>OpenPayU</small></li></ul><li><span class='object_link'><a href="WrongConfigurationError.html" title="WrongConfigurationError (class)">WrongConfigurationError</a></span> &lt; StandardError<small class='search_info'>Top Level Namespace</small></li><li><span class='object_link'><a href="WrongNotifyRequest.html" title="WrongNotifyRequest (class)">WrongNotifyRequest</a></span> &lt; StandardError<small class='search_info'>Top Level Namespace</small></li><li><span class='object_link'><a href="WrongOrderParameters.html" title="WrongOrderParameters (class)">WrongOrderParameters</a></span> &lt; StandardError<small class='search_info'>Top Level Namespace</small></li><li><span class='object_link'><a href="WrongSignatureException.html" title="WrongSignatureException (class)">WrongSignatureException</a></span> &lt; StandardError<small class='search_info'>Top Level Namespace</small></li>
50
50
 
51
51
  </ul>
52
52
  </div>
data/doc/css/style.css CHANGED
@@ -291,6 +291,7 @@ li.r2 { background: #fafafa; }
291
291
  -moz-box-shadow: -2px 2px 6px #bbb;
292
292
  z-index: 5000;
293
293
  position: relative;
294
+ overflow-x: auto;
294
295
  }
295
296
  #toc.nofloat { float: none; max-width: none; border: none; padding: 0; margin: 20px 0; -webkit-box-shadow: none; -moz-box-shadow: none; }
296
297
  #toc.nofloat.hidden { padding: 0; background: 0; margin-bottom: 5px; }
@@ -324,9 +325,9 @@ pre.code .dot + pre.code .id,
324
325
  pre.code .rubyid_to_i pre.code .rubyid_each { color: #0085FF; }
325
326
  pre.code .comment { color: #0066FF; }
326
327
  pre.code .const, pre.code .constant { color: #585CF6; }
328
+ pre.code .label,
327
329
  pre.code .symbol { color: #C5060B; }
328
330
  pre.code .kw,
329
- pre.code .label,
330
331
  pre.code .rubyid_require,
331
332
  pre.code .rubyid_extend,
332
333
  pre.code .rubyid_include { color: #0000FF; }
data/doc/file.README.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: README
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.2
9
+ &mdash; 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#!" + escape(window.location.href);
20
+ framesUrl = "frames.html#!file.README.html";
21
21
  </script>
22
22
 
23
23
 
@@ -62,13 +62,10 @@
62
62
  <iframe id="search_frame"></iframe>
63
63
 
64
64
  <div id="content"><div id='filecontents'>
65
- <p><a
66
- href="https://magnum.travis-ci.com/PayU/openpayu_ruby_sdk.png?token=sqp5QvsmzqEqtVB3sNsK&branch=master">{Build
67
- Status</a>] <img
68
- src="https://codeclimate.com/repos/524eb044f3ea00329815dff1/badges/885c2d52f25c02295344/gpa.png"
69
- />]</p>
65
+ <p><a href="https://codeclimate.com/repos/524eb044f3ea00329815dff1/feed"><img
66
+ src="https://codeclimate.com/repos/524eb044f3ea00329815dff1/badges/885c2d52f25c02295344/gpa.png"></a></p>
70
67
 
71
- <h1 id="label-OpenpayuSdkRuby">OpenpayuSdkRuby</h1>
68
+ <h1 id="label-OpenPayU+Ruby">OpenPayU Ruby</h1>
72
69
 
73
70
  <p>The OpenPayU Ruby library provides integration access to the PayU Gateway
74
71
  API ver. 2.</p>
@@ -93,13 +90,12 @@ API ver. 2.</p>
93
90
  config/initializers/openpayu.rb containing:</p>
94
91
 
95
92
  <pre class="code ruby"><code class="ruby"><span class='const'>OpenPayU</span><span class='op'>::</span><span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_configure'>configure</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_config'>config</span><span class='op'>|</span>
96
- <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_merchant_pos_id'>merchant_pos_id</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>8389534</span><span class='tstring_end'>'</span></span>
97
- <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_signature_key'>signature_key</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>95873498573498573897fb42d</span><span class='tstring_end'>'</span></span>
93
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_merchant_pos_id'>merchant_pos_id</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>145227</span><span class='tstring_end'>'</span></span>
94
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_signature_key'>signature_key</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>13a980d4f851f3d9a1cfc792fb1f5e50</span><span class='tstring_end'>'</span></span>
98
95
  <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_algorithm'>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> <span class='comment'># MD5, SHA-1, SHA-256
99
96
  </span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_service_domain'>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>
100
97
  <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_protocol'>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>
101
- <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_data_format'>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> <span class='comment'># json, xml
102
- </span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_env'>env</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>secure</span><span class='tstring_end'>'</span></span>
98
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_env'>env</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>secure</span><span class='tstring_end'>'</span></span>
103
99
  <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_order_url'>order_url</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>http://localhost/order</span><span class='tstring_end'>'</span></span>
104
100
  <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_notify_url'>notify_url</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>http://localhost/notify</span><span class='tstring_end'>'</span></span>
105
101
  <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_continue_url'>continue_url</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>http://localhost/success</span><span class='tstring_end'>'</span></span>
@@ -113,23 +109,21 @@ config/initializers/openpayu.rb containing:</p>
113
109
  <p>Structure of YAML file:</p>
114
110
 
115
111
  <pre class="code ruby"><code class="ruby">development:
116
- merchant_pos_id: '8389534'
117
- signature_key: 95873498573498573897fb42d
112
+ merchant_pos_id: '145227'
113
+ signature_key: 13a980d4f851f3d9a1cfc792fb1f5e50
118
114
  algorithm: MD5 # MD5, SHA-1, SHA-256
119
115
  service_domain: payu.com
120
116
  protocol: https
121
- data_format: json # json, xml
122
117
  env: secure
123
118
  order_url: http://localhost/order
124
119
  notify_url: http://localhost/notify
125
120
  continue_url: http://localhost/success
126
121
  production:
127
- merchant_pos_id: '8389534'
128
- signature_key: 95873498573498573897fb42d
122
+ merchant_pos_id: '145227'
123
+ signature_key: 13a980d4f851f3d9a1cfc792fb1f5e50
129
124
  algorithm: MD5 # MD5, SHA-1, SHA-256
130
125
  service_domain: payu.com
131
126
  protocol: https
132
- data_format: json # json, xml
133
127
  env: secure
134
128
  order_url: http://localhost/order
135
129
  notify_url: http://localhost/notify
@@ -139,10 +133,12 @@ production:
139
133
 
140
134
  <h3 id="label-Creating+Transparent+order">Creating Transparent order</h3>
141
135
 
142
- <p>To create an order you must provide a Hash with order:</p>
136
+ <p>For more information about order please refer to: <a
137
+ href="http://developers.payu.com/pl/restapi.html#payusdk_creating_new_order_api">developers.payu.com/pl/restapi.html#payusdk_creating_new_order_api</a>
138
+ . To create an order you must provide a Hash with order:</p>
143
139
 
144
140
  <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_order'>order</span> <span class='op'>=</span> <span class='lbrace'>{</span>
145
- <span class='label'>merchant_pos_id:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>8389534</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
141
+ <span class='label'>merchant_pos_id:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>145227</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
146
142
  <span class='label'>customer_ip:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>127.0.0.1</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='comment'># You can user request.remote_ip in your controller
147
143
  </span> <span class='label'>ext_order_id:</span> <span class='int'>1342</span><span class='comma'>,</span> <span class='comment'>#Order id in your system
148
144
  </span> <span class='label'>order_url:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://localhost/</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
@@ -151,14 +147,18 @@ production:
151
147
  <span class='label'>total_amount:</span> <span class='int'>10000</span><span class='comma'>,</span>
152
148
  <span class='label'>notify_url:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://localhost/</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
153
149
  <span class='label'>continue_url:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://localhost/</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
154
- <span class='label'>validity_time:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>48000</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
155
150
  <span class='label'>buyer:</span> <span class='lbrace'>{</span>
156
151
  <span class='label'>email:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>dd@ddd.pl</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
157
152
  <span class='label'>phone:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>123123123</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
158
153
  <span class='label'>first_name:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Jan</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
159
154
  <span class='label'>last_name:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Kowalski</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
160
155
  <span class='label'>language:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>pl_PL</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
161
- <span class='label'>NIN:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>123456</span><span class='tstring_end'>&quot;</span></span>
156
+ <span class='label'>delivery:</span> <span class='lbrace'>{</span>
157
+ <span class='label'>street:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>street</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
158
+ <span class='label'>postal_code:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>postal_code</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
159
+ <span class='label'>city:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>city</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
160
+ <span class='label'>country_code:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>PL</span><span class='tstring_end'>'</span></span>
161
+ <span class='rbrace'>}</span>
162
162
  <span class='rbrace'>}</span><span class='comma'>,</span>
163
163
  <span class='label'>products:</span> <span class='lbracket'>[</span>
164
164
  <span class='lbrace'>{</span>
@@ -167,12 +167,11 @@ production:
167
167
  <span class='label'>quantity:</span> <span class='int'>1</span>
168
168
  <span class='rbrace'>}</span>
169
169
  <span class='rbracket'>]</span><span class='comma'>,</span>
170
- <span class='label'>pay_methods:</span> <span class='lbracket'>[</span>
171
- <span class='lbrace'>{</span>
172
- <span class='label'>type:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>CARD_TOKEN</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
173
- <span class='label'>value:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Token value</span><span class='tstring_end'>'</span></span>
174
- <span class='rbrace'>}</span>
175
- <span class='rbracket'>]</span>
170
+ <span class='label'>shipping_method:</span> <span class='lbrace'>{</span>
171
+ <span class='label'>country:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>PL</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
172
+ <span class='label'>price:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>price</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
173
+ <span class='label'>name:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>shipping name</span><span class='tstring_end'>'</span></span>
174
+ <span class='rbrace'>}</span>
176
175
  <span class='rbrace'>}</span></code></pre>
177
176
 
178
177
  <p>When you have ready order Hash you can create new order:</p>
@@ -257,6 +256,15 @@ turned off</p>
257
256
  </span> <span class='label'>currency_code:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>PLN</span><span class='tstring_end'>&quot;</span></span> <span class='comment'>#optional
258
257
  </span><span class='rbrace'>}</span><span class='rparen'>)</span></code></pre>
259
258
 
259
+ <h2 id="label-Changelog">Changelog</h2>
260
+
261
+ <p>0.1.2</p>
262
+ <ul><li>
263
+ <p>Gem adjusted to OpenPayU REST API v 2.0</p>
264
+ </li><li>
265
+ <p>Communication with OpenPayU only in JSON format, XML is no longer supported</p>
266
+ </li></ul>
267
+
260
268
  <h2 id="label-Contributing">Contributing</h2>
261
269
  <ol><li>
262
270
  <p>Fork it</p>
@@ -272,9 +280,9 @@ turned off</p>
272
280
  </div></div>
273
281
 
274
282
  <div id="footer">
275
- Generated on Tue Dec 17 15:20:58 2013 by
283
+ Generated on Thu May 29 15:13:57 2014 by
276
284
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
277
- 0.8.7.2 (ruby-1.9.3).
285
+ 0.8.7.4 (ruby-1.9.3).
278
286
  </div>
279
287
 
280
288
  </body>
data/doc/frames.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
5
  <head>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7
- <title>Documentation by YARD 0.8.7.2</title>
7
+ <title>Documentation by YARD 0.8.7.4</title>
8
8
  </head>
9
9
  <script type="text/javascript" charset="utf-8">
10
10
  window.onload = function() {
data/doc/index.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: README
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.2
9
+ &mdash; 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#!" + escape(window.location.href);
20
+ framesUrl = "frames.html#!file.README.html";
21
21
  </script>
22
22
 
23
23
 
@@ -62,13 +62,10 @@
62
62
  <iframe id="search_frame"></iframe>
63
63
 
64
64
  <div id="content"><div id='filecontents'>
65
- <p><a
66
- href="https://magnum.travis-ci.com/PayU/openpayu_ruby_sdk.png?token=sqp5QvsmzqEqtVB3sNsK&branch=master">{Build
67
- Status</a>] <img
68
- src="https://codeclimate.com/repos/524eb044f3ea00329815dff1/badges/885c2d52f25c02295344/gpa.png"
69
- />]</p>
65
+ <p><a href="https://codeclimate.com/repos/524eb044f3ea00329815dff1/feed"><img
66
+ src="https://codeclimate.com/repos/524eb044f3ea00329815dff1/badges/885c2d52f25c02295344/gpa.png"></a></p>
70
67
 
71
- <h1 id="label-OpenpayuSdkRuby">OpenpayuSdkRuby</h1>
68
+ <h1 id="label-OpenPayU+Ruby">OpenPayU Ruby</h1>
72
69
 
73
70
  <p>The OpenPayU Ruby library provides integration access to the PayU Gateway
74
71
  API ver. 2.</p>
@@ -93,13 +90,12 @@ API ver. 2.</p>
93
90
  config/initializers/openpayu.rb containing:</p>
94
91
 
95
92
  <pre class="code ruby"><code class="ruby"><span class='const'>OpenPayU</span><span class='op'>::</span><span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_configure'>configure</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_config'>config</span><span class='op'>|</span>
96
- <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_merchant_pos_id'>merchant_pos_id</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>8389534</span><span class='tstring_end'>'</span></span>
97
- <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_signature_key'>signature_key</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>95873498573498573897fb42d</span><span class='tstring_end'>'</span></span>
93
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_merchant_pos_id'>merchant_pos_id</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>145227</span><span class='tstring_end'>'</span></span>
94
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_signature_key'>signature_key</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>13a980d4f851f3d9a1cfc792fb1f5e50</span><span class='tstring_end'>'</span></span>
98
95
  <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_algorithm'>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> <span class='comment'># MD5, SHA-1, SHA-256
99
96
  </span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_service_domain'>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>
100
97
  <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_protocol'>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>
101
- <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_data_format'>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> <span class='comment'># json, xml
102
- </span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_env'>env</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>secure</span><span class='tstring_end'>'</span></span>
98
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_env'>env</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>secure</span><span class='tstring_end'>'</span></span>
103
99
  <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_order_url'>order_url</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>http://localhost/order</span><span class='tstring_end'>'</span></span>
104
100
  <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_notify_url'>notify_url</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>http://localhost/notify</span><span class='tstring_end'>'</span></span>
105
101
  <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_continue_url'>continue_url</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>http://localhost/success</span><span class='tstring_end'>'</span></span>
@@ -113,23 +109,21 @@ config/initializers/openpayu.rb containing:</p>
113
109
  <p>Structure of YAML file:</p>
114
110
 
115
111
  <pre class="code ruby"><code class="ruby">development:
116
- merchant_pos_id: '8389534'
117
- signature_key: 95873498573498573897fb42d
112
+ merchant_pos_id: '145227'
113
+ signature_key: 13a980d4f851f3d9a1cfc792fb1f5e50
118
114
  algorithm: MD5 # MD5, SHA-1, SHA-256
119
115
  service_domain: payu.com
120
116
  protocol: https
121
- data_format: json # json, xml
122
117
  env: secure
123
118
  order_url: http://localhost/order
124
119
  notify_url: http://localhost/notify
125
120
  continue_url: http://localhost/success
126
121
  production:
127
- merchant_pos_id: '8389534'
128
- signature_key: 95873498573498573897fb42d
122
+ merchant_pos_id: '145227'
123
+ signature_key: 13a980d4f851f3d9a1cfc792fb1f5e50
129
124
  algorithm: MD5 # MD5, SHA-1, SHA-256
130
125
  service_domain: payu.com
131
126
  protocol: https
132
- data_format: json # json, xml
133
127
  env: secure
134
128
  order_url: http://localhost/order
135
129
  notify_url: http://localhost/notify
@@ -139,10 +133,12 @@ production:
139
133
 
140
134
  <h3 id="label-Creating+Transparent+order">Creating Transparent order</h3>
141
135
 
142
- <p>To create an order you must provide a Hash with order:</p>
136
+ <p>For more information about order please refer to: <a
137
+ href="http://developers.payu.com/pl/restapi.html#payusdk_creating_new_order_api">developers.payu.com/pl/restapi.html#payusdk_creating_new_order_api</a>
138
+ . To create an order you must provide a Hash with order:</p>
143
139
 
144
140
  <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_order'>order</span> <span class='op'>=</span> <span class='lbrace'>{</span>
145
- <span class='label'>merchant_pos_id:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>8389534</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
141
+ <span class='label'>merchant_pos_id:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>145227</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
146
142
  <span class='label'>customer_ip:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>127.0.0.1</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='comment'># You can user request.remote_ip in your controller
147
143
  </span> <span class='label'>ext_order_id:</span> <span class='int'>1342</span><span class='comma'>,</span> <span class='comment'>#Order id in your system
148
144
  </span> <span class='label'>order_url:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://localhost/</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
@@ -151,14 +147,18 @@ production:
151
147
  <span class='label'>total_amount:</span> <span class='int'>10000</span><span class='comma'>,</span>
152
148
  <span class='label'>notify_url:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://localhost/</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
153
149
  <span class='label'>continue_url:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://localhost/</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
154
- <span class='label'>validity_time:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>48000</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
155
150
  <span class='label'>buyer:</span> <span class='lbrace'>{</span>
156
151
  <span class='label'>email:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>dd@ddd.pl</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
157
152
  <span class='label'>phone:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>123123123</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
158
153
  <span class='label'>first_name:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Jan</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
159
154
  <span class='label'>last_name:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Kowalski</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
160
155
  <span class='label'>language:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>pl_PL</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
161
- <span class='label'>NIN:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>123456</span><span class='tstring_end'>&quot;</span></span>
156
+ <span class='label'>delivery:</span> <span class='lbrace'>{</span>
157
+ <span class='label'>street:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>street</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
158
+ <span class='label'>postal_code:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>postal_code</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
159
+ <span class='label'>city:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>city</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
160
+ <span class='label'>country_code:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>PL</span><span class='tstring_end'>'</span></span>
161
+ <span class='rbrace'>}</span>
162
162
  <span class='rbrace'>}</span><span class='comma'>,</span>
163
163
  <span class='label'>products:</span> <span class='lbracket'>[</span>
164
164
  <span class='lbrace'>{</span>
@@ -167,12 +167,11 @@ production:
167
167
  <span class='label'>quantity:</span> <span class='int'>1</span>
168
168
  <span class='rbrace'>}</span>
169
169
  <span class='rbracket'>]</span><span class='comma'>,</span>
170
- <span class='label'>pay_methods:</span> <span class='lbracket'>[</span>
171
- <span class='lbrace'>{</span>
172
- <span class='label'>type:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>CARD_TOKEN</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
173
- <span class='label'>value:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Token value</span><span class='tstring_end'>'</span></span>
174
- <span class='rbrace'>}</span>
175
- <span class='rbracket'>]</span>
170
+ <span class='label'>shipping_method:</span> <span class='lbrace'>{</span>
171
+ <span class='label'>country:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>PL</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
172
+ <span class='label'>price:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>price</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
173
+ <span class='label'>name:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>shipping name</span><span class='tstring_end'>'</span></span>
174
+ <span class='rbrace'>}</span>
176
175
  <span class='rbrace'>}</span></code></pre>
177
176
 
178
177
  <p>When you have ready order Hash you can create new order:</p>
@@ -257,6 +256,15 @@ turned off</p>
257
256
  </span> <span class='label'>currency_code:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>PLN</span><span class='tstring_end'>&quot;</span></span> <span class='comment'>#optional
258
257
  </span><span class='rbrace'>}</span><span class='rparen'>)</span></code></pre>
259
258
 
259
+ <h2 id="label-Changelog">Changelog</h2>
260
+
261
+ <p>0.1.2</p>
262
+ <ul><li>
263
+ <p>Gem adjusted to OpenPayU REST API v 2.0</p>
264
+ </li><li>
265
+ <p>Communication with OpenPayU only in JSON format, XML is no longer supported</p>
266
+ </li></ul>
267
+
260
268
  <h2 id="label-Contributing">Contributing</h2>
261
269
  <ol><li>
262
270
  <p>Fork it</p>
@@ -272,9 +280,9 @@ turned off</p>
272
280
  </div></div>
273
281
 
274
282
  <div id="footer">
275
- Generated on Tue Dec 17 15:20:58 2013 by
283
+ Generated on Thu May 29 15:13:56 2014 by
276
284
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
277
- 0.8.7.2 (ruby-1.9.3).
285
+ 0.8.7.4 (ruby-1.9.3).
278
286
  </div>
279
287
 
280
288
  </body>