activemerchant 1.5.1 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +14 -0
- data/CONTRIBUTORS +4 -0
- data/lib/active_merchant.rb +1 -9
- data/lib/active_merchant/billing/credit_card_methods.rb +2 -2
- data/lib/active_merchant/billing/gateways/beanstream/beanstream_core.rb +2 -2
- data/lib/active_merchant/billing/gateways/bogus.rb +12 -8
- data/lib/active_merchant/billing/gateways/garanti.rb +222 -0
- data/lib/active_merchant/billing/gateways/linkpoint.rb +1 -1
- data/lib/active_merchant/billing/gateways/merchant_e_solutions.rb +1 -1
- data/lib/active_merchant/billing/gateways/paypal_express.rb +5 -0
- data/lib/active_merchant/billing/gateways/sage.rb +2 -2
- data/lib/active_merchant/billing/integrations/chronopay/helper.rb +3 -3
- data/lib/active_merchant/common.rb +14 -0
- data/lib/active_merchant/{lib → common}/connection.rb +2 -0
- data/lib/active_merchant/{lib → common}/country.rb +1 -1
- data/lib/active_merchant/common/error.rb +26 -0
- data/lib/active_merchant/common/post_data.rb +24 -0
- data/lib/active_merchant/{lib → common}/posts_data.rb +0 -0
- data/lib/active_merchant/{lib → common}/requires_parameters.rb +0 -0
- data/lib/active_merchant/{lib → common}/utils.rb +0 -0
- data/lib/active_merchant/{lib → common}/validateable.rb +0 -0
- data/lib/activemerchant.rb +1 -0
- data/lib/support/outbound_hosts.rb +25 -0
- metadata +50 -44
- data.tar.gz.sig +0 -0
- data/lib/active_merchant/billing/gateways/authorize_net_cim.rb.orig +0 -736
- data/lib/active_merchant/lib/error.rb +0 -4
- data/lib/active_merchant/lib/post_data.rb +0 -22
- metadata.gz.sig +0 -3
@@ -1,22 +0,0 @@
|
|
1
|
-
require 'cgi'
|
2
|
-
|
3
|
-
class PostData < Hash
|
4
|
-
class_inheritable_accessor :required_fields, :instance_writer => false
|
5
|
-
self.required_fields = []
|
6
|
-
|
7
|
-
def []=(key, value)
|
8
|
-
return if value.blank? && !required?(key)
|
9
|
-
super
|
10
|
-
end
|
11
|
-
|
12
|
-
def to_post_data
|
13
|
-
collect { |key, value| "#{key}=#{CGI.escape(value.to_s)}" }.join("&")
|
14
|
-
end
|
15
|
-
|
16
|
-
alias_method :to_s, :to_post_data
|
17
|
-
|
18
|
-
private
|
19
|
-
def required?(key)
|
20
|
-
required_fields.include?(key)
|
21
|
-
end
|
22
|
-
end
|
metadata.gz.sig
DELETED