active_merchant_webpay 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. data/.gitignore +3 -0
  2. data/Gemfile +4 -0
  3. data/README.rdoc +4 -0
  4. data/Rakefile +2 -0
  5. data/active_merchant_webpay.gemspec +22 -0
  6. data/example/.gitignore +4 -0
  7. data/example/Gemfile +4 -0
  8. data/example/Gemfile.lock +84 -0
  9. data/example/README +256 -0
  10. data/example/Rakefile +7 -0
  11. data/example/app/controllers/application_controller.rb +3 -0
  12. data/example/app/controllers/buy_controller.rb +30 -0
  13. data/example/app/helpers/application_helper.rb +2 -0
  14. data/example/app/helpers/buy_helper.rb +2 -0
  15. data/example/app/views/buy/index.html.erb +14 -0
  16. data/example/app/views/layouts/application.html.erb +14 -0
  17. data/example/config.ru +4 -0
  18. data/example/config/application.rb +27 -0
  19. data/example/config/boot.rb +13 -0
  20. data/example/config/environment.rb +5 -0
  21. data/example/config/environments/development.rb +26 -0
  22. data/example/config/environments/production.rb +49 -0
  23. data/example/config/environments/test.rb +35 -0
  24. data/example/config/initializers/backtrace_silencers.rb +7 -0
  25. data/example/config/initializers/inflections.rb +10 -0
  26. data/example/config/initializers/mime_types.rb +5 -0
  27. data/example/config/initializers/secret_token.rb +7 -0
  28. data/example/config/initializers/session_store.rb +8 -0
  29. data/example/config/locales/en.yml +5 -0
  30. data/example/config/routes.rb +7 -0
  31. data/example/db/seeds.rb +7 -0
  32. data/example/doc/README_FOR_APP +2 -0
  33. data/example/lib/tasks/.gitkeep +0 -0
  34. data/example/public/404.html +26 -0
  35. data/example/public/422.html +26 -0
  36. data/example/public/500.html +26 -0
  37. data/example/public/favicon.ico +0 -0
  38. data/example/public/images/rails.png +0 -0
  39. data/example/public/javascripts/.gitkeep +0 -0
  40. data/example/public/javascripts/application.js +0 -0
  41. data/example/public/robots.txt +5 -0
  42. data/example/public/stylesheets/.gitkeep +0 -0
  43. data/example/script/rails +6 -0
  44. data/example/vendor/plugins/.gitkeep +0 -0
  45. data/example/vendor/webpay/datos/tbk_config.dat +15 -0
  46. data/example/vendor/webpay/datos/tbk_param.txt +71 -0
  47. data/example/vendor/webpay/datos/tbk_trace.dat +15 -0
  48. data/example/vendor/webpay/maestros/privada.pem +15 -0
  49. data/example/vendor/webpay/tbk_bp_pago.cgi +0 -0
  50. data/example/vendor/webpay/tbk_bp_resultado.cgi +0 -0
  51. data/example/vendor/webpay/tbk_check_mac.cgi +0 -0
  52. data/example/vendor/webpay/template/leeme.txt +15 -0
  53. data/example/vendor/webpay/template/reintento.html +1 -0
  54. data/example/vendor/webpay/template/transicion.html +132 -0
  55. data/lib/active_merchant/billing/integrations/webpay.rb +23 -0
  56. data/lib/active_merchant/billing/integrations/webpay/helper.rb +25 -0
  57. data/lib/active_merchant/billing/integrations/webpay/middleware.rb +86 -0
  58. data/lib/active_merchant/billing/integrations/webpay/notification.rb +116 -0
  59. data/lib/active_merchant/billing/integrations/webpay/railtie.rb +13 -0
  60. data/lib/active_merchant/billing/integrations/webpay/version.rb +9 -0
  61. data/lib/active_merchant_webpay.rb +2 -0
  62. metadata +139 -0
