activemerchant 1.13.0 → 1.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. data.tar.gz.sig +0 -0
  2. data/CHANGELOG +19 -0
  3. data/CONTRIBUTORS +14 -2
  4. data/README.rdoc +2 -0
  5. data/lib/active_merchant/billing/credit_card.rb +4 -4
  6. data/lib/active_merchant/billing/gateway.rb +1 -1
  7. data/lib/active_merchant/billing/gateways/authorize_net.rb +10 -5
  8. data/lib/active_merchant/billing/gateways/authorize_net_cim.rb +133 -11
  9. data/lib/active_merchant/billing/gateways/barclays_epdq.rb +1 -1
  10. data/lib/active_merchant/billing/gateways/beanstream.rb +39 -2
  11. data/lib/active_merchant/billing/gateways/beanstream/beanstream_core.rb +64 -26
  12. data/lib/active_merchant/billing/gateways/bogus.rb +21 -3
  13. data/lib/active_merchant/billing/gateways/cyber_source.rb +5 -1
  14. data/lib/active_merchant/billing/gateways/data_cash.rb +1 -1
  15. data/lib/active_merchant/billing/gateways/efsnet.rb +1 -1
  16. data/lib/active_merchant/billing/gateways/epay.rb +5 -1
  17. data/lib/active_merchant/billing/gateways/eway.rb +4 -0
  18. data/lib/active_merchant/billing/gateways/eway_managed.rb +231 -0
  19. data/lib/active_merchant/billing/gateways/federated_canada.rb +6 -7
  20. data/lib/active_merchant/billing/gateways/first_pay.rb +7 -2
  21. data/lib/active_merchant/billing/gateways/iridium.rb +1 -1
  22. data/lib/active_merchant/billing/gateways/jetpay.rb +5 -2
  23. data/lib/active_merchant/billing/gateways/linkpoint.rb +6 -1
  24. data/lib/active_merchant/billing/gateways/merchant_e_solutions.rb +6 -4
  25. data/lib/active_merchant/billing/gateways/merchant_ware.rb +1 -1
  26. data/lib/active_merchant/billing/gateways/moneris.rb +1 -1
  27. data/lib/active_merchant/billing/gateways/netaxept.rb +6 -1
  28. data/lib/active_merchant/billing/gateways/ogone.rb +1 -1
  29. data/lib/active_merchant/billing/gateways/orbital.rb +317 -0
  30. data/lib/active_merchant/billing/gateways/orbital/orbital_soft_descriptors.rb +46 -0
  31. data/lib/active_merchant/billing/gateways/paybox_direct.rb +1 -1
  32. data/lib/active_merchant/billing/gateways/payflow.rb +1 -1
  33. data/lib/active_merchant/billing/gateways/payflow_express.rb +6 -1
  34. data/lib/active_merchant/billing/gateways/payment_express.rb +6 -1
  35. data/lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb +7 -2
  36. data/lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb +11 -7
  37. data/lib/active_merchant/billing/gateways/plugnpay.rb +1 -1
  38. data/lib/active_merchant/billing/gateways/psigate.rb +1 -1
  39. data/lib/active_merchant/billing/gateways/qbms.rb +1 -1
  40. data/lib/active_merchant/billing/gateways/quantum.rb +6 -1
  41. data/lib/active_merchant/billing/gateways/quickpay.rb +6 -1
  42. data/lib/active_merchant/billing/gateways/realex.rb +196 -72
  43. data/lib/active_merchant/billing/gateways/sage_pay.rb +7 -2
  44. data/lib/active_merchant/billing/gateways/secure_pay_au.rb +38 -2
  45. data/lib/active_merchant/billing/gateways/smart_ps.rb +2 -2
  46. data/lib/active_merchant/billing/gateways/trust_commerce.rb +7 -2
  47. data/lib/active_merchant/billing/gateways/verifi.rb +1 -1
  48. data/lib/active_merchant/billing/gateways/worldpay.rb +280 -0
  49. data/lib/active_merchant/billing/integrations/moneybookers/helper.rb +0 -1
  50. data/lib/active_merchant/billing/integrations/return.rb +6 -1
  51. data/lib/active_merchant/billing/integrations/sage_pay_form/notification.rb +6 -0
  52. data/lib/active_merchant/billing/integrations/sage_pay_form/return.rb +5 -1
  53. data/lib/active_merchant/common/connection.rb +15 -0
  54. data/lib/active_merchant/common/posts_data.rb +2 -0
  55. data/lib/active_merchant/common/utils.rb +4 -0
  56. data/lib/active_merchant/version.rb +1 -1
  57. metadata +8 -4
  58. metadata.gz.sig +0 -0
@@ -15,7 +15,11 @@ module ActiveMerchant #:nodoc:
15
15
  def success?
16
16
  @notification && @notification.complete?
17
17
  end
18
-
18
+
19
+ def cancelled?
20
+ @notification && @notification.cancelled?
21
+ end
22
+
19
23
  def message
20
24
  @message || @notification.message
21
25
  end
@@ -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
@@ -14,5 +14,9 @@ module ActiveMerchant #:nodoc:
14
14
  end
15
15
 
16
16
  module_function :generate_unique_id
17
+
18
+ def deprecated(message)
19
+ warn(Kernel.caller[1] + message)
20
+ end
17
21
  end
18
22
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveMerchant
2
- VERSION = "1.13.0"
2
+ VERSION = "1.14.0"
3
3
  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: 35
4
+ hash: 47
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 13
8
+ - 14
9
9
  - 0
10
- version: 1.13.0
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-19 00:00:00 -04:00
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