lib/active_merchant/billing/gateways/verifi.rb in activemerchant-1.43.3 vs lib/active_merchant/billing/gateways/verifi.rb in activemerchant-1.44.0
- old
+ new
@@ -84,11 +84,11 @@
capture_void_or_refund_template(:void, 0, authorization, options)
end
def credit(money, credit_card_or_authorization, options = {})
if credit_card_or_authorization.is_a?(String)
- deprecated CREDIT_DEPRECATION_MESSAGE
+ ActiveMerchant.deprecated CREDIT_DEPRECATION_MESSAGE
refund(money, credit_card_or_authorization, options)
else
sale_authorization_or_credit_template(:credit, money, credit_card_or_authorization, options)
end
end
@@ -121,16 +121,9 @@
post[:ccnumber] = credit_card.number
post[:ccexp] = expdate(credit_card)
post[:firstname] = credit_card.first_name
post[:lastname] = credit_card.last_name
post[:cvv] = credit_card.verification_value
- end
-
- def expdate(credit_card)
- year = sprintf("%.4i", credit_card.year)
- month = sprintf("%.2i", credit_card.month)
-
- "#{month}#{year[-2..-1]}"
end
def add_addresses(post, options)
if billing_address = options[:billing_address] || options[:address]
post[:company] = billing_address[:company]