@@ -0,0 +1,13 @@
1
+ module ActiveMerchant #:nodoc:
2
+ module Billing #:nodoc:
3
+ module Integrations #:nodoc:
4
+ module Webpay
5
+ class Railtie < Rails::Railtie
6
+ initializer "load configuration" do
7
+ ActiveMerchant::Billing::Integrations::Webpay.cgis_root = Rails.root.join("vendor", "webpay").to_s
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,9 @@
1
+ module ActiveMerchant #:nodoc:
2
+ module Billing #:nodoc:
3
+ module Integrations #:nodoc:
4
+ module Webpay
5
+ VERSION = "0.0.1"
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,2 @@
1
+ require 'active_merchant'
2
+ require "active_merchant/billing/integrations/webpay"
metadata ADDED
@@ -0,0 +1,139 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: active_merchant_webpay
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 1
9
+ version: 0.0.1
10
+ platform: ruby
11
+ authors:
12
+ - "Sebasti\xC3\xA1n Gamboa"
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2011-01-25 00:00:00 -03:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: activemerchant
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 1
30
+ - 10
31
+ - 0
32
+ version: 1.10.0
33
+ type: :runtime
34
+ version_requirements: *id001
35
+ description: ActiveMerchant integration for Transbank's Webpay service
36
+ email:
37
+ - seba@welcu.com
38
+ executables: []
39
+
40
+ extensions: []
41
+
42
+ extra_rdoc_files: []
43
+
44
+ files:
45
+ - .gitignore
46
+ - Gemfile
47
+ - README.rdoc
48
+ - Rakefile
49
+ - active_merchant_webpay.gemspec
50
+ - example/.gitignore
51
+ - example/Gemfile
52
+ - example/Gemfile.lock
53
+ - example/README
54
+ - example/Rakefile
55
+ - example/app/controllers/application_controller.rb
56
+ - example/app/controllers/buy_controller.rb
57
+ - example/app/helpers/application_helper.rb
58
+ - example/app/helpers/buy_helper.rb
59
+ - example/app/views/buy/index.html.erb
60
+ - example/app/views/layouts/application.html.erb
61
+ - example/config.ru
62
+ - example/config/application.rb
63
+ - example/config/boot.rb
64
+ - example/config/environment.rb
65
+ - example/config/environments/development.rb
66
+ - example/config/environments/production.rb
67
+ - example/config/environments/test.rb
68
+ - example/config/initializers/backtrace_silencers.rb
69
+ - example/config/initializers/inflections.rb
70
+ - example/config/initializers/mime_types.rb
71
+ - example/config/initializers/secret_token.rb
72
+ - example/config/initializers/session_store.rb
73
+ - example/config/locales/en.yml
74
+ - example/config/routes.rb
75
+ - example/db/seeds.rb
76
+ - example/doc/README_FOR_APP
77
+ - example/lib/tasks/.gitkeep
78
+ - example/public/404.html
79
+ - example/public/422.html
80
+ - example/public/500.html
81
+ - example/public/favicon.ico
82
+ - example/public/images/rails.png
83
+ - example/public/javascripts/.gitkeep
84
+ - example/public/javascripts/application.js
85
+ - example/public/robots.txt
86
+ - example/public/stylesheets/.gitkeep
87
+ - example/script/rails
88
+ - example/vendor/plugins/.gitkeep
89
+ - example/vendor/webpay/datos/tbk_config.dat
90
+ - example/vendor/webpay/datos/tbk_param.txt
91
+ - example/vendor/webpay/datos/tbk_trace.dat
92
+ - example/vendor/webpay/maestros/privada.pem
93
+ - example/vendor/webpay/tbk_bp_pago.cgi
94
+ - example/vendor/webpay/tbk_bp_resultado.cgi
95
+ - example/vendor/webpay/tbk_check_mac.cgi
96
+ - example/vendor/webpay/template/leeme.txt
97
+ - example/vendor/webpay/template/reintento.html
98
+ - example/vendor/webpay/template/transicion.html
99
+ - lib/active_merchant/billing/integrations/webpay.rb
100
+ - lib/active_merchant/billing/integrations/webpay/helper.rb
101
+ - lib/active_merchant/billing/integrations/webpay/middleware.rb
102
+ - lib/active_merchant/billing/integrations/webpay/notification.rb
103
+ - lib/active_merchant/billing/integrations/webpay/railtie.rb
104
+ - lib/active_merchant/billing/integrations/webpay/version.rb
105
+ - lib/active_merchant_webpay.rb
106
+ has_rdoc: true
107
+ homepage: ""
108
+ licenses: []
109
+
110
+ post_install_message:
111
+ rdoc_options: []
112
+
113
+ require_paths:
114
+ - lib
115
+ required_ruby_version: !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ segments:
121
+ - 0
122
+ version: "0"
123
+ required_rubygems_version: !ruby/object:Gem::Requirement
124
+ none: false
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ segments:
129
+ - 0
130
+ version: "0"
131
+ requirements: []
132
+
133
+ rubyforge_project:
134
+ rubygems_version: 1.3.7
135
+ signing_key:
136
+ specification_version: 3
137
+ summary: ActiveMerchant integration for Transbank's Webpay service
138
+ test_files: []
139
+