yankl 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +7 -0
  2. data/lib/app/helpers/authorize_net_helper.rb +24 -0
  3. data/lib/authorize-net.rb +4 -0
  4. data/lib/authorize_net.rb +92 -0
  5. data/lib/authorize_net/addresses/address.rb +29 -0
  6. data/lib/authorize_net/addresses/shipping_address.rb +26 -0
  7. data/lib/authorize_net/aim/response.rb +131 -0
  8. data/lib/authorize_net/aim/transaction.rb +184 -0
  9. data/lib/authorize_net/arb/response.rb +34 -0
  10. data/lib/authorize_net/arb/subscription.rb +72 -0
  11. data/lib/authorize_net/arb/transaction.rb +146 -0
  12. data/lib/authorize_net/authorize_net.rb +154 -0
  13. data/lib/authorize_net/cim/customer_profile.rb +19 -0
  14. data/lib/authorize_net/cim/payment_profile.rb +37 -0
  15. data/lib/authorize_net/cim/response.rb +110 -0
  16. data/lib/authorize_net/cim/transaction.rb +678 -0
  17. data/lib/authorize_net/customer.rb +27 -0
  18. data/lib/authorize_net/email_receipt.rb +24 -0
  19. data/lib/authorize_net/fields.rb +736 -0
  20. data/lib/authorize_net/key_value_response.rb +117 -0
  21. data/lib/authorize_net/key_value_transaction.rb +297 -0
  22. data/lib/authorize_net/line_item.rb +25 -0
  23. data/lib/authorize_net/order.rb +42 -0
  24. data/lib/authorize_net/payment_methods/credit_card.rb +74 -0
  25. data/lib/authorize_net/payment_methods/echeck.rb +72 -0
  26. data/lib/authorize_net/reporting/batch.rb +19 -0
  27. data/lib/authorize_net/reporting/batch_statistics.rb +19 -0
  28. data/lib/authorize_net/reporting/fds_filter.rb +11 -0
  29. data/lib/authorize_net/reporting/response.rb +127 -0
  30. data/lib/authorize_net/reporting/transaction.rb +116 -0
  31. data/lib/authorize_net/reporting/transaction_details.rb +25 -0
  32. data/lib/authorize_net/response.rb +27 -0
  33. data/lib/authorize_net/sim/hosted_payment_form.rb +38 -0
  34. data/lib/authorize_net/sim/hosted_receipt_page.rb +37 -0
  35. data/lib/authorize_net/sim/response.rb +142 -0
  36. data/lib/authorize_net/sim/transaction.rb +138 -0
  37. data/lib/authorize_net/transaction.rb +66 -0
  38. data/lib/authorize_net/xml +65 -0
  39. data/lib/authorize_net/xml_response.rb +172 -0
  40. data/lib/authorize_net/xml_transaction.rb +277 -0
  41. data/lib/generators/authorize_net/direct_post_generator.rb +51 -0
  42. data/lib/generators/authorize_net/sim_generator.rb +47 -0
  43. data/lib/yankl.rb +4 -0
  44. metadata +105 -0
