lib/active_merchant/billing/gateways/authorize_net.rb in activemerchant-1.58.0 vs lib/active_merchant/billing/gateways/authorize_net.rb in activemerchant-1.59.0

- old
+ new

@@ -321,11 +321,11 @@ end end def add_settings(xml, source, options) xml.transactionSettings do - if !source.is_a?(String) && card_brand(source) == "check" && options[:recurring] + if options[:recurring] xml.setting do xml.settingName("recurringBilling") xml.settingValue("true") end end @@ -357,11 +357,11 @@ xml.userField do xml.name("x_currency_code") xml.value(currency) end end - if application_id.present? && application_id != "ActiveMerchant" + if application_id.present? xml.userField do xml.name("x_solution_id") xml.value(application_id) end end @@ -442,10 +442,10 @@ def add_check(xml, check) xml.payment do xml.bankAccount do xml.routingNumber(check.routing_number) xml.accountNumber(check.account_number) - xml.nameOnAccount(check.name) + xml.nameOnAccount(truncate(check.name, 22)) xml.bankName(check.bank_name) xml.checkNumber(check.number) end end end