lib/active_merchant/billing/gateways/authorize_net.rb in activemerchant-1.36.0 vs lib/active_merchant/billing/gateways/authorize_net.rb in activemerchant-1.37.0
- old
+ new
@@ -340,11 +340,11 @@
def add_invoice(post, options)
post[:invoice_num] = options[:order_id]
post[:description] = options[:description]
end
- def add_creditcard(post, creditcard)
+ def add_creditcard(post, creditcard, options={})
post[:card_num] = creditcard.number
post[:card_code] = creditcard.verification_value if creditcard.verification_value?
post[:exp_date] = expdate(creditcard)
post[:first_name] = creditcard.first_name
post[:last_name] = creditcard.last_name
@@ -352,10 +352,10 @@
def add_payment_source(params, source, options={})
if card_brand(source) == "check"
add_check(params, source, options)
else
- add_creditcard(params, source)
+ add_creditcard(params, source, options)
end
end
def add_check(post, check, options)
post[:method] = "ECHECK"