lib/active_merchant/billing/gateways/authorize_net.rb in activemerchant-1.104.0 vs lib/active_merchant/billing/gateways/authorize_net.rb in activemerchant-1.105.0

- old
+ new

@@ -83,12 +83,12 @@ CARD_CODE_ERRORS = %w(N S) AVS_ERRORS = %w(A E I N R W Z) AVS_REASON_CODES = %w(27 45) TRACKS = { - 1 => /^%(?<format_code>.)(?<pan>[\d]{1,19}+)\^(?<name>.{2,26})\^(?<expiration>[\d]{0,4}|\^)(?<service_code>[\d]{0,3}|\^)(?<discretionary_data>.*)\?\Z/, - 2 => /\A;(?<pan>[\d]{1,19}+)=(?<expiration>[\d]{0,4}|=)(?<service_code>[\d]{0,3}|=)(?<discretionary_data>.*)\?\Z/ + 1 => /^%(?<format_code>.)(?<pan>[\d]{1,19}+)\^(?<name>.{2,26})\^(?<expiration>[\d]{0,4}|\^)(?<service_code>[\d]{0,3}|\^)(?<discretionary_data>.*)\?\Z/, + 2 => /\A;(?<pan>[\d]{1,19}+)=(?<expiration>[\d]{0,4}|=)(?<service_code>[\d]{0,3}|=)(?<discretionary_data>.*)\?\Z/ }.freeze APPLE_PAY_DATA_DESCRIPTOR = 'COMMON.APPLE.INAPP.PAYMENT' PAYMENT_METHOD_NOT_SUPPORTED_ERROR = '155' @@ -542,9 +542,10 @@ end def add_check(xml, check) xml.payment do xml.bankAccount do + xml.accountType(check.account_type) xml.routingNumber(check.routing_number) xml.accountNumber(check.account_number) xml.nameOnAccount(truncate(check.name, 22)) xml.bankName(check.bank_name) xml.checkNumber(check.number)