authorizenet 1.8.0
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.
- checksums.yaml +7 -0
- data/lib/app/helpers/authorize_net_helper.rb +24 -0
- data/lib/authorize_net.rb +92 -0
- data/lib/authorize_net/addresses/address.rb +29 -0
- data/lib/authorize_net/addresses/shipping_address.rb +26 -0
- data/lib/authorize_net/aim/response.rb +131 -0
- data/lib/authorize_net/aim/transaction.rb +184 -0
- data/lib/authorize_net/arb/response.rb +34 -0
- data/lib/authorize_net/arb/subscription.rb +72 -0
- data/lib/authorize_net/arb/transaction.rb +146 -0
- data/lib/authorize_net/authorize_net.rb +154 -0
- data/lib/authorize_net/cim/customer_profile.rb +19 -0
- data/lib/authorize_net/cim/payment_profile.rb +37 -0
- data/lib/authorize_net/cim/response.rb +110 -0
- data/lib/authorize_net/cim/transaction.rb +678 -0
- data/lib/authorize_net/customer.rb +27 -0
- data/lib/authorize_net/email_receipt.rb +24 -0
- data/lib/authorize_net/fields.rb +736 -0
- data/lib/authorize_net/key_value_response.rb +117 -0
- data/lib/authorize_net/key_value_transaction.rb +291 -0
- data/lib/authorize_net/line_item.rb +25 -0
- data/lib/authorize_net/order.rb +42 -0
- data/lib/authorize_net/payment_methods/credit_card.rb +74 -0
- data/lib/authorize_net/payment_methods/echeck.rb +72 -0
- data/lib/authorize_net/reporting/batch.rb +19 -0
- data/lib/authorize_net/reporting/batch_statistics.rb +19 -0
- data/lib/authorize_net/reporting/fds_filter.rb +11 -0
- data/lib/authorize_net/reporting/response.rb +127 -0
- data/lib/authorize_net/reporting/transaction.rb +116 -0
- data/lib/authorize_net/reporting/transaction_details.rb +25 -0
- data/lib/authorize_net/response.rb +27 -0
- data/lib/authorize_net/sim/hosted_payment_form.rb +38 -0
- data/lib/authorize_net/sim/hosted_receipt_page.rb +37 -0
- data/lib/authorize_net/sim/response.rb +142 -0
- data/lib/authorize_net/sim/transaction.rb +138 -0
- data/lib/authorize_net/transaction.rb +66 -0
- data/lib/authorize_net/xml_response.rb +172 -0
- data/lib/authorize_net/xml_transaction.rb +275 -0
- data/lib/authorizenet.rb +4 -0
- data/lib/generators/authorize_net/direct_post_generator.rb +51 -0
- data/lib/generators/authorize_net/sim_generator.rb +47 -0
- metadata +104 -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
|
metadata
ADDED
@@ -0,0 +1,104 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: authorizenet
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.8.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Authorize.Net
|
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: Authorize.Net SDK includes standard payments, recurring billing, and
|
34
|
+
customer profiles
|
35
|
+
email: developer@authorize.net
|
36
|
+
executables: []
|
37
|
+
extensions: []
|
38
|
+
extra_rdoc_files: []
|
39
|
+
files:
|
40
|
+
- lib/app/helpers/authorize_net_helper.rb
|
41
|
+
- lib/authorize_net/addresses/address.rb
|
42
|
+
- lib/authorize_net/addresses/shipping_address.rb
|
43
|
+
- lib/authorize_net/aim/response.rb
|
44
|
+
- lib/authorize_net/aim/transaction.rb
|
45
|
+
- lib/authorize_net/arb/response.rb
|
46
|
+
- lib/authorize_net/arb/subscription.rb
|
47
|
+
- lib/authorize_net/arb/transaction.rb
|
48
|
+
- lib/authorize_net/authorize_net.rb
|
49
|
+
- lib/authorize_net/cim/customer_profile.rb
|
50
|
+
- lib/authorize_net/cim/payment_profile.rb
|
51
|
+
- lib/authorize_net/cim/response.rb
|
52
|
+
- lib/authorize_net/cim/transaction.rb
|
53
|
+
- lib/authorize_net/customer.rb
|
54
|
+
- lib/authorize_net/email_receipt.rb
|
55
|
+
- lib/authorize_net/fields.rb
|
56
|
+
- lib/authorize_net/key_value_response.rb
|
57
|
+
- lib/authorize_net/key_value_transaction.rb
|
58
|
+
- lib/authorize_net/line_item.rb
|
59
|
+
- lib/authorize_net/order.rb
|
60
|
+
- lib/authorize_net/payment_methods/credit_card.rb
|
61
|
+
- lib/authorize_net/payment_methods/echeck.rb
|
62
|
+
- lib/authorize_net/reporting/batch.rb
|
63
|
+
- lib/authorize_net/reporting/batch_statistics.rb
|
64
|
+
- lib/authorize_net/reporting/fds_filter.rb
|
65
|
+
- lib/authorize_net/reporting/response.rb
|
66
|
+
- lib/authorize_net/reporting/transaction.rb
|
67
|
+
- lib/authorize_net/reporting/transaction_details.rb
|
68
|
+
- lib/authorize_net/response.rb
|
69
|
+
- lib/authorize_net/sim/hosted_payment_form.rb
|
70
|
+
- lib/authorize_net/sim/hosted_receipt_page.rb
|
71
|
+
- lib/authorize_net/sim/response.rb
|
72
|
+
- lib/authorize_net/sim/transaction.rb
|
73
|
+
- lib/authorize_net/transaction.rb
|
74
|
+
- lib/authorize_net/xml_response.rb
|
75
|
+
- lib/authorize_net/xml_transaction.rb
|
76
|
+
- lib/authorize_net.rb
|
77
|
+
- lib/authorizenet.rb
|
78
|
+
- lib/generators/authorize_net/direct_post_generator.rb
|
79
|
+
- lib/generators/authorize_net/sim_generator.rb
|
80
|
+
homepage: https://github.com/AuthorizeNet/sdk-ruby
|
81
|
+
licenses:
|
82
|
+
- https://github.com/AuthorizeNet/sdk-ruby/blob/master/license.txt
|
83
|
+
metadata: {}
|
84
|
+
post_install_message:
|
85
|
+
rdoc_options: []
|
86
|
+
require_paths:
|
87
|
+
- lib
|
88
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '0'
|
93
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
requirements: []
|
99
|
+
rubyforge_project:
|
100
|
+
rubygems_version: 2.0.0
|
101
|
+
signing_key:
|
102
|
+
specification_version: 4
|
103
|
+
summary: Authorize.Net Payments SDK
|
104
|
+
test_files: []
|