activemerchant 1.13.0 → 1.14.0
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/CHANGELOG +19 -0
- data/CONTRIBUTORS +14 -2
- data/README.rdoc +2 -0
- data/lib/active_merchant/billing/credit_card.rb +4 -4
- data/lib/active_merchant/billing/gateway.rb +1 -1
- data/lib/active_merchant/billing/gateways/authorize_net.rb +10 -5
- data/lib/active_merchant/billing/gateways/authorize_net_cim.rb +133 -11
- data/lib/active_merchant/billing/gateways/barclays_epdq.rb +1 -1
- data/lib/active_merchant/billing/gateways/beanstream.rb +39 -2
- data/lib/active_merchant/billing/gateways/beanstream/beanstream_core.rb +64 -26
- data/lib/active_merchant/billing/gateways/bogus.rb +21 -3
- data/lib/active_merchant/billing/gateways/cyber_source.rb +5 -1
- data/lib/active_merchant/billing/gateways/data_cash.rb +1 -1
- data/lib/active_merchant/billing/gateways/efsnet.rb +1 -1
- data/lib/active_merchant/billing/gateways/epay.rb +5 -1
- data/lib/active_merchant/billing/gateways/eway.rb +4 -0
- data/lib/active_merchant/billing/gateways/eway_managed.rb +231 -0
- data/lib/active_merchant/billing/gateways/federated_canada.rb +6 -7
- data/lib/active_merchant/billing/gateways/first_pay.rb +7 -2
- data/lib/active_merchant/billing/gateways/iridium.rb +1 -1
- data/lib/active_merchant/billing/gateways/jetpay.rb +5 -2
- data/lib/active_merchant/billing/gateways/linkpoint.rb +6 -1
- data/lib/active_merchant/billing/gateways/merchant_e_solutions.rb +6 -4
- data/lib/active_merchant/billing/gateways/merchant_ware.rb +1 -1
- data/lib/active_merchant/billing/gateways/moneris.rb +1 -1
- data/lib/active_merchant/billing/gateways/netaxept.rb +6 -1
- data/lib/active_merchant/billing/gateways/ogone.rb +1 -1
- data/lib/active_merchant/billing/gateways/orbital.rb +317 -0
- data/lib/active_merchant/billing/gateways/orbital/orbital_soft_descriptors.rb +46 -0
- data/lib/active_merchant/billing/gateways/paybox_direct.rb +1 -1
- data/lib/active_merchant/billing/gateways/payflow.rb +1 -1
- data/lib/active_merchant/billing/gateways/payflow_express.rb +6 -1
- data/lib/active_merchant/billing/gateways/payment_express.rb +6 -1
- data/lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb +7 -2
- data/lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb +11 -7
- data/lib/active_merchant/billing/gateways/plugnpay.rb +1 -1
- data/lib/active_merchant/billing/gateways/psigate.rb +1 -1
- data/lib/active_merchant/billing/gateways/qbms.rb +1 -1
- data/lib/active_merchant/billing/gateways/quantum.rb +6 -1
- data/lib/active_merchant/billing/gateways/quickpay.rb +6 -1
- data/lib/active_merchant/billing/gateways/realex.rb +196 -72
- data/lib/active_merchant/billing/gateways/sage_pay.rb +7 -2
- data/lib/active_merchant/billing/gateways/secure_pay_au.rb +38 -2
- data/lib/active_merchant/billing/gateways/smart_ps.rb +2 -2
- data/lib/active_merchant/billing/gateways/trust_commerce.rb +7 -2
- data/lib/active_merchant/billing/gateways/verifi.rb +1 -1
- data/lib/active_merchant/billing/gateways/worldpay.rb +280 -0
- data/lib/active_merchant/billing/integrations/moneybookers/helper.rb +0 -1
- data/lib/active_merchant/billing/integrations/return.rb +6 -1
- data/lib/active_merchant/billing/integrations/sage_pay_form/notification.rb +6 -0
- data/lib/active_merchant/billing/integrations/sage_pay_form/return.rb +5 -1
- data/lib/active_merchant/common/connection.rb +15 -0
- data/lib/active_merchant/common/posts_data.rb +2 -0
- data/lib/active_merchant/common/utils.rb +4 -0
- data/lib/active_merchant/version.rb +1 -1
- metadata +8 -4
- metadata.gz.sig +0 -0
@@ -41,6 +41,7 @@ module ActiveMerchant
|
|
41
41
|
attr_accessor :wiredump_device
|
42
42
|
attr_accessor :logger
|
43
43
|
attr_accessor :tag
|
44
|
+
attr_accessor :ignore_http_status
|
44
45
|
|
45
46
|
def initialize(endpoint)
|
46
47
|
@endpoint = endpoint.is_a?(URI) ? endpoint : URI.parse(endpoint)
|
@@ -48,6 +49,7 @@ module ActiveMerchant
|
|
48
49
|
@read_timeout = READ_TIMEOUT
|
49
50
|
@retry_safe = RETRY_SAFE
|
50
51
|
@verify_peer = VERIFY_PEER
|
52
|
+
@ignore_http_status = false
|
51
53
|
end
|
52
54
|
|
53
55
|
def request(method, body, headers = {})
|
@@ -146,6 +148,19 @@ module ActiveMerchant
|
|
146
148
|
end
|
147
149
|
end
|
148
150
|
|
151
|
+
def handle_response(response)
|
152
|
+
if @ignore_http_status then
|
153
|
+
return response.body
|
154
|
+
else
|
155
|
+
case response.code.to_i
|
156
|
+
when 200...300
|
157
|
+
response.body
|
158
|
+
else
|
159
|
+
raise ResponseError.new(response)
|
160
|
+
end
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
149
164
|
def debug(message, tag = nil)
|
150
165
|
log(:debug, message, tag)
|
151
166
|
end
|
@@ -42,6 +42,8 @@ module ActiveMerchant #:nodoc:
|
|
42
42
|
|
43
43
|
connection.pem = @options[:pem] if @options
|
44
44
|
connection.pem_password = @options[:pem_password] if @options
|
45
|
+
|
46
|
+
connection.ignore_http_status = @options[:ignore_http_status] if @options
|
45
47
|
|
46
48
|
connection.request(method, data, headers)
|
47
49
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activemerchant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 47
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
8
|
+
- 14
|
9
9
|
- 0
|
10
|
-
version: 1.
|
10
|
+
version: 1.14.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tobias Luetke
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
hPaSTyVU0yCSnw==
|
37
37
|
-----END CERTIFICATE-----
|
38
38
|
|
39
|
-
date: 2011-04-
|
39
|
+
date: 2011-04-29 00:00:00 -04:00
|
40
40
|
default_executable:
|
41
41
|
dependencies:
|
42
42
|
- !ruby/object:Gem::Dependency
|
@@ -129,6 +129,7 @@ files:
|
|
129
129
|
- lib/active_merchant/billing/gateways/elavon.rb
|
130
130
|
- lib/active_merchant/billing/gateways/epay.rb
|
131
131
|
- lib/active_merchant/billing/gateways/eway.rb
|
132
|
+
- lib/active_merchant/billing/gateways/eway_managed.rb
|
132
133
|
- lib/active_merchant/billing/gateways/exact.rb
|
133
134
|
- lib/active_merchant/billing/gateways/federated_canada.rb
|
134
135
|
- lib/active_merchant/billing/gateways/first_pay.rb
|
@@ -152,6 +153,8 @@ files:
|
|
152
153
|
- lib/active_merchant/billing/gateways/netbilling.rb
|
153
154
|
- lib/active_merchant/billing/gateways/nmi.rb
|
154
155
|
- lib/active_merchant/billing/gateways/ogone.rb
|
156
|
+
- lib/active_merchant/billing/gateways/orbital/orbital_soft_descriptors.rb
|
157
|
+
- lib/active_merchant/billing/gateways/orbital.rb
|
155
158
|
- lib/active_merchant/billing/gateways/pay_junction.rb
|
156
159
|
- lib/active_merchant/billing/gateways/pay_secure.rb
|
157
160
|
- lib/active_merchant/billing/gateways/paybox_direct.rb
|
@@ -195,6 +198,7 @@ files:
|
|
195
198
|
- lib/active_merchant/billing/gateways/verifi.rb
|
196
199
|
- lib/active_merchant/billing/gateways/viaklix.rb
|
197
200
|
- lib/active_merchant/billing/gateways/wirecard.rb
|
201
|
+
- lib/active_merchant/billing/gateways/worldpay.rb
|
198
202
|
- lib/active_merchant/billing/gateways.rb
|
199
203
|
- lib/active_merchant/billing/integrations/action_view_helper.rb
|
200
204
|
- lib/active_merchant/billing/integrations/bogus/helper.rb
|
metadata.gz.sig
CHANGED
Binary file
|