activemerchant 1.47.0 → 1.48.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/CHANGELOG +34 -0
  5. data/CONTRIBUTORS +16 -0
  6. data/README.md +8 -2
  7. data/lib/active_merchant/billing/credit_card.rb +16 -4
  8. data/lib/active_merchant/billing/gateway.rb +0 -1
  9. data/lib/active_merchant/billing/gateways/authorize_net.rb +48 -1
  10. data/lib/active_merchant/billing/gateways/axcessms.rb +181 -0
  11. data/lib/active_merchant/billing/gateways/braintree_blue.rb +16 -6
  12. data/lib/active_merchant/billing/gateways/cenpos.rb +272 -0
  13. data/lib/active_merchant/billing/gateways/epay.rb +8 -9
  14. data/lib/active_merchant/billing/gateways/exact.rb +9 -0
  15. data/lib/active_merchant/billing/gateways/fat_zebra.rb +33 -0
  16. data/lib/active_merchant/billing/gateways/firstdata_e4.rb +49 -3
  17. data/lib/active_merchant/billing/gateways/inspire.rb +7 -1
  18. data/lib/active_merchant/billing/gateways/iridium.rb +1 -1
  19. data/lib/active_merchant/billing/gateways/merchant_warrior.rb +2 -2
  20. data/lib/active_merchant/billing/gateways/monei.rb +307 -0
  21. data/lib/active_merchant/billing/gateways/nab_transact.rb +47 -37
  22. data/lib/active_merchant/billing/gateways/netbilling.rb +40 -7
  23. data/lib/active_merchant/billing/gateways/orbital.rb +45 -21
  24. data/lib/active_merchant/billing/gateways/pay_conex.rb +246 -0
  25. data/lib/active_merchant/billing/gateways/pay_hub.rb +213 -0
  26. data/lib/active_merchant/billing/gateways/paymill.rb +3 -2
  27. data/lib/active_merchant/billing/gateways/pin.rb +2 -2
  28. data/lib/active_merchant/billing/gateways/quickbooks.rb +6 -4
  29. data/lib/active_merchant/billing/gateways/qvalent.rb +179 -0
  30. data/lib/active_merchant/billing/gateways/redsys.rb +29 -15
  31. data/lib/active_merchant/billing/gateways/sage_pay.rb +1 -1
  32. data/lib/active_merchant/billing/gateways/stripe.rb +12 -3
  33. data/lib/active_merchant/billing/gateways/usa_epay_transaction.rb +8 -3
  34. data/lib/active_merchant/billing/gateways/worldpay.rb +2 -2
  35. data/lib/active_merchant/billing/gateways/worldpay_online_payments.rb +205 -0
  36. data/lib/active_merchant/billing/network_tokenization_credit_card.rb +12 -4
  37. data/lib/active_merchant/billing/response.rb +1 -1
  38. data/lib/active_merchant/posts_data.rb +6 -0
  39. data/lib/active_merchant/version.rb +1 -1
  40. data/lib/support/outbound_hosts.rb +13 -10
  41. metadata +9 -2
  42. metadata.gz.sig +0 -0
@@ -1,16 +1,24 @@
1
1
  module ActiveMerchant #:nodoc:
2
2
  module Billing #:nodoc:
3
3
  class NetworkTokenizationCreditCard < CreditCard
4
- # A +NetworkTokenizationCreditCard+ object represents a tokenized credit card
4
+ # A +NetworkTokenizationCreditCard+ object represents a tokenized credit card
5
5
  # using the EMV Network Tokenization specification, http://www.emvco.com/specifications.aspx?id=263.
6
6
  #
7
- # It includes all fields of the +CreditCard+ class with additional fields for
7
+ # It includes all fields of the +CreditCard+ class with additional fields for
8
8
  # verification data that must be given to gateways through existing fields (3DS / EMV).
9
9
  #
