lib/active_merchant/billing/gateways/authorize_net.rb in activemerchant-1.71.0 vs lib/active_merchant/billing/gateways/authorize_net.rb in activemerchant-1.72.0

- old
+ new

@@ -533,11 +533,11 @@ end end def add_customer_data(xml, payment_source, options) xml.customer do - xml.id(options[:customer]) unless empty?(options[:customer]) || options[:customer] !~ /^\d+$/ + xml.id(options[:customer]) unless empty?(options[:customer]) || options[:customer] !~ /^\w+$/ xml.email(options[:email]) unless empty?(options[:email]) end add_billing_address(xml, payment_source, options) add_shipping_address(xml, options) @@ -717,10 +717,10 @@ def state_from(address, options) if ["US", "CA"].include?(address[:country]) address[:state] || 'NC' else - address[:state] + address[:state] || 'n/a' end end def headers { 'Content-Type' => 'text/xml' }