lib/active_merchant/billing/gateways/secure_net.rb in activemerchant-1.43.3 vs lib/active_merchant/billing/gateways/secure_net.rb in activemerchant-1.44.0
- old
+ new
@@ -55,11 +55,11 @@
def refund(money, authorization, options = {})
commit(build_capture_refund_void(authorization, options, :credit, money))
end
def credit(money, authorization, options = {})
- deprecated CREDIT_DEPRECATION_MESSAGE
+ ActiveMerchant.deprecated CREDIT_DEPRECATION_MESSAGE
refund(money, authorization, options)
end
private
@@ -121,16 +121,9 @@
xml.tag!("CARD") do
xml.tag! 'CARDCODE', creditcard.verification_value if creditcard.verification_value?
xml.tag! 'CARDNUMBER', creditcard.number
xml.tag! 'EXPDATE', expdate(creditcard)
end
- end
-
- def expdate(creditcard)
- year = sprintf("%.4i", creditcard.year)
- month = sprintf("%.2i", creditcard.month)
-
- "#{month}#{year[-2..-1]}"
end
def add_customer_data(xml, options)
if options.has_key? :customer
xml.tag! 'CUSTOMERID', options[:customer]