10
- # The only tested usage of this at the moment is with an Apple Pay decrypted PKPaymentToken,
11
- # https://developer.apple.com/library/ios/documentation/PassKit/Reference/PaymentTokenJSON/PaymentTokenJSON.html
10
+ # The only tested usage of this at the moment is with an Apple Pay decrypted PKPaymentToken,
11
+ # https://developer.apple.com/library/ios/documentation/PassKit/Reference/PaymentTokenJSON/PaymentTokenJSON.html
12
+
13
+ # These are not relevant (verification) or optional (name) for Apple Pay
14
+ self.require_verification_value = false
15
+ self.require_name = false
12
16
 
13
17
  attr_accessor :payment_cryptogram, :eci, :transaction_id
18
+
19
+ def type
20
+ "network_tokenization"
21
+ end
14
22
  end
15
23
  end
16
24
  end
@@ -79,7 +79,7 @@ module ActiveMerchant #:nodoc:
79
79
  (primary_response ? primary_response.success? : true)
80
80
  end
81
81
 
82
- %w(params message test authorization avs_result cvv_result test? fraud_review?).each do |m|
82
+ %w(params message test authorization avs_result cvv_result error_code test? fraud_review?).each do |m|
83
83
  class_eval %(
84
84
  def #{m}
85
85
  (@responses.empty? ? nil : primary_response.#{m})
@@ -22,6 +22,9 @@ module ActiveMerchant #:nodoc:
22
22
 
23
23
  base.class_attribute :logger
24
24
  base.class_attribute :wiredump_device
25
+
26
+ base.class_attribute :proxy_address
27
+ base.class_attribute :proxy_port
25
28
  end
26
29
 
27
30
  def ssl_get(endpoint, headers={})
@@ -56,6 +59,9 @@ module ActiveMerchant #:nodoc:
56
59
 
57
60
  connection.ignore_http_status = @options[:ignore_http_status] if @options
58
61
 
62
+ connection.proxy_address = proxy_address
63
+ connection.proxy_port = proxy_port
64
+
59
65
  connection.request(method, data, headers)
60
66
  end
61
67
 
@@ -1,3 +1,3 @@
1
1
  module ActiveMerchant
2
- VERSION = "1.47.0"
2
+ VERSION = "1.48.0"
3
3
  end
@@ -2,24 +2,27 @@ require 'uri'
2
2
  require 'set'
3
3
 
4
4
  class OutboundHosts
5
- def self.list
6
- uris = Set.new
5
+ def self.list
6
+ hosts = Set.new
7
+ invalid_lines = Set.new
7
8
 
8
9
  Dir['lib/**/*.rb'].each do |file|
9
10
  content = File.read(file)
10
11
 
11
12
  content.each_line do |line|
12
13
  next if line =~ /homepage_url/
13
-
14
- if line =~ /("|')(https:\/\/.*)("|')/
15
- uri = URI.parse($2)
16
- uris << [uri.host, uri.port]
14
+
15
+ if line =~ /("|')(https:\/\/[^'"]*)("|')/
16
+ begin
17
+ uri = URI.parse($2)
18
+ hosts << "#{uri.host}:#{uri.port}"
19
+ rescue URI::InvalidURIError
20
+ invalid_lines << line
21
+ end
17
22
  end
18
23
  end
19
24
  end
20
25
 
21
- uris.each do |uri|
22
- puts "#{uri.first} #{uri.last}"
23
- end
26
+ [hosts, invalid_lines]
24
27
  end
25
- end
28
+ end
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.47.0
4
+ version: 1.48.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Luetke
@@ -30,7 +30,7 @@ cert_chain:
30
30
  fl3hbtVFTqbOlwL9vy1fudXcolIE/ZTcxQ+er07ZFZdKCXayR9PPs64heamfn0fp
31
31
  TConQSX2BnZdhIEYW+cKzEC/bLc=
32
32
  -----END CERTIFICATE-----
33
- date: 2015-02-26 00:00:00.000000000 Z
33
+ date: 2015-04-08 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: activesupport
@@ -188,6 +188,7 @@ files:
188
188
  - lib/active_merchant/billing/gateways/authorize_net.rb
189
189
  - lib/active_merchant/billing/gateways/authorize_net_arb.rb
190
190
  - lib/active_merchant/billing/gateways/authorize_net_cim.rb
191
+ - lib/active_merchant/billing/gateways/axcessms.rb
191
192
  - lib/active_merchant/billing/gateways/balanced.rb
192
193
  - lib/active_merchant/billing/gateways/bank_frick.rb
193
194
  - lib/active_merchant/billing/gateways/banwire.rb
@@ -210,6 +211,7 @@ files:
210
211
  - lib/active_merchant/billing/gateways/cashnet.rb
211
212
  - lib/active_merchant/billing/gateways/cc5.rb
212
213
  - lib/active_merchant/billing/gateways/cecabank.rb
214
+ - lib/active_merchant/billing/gateways/cenpos.rb
213
215
  - lib/active_merchant/billing/gateways/certo_direct.rb
214
216
  - lib/active_merchant/billing/gateways/checkout.rb
215
217
  - lib/active_merchant/billing/gateways/commercegate.rb
@@ -261,6 +263,7 @@ files:
261
263
  - lib/active_merchant/billing/gateways/migs/migs_codes.rb
262
264
  - lib/active_merchant/billing/gateways/modern_payments.rb
263
265
  - lib/active_merchant/billing/gateways/modern_payments_cim.rb
266
+ - lib/active_merchant/billing/gateways/monei.rb
264
267
  - lib/active_merchant/billing/gateways/moneris.rb
265
268
  - lib/active_merchant/billing/gateways/moneris_us.rb
266
269
  - lib/active_merchant/billing/gateways/money_movers.rb
@@ -278,7 +281,9 @@ files:
278
281
  - lib/active_merchant/billing/gateways/orbital/orbital_soft_descriptors.rb
279
282
  - lib/active_merchant/billing/gateways/pac_net_raven.rb
280
283
  - lib/active_merchant/billing/gateways/pago_facil.rb
284
+ - lib/active_merchant/billing/gateways/pay_conex.rb
281
285
  - lib/active_merchant/billing/gateways/pay_gate_xml.rb
286
+ - lib/active_merchant/billing/gateways/pay_hub.rb
282
287
  - lib/active_merchant/billing/gateways/pay_junction.rb
283
288
  - lib/active_merchant/billing/gateways/pay_secure.rb
284
289
  - lib/active_merchant/billing/gateways/paybox_direct.rb
@@ -311,6 +316,7 @@ files:
311
316
  - lib/active_merchant/billing/gateways/quantum.rb
312
317
  - lib/active_merchant/billing/gateways/quickbooks.rb
313
318
  - lib/active_merchant/billing/gateways/quickpay.rb
319
+ - lib/active_merchant/billing/gateways/qvalent.rb
314
320
  - lib/active_merchant/billing/gateways/realex.rb
315
321
  - lib/active_merchant/billing/gateways/redsys.rb
316
322
  - lib/active_merchant/billing/gateways/sage.rb
@@ -344,6 +350,7 @@ files:
344
350
  - lib/active_merchant/billing/gateways/wepay.rb
345
351
  - lib/active_merchant/billing/gateways/wirecard.rb
346
352
  - lib/active_merchant/billing/gateways/worldpay.rb
353
+ - lib/active_merchant/billing/gateways/worldpay_online_payments.rb
347
354
  - lib/active_merchant/billing/gateways/worldpay_us.rb
348
355
  - lib/active_merchant/billing/model.rb
349
356
  - lib/active_merchant/billing/network_tokenization_credit_card.rb
metadata.gz.sig CHANGED
Binary file