@@ -0,0 +1,51 @@
1
+ require 'rails/generators'
2
+ require 'rails/generators/named_base'
3
+
4
+ module AuthorizeNet
5
+ module Generators
6
+ class DirectPostGenerator < Rails::Generators::NamedBase
7
+ source_root File.expand_path("../../../../generators/authorize_net_direct_post/templates", __FILE__)
8
+ argument :api_login_id, :type => :string, :desc => 'Your Authorize.Net API login ID.', :optional => true
9
+ argument :api_transaction_key, :type => :string, :desc => 'Your Authorize.Net API transaction key.', :optional => true
10
+ argument :merchant_hash_value, :type => :string, :desc => 'Your Authorize.Net merchant hash value.', :optional => true
11
+ desc <<-DESC
12
+ Description
13
+ Generates a simple implementation of Authorize.Net's Direct Post Method integration method.
14
+
15
+ Example:
16
+ rails generate authorize_net:direct_post payments API_LOGIN_ID API_TRANSACTION_KEY MERCHANT_HASH_VALUE
17
+
18
+ This will create:
19
+ create README-AuthorizeNet
20
+ create app/views/payments
21
+ create app/views/payments/payment.erb
22
+ create app/views/payments/receipt.erb
23
+ create app/views/payments/relay_response.erb
24
+ create app/views/layouts/authorize_net.erb
25
+ create config/authorize_net.yml
26
+ create config/initializers/authorize_net.rb
27
+ create app/controllers/payments_controller.rb
28
+ route match '/payments/receipt', :to => 'payments#receipt', :as => 'payments_receipt', :via => [:get]
29
+ route match '/payments/relay_response', :to => 'payments#relay_response', :as => 'payments_relay_response', :via => [:post]
30
+ route match '/payments/payment', :to => 'payments#payment', :as => 'paymentspayment', :via => [:get]
31
+
32
+ DESC
33
+
34
+ def manifest
35
+ copy_file "README-AuthorizeNet", "README-AuthorizeNet"
36
+ empty_directory "app/views/#{file_name}"
37
+ copy_file "payment.rails3.erb", "app/views/#{file_name}/payment.erb"
38
+ copy_file "receipt.erb", "app/views/#{file_name}/receipt.erb"
39
+ copy_file "relay_response.erb", "app/views/#{file_name}/relay_response.erb"
40
+ copy_file "layout.erb", "app/views/layouts/authorize_net.erb"
41
+ template "config.yml.rails3.erb", "config/authorize_net.yml"
42
+ copy_file "initializer.rb", "config/initializers/authorize_net.rb"
43
+ template "controller.rb.erb", "app/controllers/#{file_name}_controller.rb"
44
+ route "match '/#{plural_name}/receipt', :to => '#{file_name}#receipt', :as => '#{singular_name}_receipt', :via => [:get]"
45
+ route "match '/#{plural_name}/relay_response', :to => '#{file_name}#relay_response', :as => '#{singular_name}_relay_response', :via => [:post]"
46
+ route "match '/#{plural_name}/payment', :to => '#{file_name}#payment', :as => '#{singular_name}payment', :via => [:get]"
47
+ end
48
+
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,47 @@
1
+ require 'rails/generators'
2
+ require 'rails/generators/named_base'
3
+
4
+ module AuthorizeNet
5
+ module Generators
6
+ class SimGenerator < Rails::Generators::NamedBase
7
+ source_root File.expand_path("../../../../generators/authorize_net_sim/templates", __FILE__)
8
+ argument :api_login_id, :type => :string, :desc => 'Your Authorize.Net API login ID.', :optional => true
9
+ argument :api_transaction_key, :type => :string, :desc => 'Your Authorize.Net API transaction key.', :optional => true
10
+ argument :merchant_hash_value, :type => :string, :desc => 'Your Authorize.Net merchant hash value.', :optional => true
11
+ desc <<-DESC
12
+ Description
13
+ Generates a simple implementation of Authorize.Net's SIM integration method.
14
+
15
+ Example:
16
+ rails generate authorize_net:sim payments API_LOGIN_ID API_TRANSACTION_KEY MERCHANT_HASH_VALUE
17
+
18
+ This will create:
19
+ create README-AuthorizeNet
20
+ create app/views/payments
21
+ create app/views/payments/payment.erb
22
+ create app/views/payments/thank_you.erb
23
+ create app/views/layouts/authorize_net.erb
24
+ create config/authorize_net.yml
25
+ create config/initializers/authorize_net.rb
26
+ create app/controllers/payments_controller.rb
27
+ route match '/payments/thank_you', :to => 'payments#thank_you', :as => 'payments_thank_you', :via => [:get]
28
+ route match '/payments/payment', :to => 'payments#payment', :as => 'paymentspayment', :via => [:get]
29
+
30
+ DESC
31
+
32
+ def manifest
33
+ copy_file "README-AuthorizeNet", "README-AuthorizeNet"
34
+ empty_directory "app/views/#{file_name}"
35
+ copy_file "payment.rails3.erb", "app/views/#{file_name}/payment.erb"
36
+ copy_file "thank_you.erb", "app/views/#{file_name}/thank_you.erb"
37
+ copy_file "layout.erb", "app/views/layouts/authorize_net.erb"
38
+ template "config.yml.rails3.erb", "config/authorize_net.yml"
39
+ copy_file "initializer.rb", "config/initializers/authorize_net.rb"
40
+ template "controller.rb.erb", "app/controllers/#{file_name}_controller.rb"
41
+ route "match '/#{plural_name}/thank_you', :to => '#{file_name}#thank_you', :as => '#{singular_name}_thank_you', :via => [:get]"
42
+ route "match '/#{plural_name}/payment', :to => '#{file_name}#payment', :as => '#{singular_name}payment', :via => [:get]"
43
+ end
44
+
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,4 @@
1
+ # This file is just here to avoid obnoxious gem name/require name issues. All this
2
+ # file does is require authorize_net.rb, the real initialization file.
3
+
4
+ require 'authorize_net'
metadata ADDED
@@ -0,0 +1,105 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: yankl
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Lab Zero
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-03-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: nokogiri
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.4'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.4.3
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.4'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.4.3
33
+ description: Karl was not a communist
34
+ email: ksondere@gmail.com, atarihomestar@gmail.com
35
+ executables: []
36
+ extensions: []
37
+ extra_rdoc_files: []
38
+ files:
39
+ - lib/app/helpers/authorize_net_helper.rb
40
+ - lib/authorize-net.rb
41
+ - lib/authorize_net.rb
42
+ - lib/authorize_net/addresses/address.rb
43
+ - lib/authorize_net/addresses/shipping_address.rb
44
+ - lib/authorize_net/aim/response.rb
45
+ - lib/authorize_net/aim/transaction.rb
46
+ - lib/authorize_net/arb/response.rb
47
+ - lib/authorize_net/arb/subscription.rb
48
+ - lib/authorize_net/arb/transaction.rb
49
+ - lib/authorize_net/authorize_net.rb
50
+ - lib/authorize_net/cim/customer_profile.rb
51
+ - lib/authorize_net/cim/payment_profile.rb
52
+ - lib/authorize_net/cim/response.rb
53
+ - lib/authorize_net/cim/transaction.rb
54
+ - lib/authorize_net/customer.rb
55
+ - lib/authorize_net/email_receipt.rb
56
+ - lib/authorize_net/fields.rb
57
+ - lib/authorize_net/key_value_response.rb
58
+ - lib/authorize_net/key_value_transaction.rb
59
+ - lib/authorize_net/line_item.rb
60
+ - lib/authorize_net/order.rb
61
+ - lib/authorize_net/payment_methods/credit_card.rb
62
+ - lib/authorize_net/payment_methods/echeck.rb
63
+ - lib/authorize_net/reporting/batch.rb
64
+ - lib/authorize_net/reporting/batch_statistics.rb
65
+ - lib/authorize_net/reporting/fds_filter.rb
66
+ - lib/authorize_net/reporting/response.rb
67
+ - lib/authorize_net/reporting/transaction.rb
68
+ - lib/authorize_net/reporting/transaction_details.rb
69
+ - lib/authorize_net/response.rb
70
+ - lib/authorize_net/sim/hosted_payment_form.rb
71
+ - lib/authorize_net/sim/hosted_receipt_page.rb
72
+ - lib/authorize_net/sim/response.rb
73
+ - lib/authorize_net/sim/transaction.rb
74
+ - lib/authorize_net/transaction.rb
75
+ - lib/authorize_net/xml
76
+ - lib/authorize_net/xml_response.rb
77
+ - lib/authorize_net/xml_transaction.rb
78
+ - lib/generators/authorize_net/direct_post_generator.rb
79
+ - lib/generators/authorize_net/sim_generator.rb
80
+ - lib/yankl.rb
81
+ homepage: http://rubygems.org/gems/authorize-net
82
+ licenses:
83
+ - nobody should use this thing right now
84
+ metadata: {}
85
+ post_install_message:
86
+ rdoc_options: []
87
+ require_paths:
88
+ - lib
89
+ required_ruby_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ required_rubygems_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ requirements: []
100
+ rubyforge_project:
101
+ rubygems_version: 2.2.1
102
+ signing_key:
103
+ specification_version: 4
104
+ summary: in honor of Karl Yankl
105
+ test_files: []