lib/active_merchant/billing/gateways/card_stream.rb in activemerchant-1.86.0 vs lib/active_merchant/billing/gateways/card_stream.rb in activemerchant-1.87.0

- old
+ new

@@ -139,11 +139,11 @@ } def initialize(options = {}) requires!(options, :login, :shared_secret) @threeds_required = false - if (options[:threeDSRequired]) + if options[:threeDSRequired] ActiveMerchant.deprecated(THREEDSECURE_REQUIRED_DEPRECATION_MESSAGE) @threeds_required = options[:threeDSRequired] end super end @@ -276,11 +276,11 @@ add_pair(post, :cardExpiryYear, format(credit_card.year, :two_digits), :required => true) add_pair(post, :cardCVV, credit_card.verification_value) end def add_threeds_required(post, options) - add_pair(post, :threeDSRequired, (options[:threeds_required] || @threeds_required) ? 'Y' : 'N') + add_pair(post, :threeDSRequired, options[:threeds_required] || @threeds_required ? 'Y' : 'N') end def add_remote_address(post, options={}) add_pair(post, :remoteAddress, options[:ip] || '1.1.1.1') end @@ -332,16 +332,16 @@ def avs_from(response) postal_match = AVS_POSTAL_MATCH[response[:avscv2ResponseCode].to_s[1, 1]] street_match = AVS_STREET_MATCH[response[:avscv2ResponseCode].to_s[2, 1]] code = if postal_match == 'Y' && street_match == 'Y' - 'M' - elsif postal_match == 'Y' - 'P' - elsif street_match == 'Y' - 'A' - else - 'I' + 'M' + elsif postal_match == 'Y' + 'P' + elsif street_match == 'Y' + 'A' + else + 'I' end AVSResult.new({ :code => code, :postal_match => postal_match,