lib/active_merchant/billing/gateways/adyen.rb in activemerchant-1.85.0 vs lib/active_merchant/billing/gateways/adyen.rb in activemerchant-1.86.0

- old
+ new

@@ -133,10 +133,10 @@ post[:shopperInteraction] = options[:shopper_interaction] || shopper_interaction end def add_address(post, options) - return unless post[:card] && post[:card].kind_of?(Hash) + return unless post[:card]&.kind_of?(Hash) if (address = options[:billing_address] || options[:address]) && address[:country] post[:card][:billingAddress] = {} post[:card][:billingAddress][:street] = address[:address1] || 'N/A' post[:card][:billingAddress][:houseNumberOrName] = address[:address2] || 'N/A' post[:card][:billingAddress][:postalCode] = address[:zip] if address[:zip]