activemerchant 1.20.4 → 1.21.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.
- data.tar.gz.sig +0 -0
- data/CHANGELOG +29 -0
- data/CONTRIBUTORS +13 -0
- data/lib/active_merchant/billing/credit_card_methods.rb +1 -1
- data/lib/active_merchant/billing/gateway.rb +1 -1
- data/lib/active_merchant/billing/gateways/authorize_net_cim.rb +104 -18
- data/lib/active_merchant/billing/gateways/beanstream.rb +29 -1
- data/lib/active_merchant/billing/gateways/beanstream/beanstream_core.rb +105 -3
- data/lib/active_merchant/billing/gateways/braintree_orange.rb +4 -0
- data/lib/active_merchant/billing/gateways/certo_direct.rb +279 -0
- data/lib/active_merchant/billing/gateways/epay.rb +2 -2
- data/lib/active_merchant/billing/gateways/eway_managed.rb +1 -0
- data/lib/active_merchant/billing/gateways/merchant_e_solutions.rb +1 -0
- data/lib/active_merchant/billing/gateways/nab_transact.rb +244 -0
- data/lib/active_merchant/billing/gateways/payflow.rb +10 -2
- data/lib/active_merchant/billing/gateways/payflow/payflow_common_api.rb +1 -0
- data/lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb +1 -1
- data/lib/active_merchant/billing/gateways/paypal_digital_goods.rb +43 -0
- data/lib/active_merchant/billing/gateways/paypal_express.rb +36 -1
- data/lib/active_merchant/billing/gateways/paypal_express_common.rb +8 -3
- data/lib/active_merchant/billing/gateways/quickpay.rb +1 -0
- data/lib/active_merchant/billing/gateways/samurai.rb +1 -0
- data/lib/active_merchant/billing/gateways/secure_pay_au.rb +136 -49
- data/lib/active_merchant/billing/gateways/secure_pay_tech.rb +1 -1
- data/lib/active_merchant/billing/gateways/stripe.rb +23 -11
- data/lib/active_merchant/billing/gateways/verifi.rb +2 -2
- data/lib/active_merchant/billing/gateways/viaklix.rb +1 -1
- data/lib/active_merchant/billing/integrations/action_view_helper.rb +5 -1
- data/lib/active_merchant/billing/integrations/authorize_net_sim.rb +38 -0
- data/lib/active_merchant/billing/integrations/authorize_net_sim/helper.rb +228 -0
- data/lib/active_merchant/billing/integrations/authorize_net_sim/notification.rb +340 -0
- data/lib/active_merchant/billing/integrations/helper.rb +13 -1
- data/lib/active_merchant/billing/integrations/payflow_link/helper.rb +1 -1
- data/lib/active_merchant/version.rb +1 -1
- metadata +37 -31
- metadata.gz.sig +0 -0
@@ -14,8 +14,9 @@ module ActiveMerchant #:nodoc:
|
|
14
14
|
self.application_id = 'ActiveMerchant'
|
15
15
|
|
16
16
|
def initialize(order, account, options = {})
|
17
|
-
options.assert_valid_keys([:amount, :currency, :test, :credential2, :credential3, :credential4, :country, :account_name])
|
17
|
+
options.assert_valid_keys([:amount, :currency, :test, :credential2, :credential3, :credential4, :country, :account_name, :transaction_type])
|
18
18
|
@fields = {}
|
19
|
+
@raw_html_fields = []
|
19
20
|
@test = options[:test]
|
20
21
|
self.order = order
|
21
22
|
self.account = account
|
@@ -43,6 +44,17 @@ module ActiveMerchant #:nodoc:
|
|
43
44
|
end
|
44
45
|
end
|
45
46
|
|
47
|
+
# Add a field that has characters that CGI::escape would mangle. Allows
|
48
|
+
# for multiple fields with the same name (e.g., to support line items).
|
49
|
+
def add_raw_html_field(name, value)
|
50
|
+
return if name.blank? || value.blank?
|
51
|
+
@raw_html_fields << [name, value]
|
52
|
+
end
|
53
|
+
|
54
|
+
def raw_html_fields
|
55
|
+
@raw_html_fields
|
56
|
+
end
|
57
|
+
|
46
58
|
def billing_address(params = {})
|
47
59
|
add_address(:billing_address, params)
|
48
60
|
end
|
@@ -13,7 +13,7 @@ module ActiveMerchant #:nodoc:
|
|
13
13
|
add_field('invoice', order)
|
14
14
|
add_field('vendor', account)
|
15
15
|
add_field('user', options[:credential4] || account)
|
16
|
-
add_field('trxtype', 'S')
|
16
|
+
add_field('trxtype', options[:transaction_type] || 'S')
|
17
17
|
end
|
18
18
|
|
19
19
|
mapping :account, 'login'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activemerchant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.21.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -50,11 +50,11 @@ cert_chain:
|
|
50
50
|
-----END CERTIFICATE-----
|
51
51
|
|
52
52
|
'
|
53
|
-
date: 2012-
|
53
|
+
date: 2012-03-07 00:00:00.000000000 Z
|
54
54
|
dependencies:
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: activesupport
|
57
|
-
requirement: &
|
57
|
+
requirement: &2152126080 !ruby/object:Gem::Requirement
|
58
58
|
none: false
|
59
59
|
requirements:
|
60
60
|
- - ! '>='
|
@@ -62,10 +62,10 @@ dependencies:
|
|
62
62
|
version: 2.3.11
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
|
-
version_requirements: *
|
65
|
+
version_requirements: *2152126080
|
66
66
|
- !ruby/object:Gem::Dependency
|
67
67
|
name: i18n
|
68
|
-
requirement: &
|
68
|
+
requirement: &2152125500 !ruby/object:Gem::Requirement
|
69
69
|
none: false
|
70
70
|
requirements:
|
71
71
|
- - ! '>='
|
@@ -73,10 +73,10 @@ dependencies:
|
|
73
73
|
version: '0'
|
74
74
|
type: :runtime
|
75
75
|
prerelease: false
|
76
|
-
version_requirements: *
|
76
|
+
version_requirements: *2152125500
|
77
77
|
- !ruby/object:Gem::Dependency
|
78
78
|
name: money
|
79
|
-
requirement: &
|
79
|
+
requirement: &2152124420 !ruby/object:Gem::Requirement
|
80
80
|
none: false
|
81
81
|
requirements:
|
82
82
|
- - <=
|
@@ -84,10 +84,10 @@ dependencies:
|
|
84
84
|
version: 3.7.1
|
85
85
|
type: :runtime
|
86
86
|
prerelease: false
|
87
|
-
version_requirements: *
|
87
|
+
version_requirements: *2152124420
|
88
88
|
- !ruby/object:Gem::Dependency
|
89
89
|
name: builder
|
90
|
-
requirement: &
|
90
|
+
requirement: &2152123920 !ruby/object:Gem::Requirement
|
91
91
|
none: false
|
92
92
|
requirements:
|
93
93
|
- - ! '>='
|
@@ -95,21 +95,10 @@ dependencies:
|
|
95
95
|
version: 2.0.0
|
96
96
|
type: :runtime
|
97
97
|
prerelease: false
|
98
|
-
version_requirements: *
|
99
|
-
- !ruby/object:Gem::Dependency
|
100
|
-
name: braintree
|
101
|
-
requirement: &2160902360 !ruby/object:Gem::Requirement
|
102
|
-
none: false
|
103
|
-
requirements:
|
104
|
-
- - ! '>='
|
105
|
-
- !ruby/object:Gem::Version
|
106
|
-
version: 2.0.0
|
107
|
-
type: :runtime
|
108
|
-
prerelease: false
|
109
|
-
version_requirements: *2160902360
|
98
|
+
version_requirements: *2152123920
|
110
99
|
- !ruby/object:Gem::Dependency
|
111
100
|
name: json
|
112
|
-
requirement: &
|
101
|
+
requirement: &2152123260 !ruby/object:Gem::Requirement
|
113
102
|
none: false
|
114
103
|
requirements:
|
115
104
|
- - ! '>='
|
@@ -117,10 +106,10 @@ dependencies:
|
|
117
106
|
version: 1.5.1
|
118
107
|
type: :runtime
|
119
108
|
prerelease: false
|
120
|
-
version_requirements: *
|
109
|
+
version_requirements: *2152123260
|
121
110
|
- !ruby/object:Gem::Dependency
|
122
111
|
name: active_utils
|
123
|
-
requirement: &
|
112
|
+
requirement: &2152122720 !ruby/object:Gem::Requirement
|
124
113
|
none: false
|
125
114
|
requirements:
|
126
115
|
- - ! '>='
|
@@ -128,10 +117,10 @@ dependencies:
|
|
128
117
|
version: 1.0.2
|
129
118
|
type: :runtime
|
130
119
|
prerelease: false
|
131
|
-
version_requirements: *
|
120
|
+
version_requirements: *2152122720
|
132
121
|
- !ruby/object:Gem::Dependency
|
133
122
|
name: rake
|
134
|
-
requirement: &
|
123
|
+
requirement: &2152122340 !ruby/object:Gem::Requirement
|
135
124
|
none: false
|
136
125
|
requirements:
|
137
126
|
- - ! '>='
|
@@ -139,10 +128,10 @@ dependencies:
|
|
139
128
|
version: '0'
|
140
129
|
type: :development
|
141
130
|
prerelease: false
|
142
|
-
version_requirements: *
|
131
|
+
version_requirements: *2152122340
|
143
132
|
- !ruby/object:Gem::Dependency
|
144
133
|
name: mocha
|
145
|
-
requirement: &
|
134
|
+
requirement: &2152121880 !ruby/object:Gem::Requirement
|
146
135
|
none: false
|
147
136
|
requirements:
|
148
137
|
- - ! '>='
|
@@ -150,10 +139,10 @@ dependencies:
|
|
150
139
|
version: '0'
|
151
140
|
type: :development
|
152
141
|
prerelease: false
|
153
|
-
version_requirements: *
|
142
|
+
version_requirements: *2152121880
|
154
143
|
- !ruby/object:Gem::Dependency
|
155
144
|
name: rails
|
156
|
-
requirement: &
|
145
|
+
requirement: &2152121340 !ruby/object:Gem::Requirement
|
157
146
|
none: false
|
158
147
|
requirements:
|
159
148
|
- - ! '>='
|
@@ -161,7 +150,18 @@ dependencies:
|
|
161
150
|
version: 2.3.11
|
162
151
|
type: :development
|
163
152
|
prerelease: false
|
164
|
-
version_requirements: *
|
153
|
+
version_requirements: *2152121340
|
154
|
+
- !ruby/object:Gem::Dependency
|
155
|
+
name: rubigen
|
156
|
+
requirement: &2152143380 !ruby/object:Gem::Requirement
|
157
|
+
none: false
|
158
|
+
requirements:
|
159
|
+
- - ! '>='
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '0'
|
162
|
+
type: :development
|
163
|
+
prerelease: false
|
164
|
+
version_requirements: *2152143380
|
165
165
|
description: Active Merchant is a simple payment abstraction library used in and sponsored
|
166
166
|
by Shopify. It is written by Tobias Luetke, Cody Fauser, and contributors. The aim
|
167
167
|
of the project is to feel natural to Ruby users and to abstract as many parts as
|
@@ -199,6 +199,7 @@ files:
|
|
199
199
|
- lib/active_merchant/billing/gateways/braintree_orange.rb
|
200
200
|
- lib/active_merchant/billing/gateways/card_save.rb
|
201
201
|
- lib/active_merchant/billing/gateways/card_stream.rb
|
202
|
+
- lib/active_merchant/billing/gateways/certo_direct.rb
|
202
203
|
- lib/active_merchant/billing/gateways/cyber_source.rb
|
203
204
|
- lib/active_merchant/billing/gateways/data_cash.rb
|
204
205
|
- lib/active_merchant/billing/gateways/efsnet.rb
|
@@ -224,6 +225,7 @@ files:
|
|
224
225
|
- lib/active_merchant/billing/gateways/modern_payments.rb
|
225
226
|
- lib/active_merchant/billing/gateways/modern_payments_cim.rb
|
226
227
|
- lib/active_merchant/billing/gateways/moneris.rb
|
228
|
+
- lib/active_merchant/billing/gateways/nab_transact.rb
|
227
229
|
- lib/active_merchant/billing/gateways/net_registry.rb
|
228
230
|
- lib/active_merchant/billing/gateways/netaxept.rb
|
229
231
|
- lib/active_merchant/billing/gateways/netbilling.rb
|
@@ -247,6 +249,7 @@ files:
|
|
247
249
|
- lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb
|
248
250
|
- lib/active_merchant/billing/gateways/paypal.rb
|
249
251
|
- lib/active_merchant/billing/gateways/paypal_ca.rb
|
252
|
+
- lib/active_merchant/billing/gateways/paypal_digital_goods.rb
|
250
253
|
- lib/active_merchant/billing/gateways/paypal_express.rb
|
251
254
|
- lib/active_merchant/billing/gateways/paypal_express_common.rb
|
252
255
|
- lib/active_merchant/billing/gateways/paystation.rb
|
@@ -283,6 +286,9 @@ files:
|
|
283
286
|
- lib/active_merchant/billing/gateways/worldpay.rb
|
284
287
|
- lib/active_merchant/billing/gateways.rb
|
285
288
|
- lib/active_merchant/billing/integrations/action_view_helper.rb
|
289
|
+
- lib/active_merchant/billing/integrations/authorize_net_sim/helper.rb
|
290
|
+
- lib/active_merchant/billing/integrations/authorize_net_sim/notification.rb
|
291
|
+
- lib/active_merchant/billing/integrations/authorize_net_sim.rb
|
286
292
|
- lib/active_merchant/billing/integrations/bogus/helper.rb
|
287
293
|
- lib/active_merchant/billing/integrations/bogus/notification.rb
|
288
294
|
- lib/active_merchant/billing/integrations/bogus/return.rb
|
metadata.gz.sig
CHANGED
Binary file
|