lib/active_merchant/billing/gateways/paybox_direct.rb in activemerchant-1.43.3 vs lib/active_merchant/billing/gateways/paybox_direct.rb in activemerchant-1.44.0
- old
+ new
@@ -95,11 +95,11 @@
post[:dateval] = '0000'
commit('void', options[:amount], post)
end
def credit(money, identification, options = {})
- deprecated CREDIT_DEPRECATION_MESSAGE
+ ActiveMerchant.deprecated CREDIT_DEPRECATION_MESSAGE
refund(money, identification, options)
end
def refund(money, identification, options = {})
post = {}
@@ -181,16 +181,8 @@
def unique_id(seed = 0)
randkey = "#{seed}#{Time.now.usec}".to_i % 2147483647 # Max paybox value for the question number
"0000000000#{randkey}"[-10..-1]
end
-
- def expdate(credit_card)
- year = sprintf("%.4i", credit_card.year)
- month = sprintf("%.2i", credit_card.month)
-
- "#{month}#{year[-2..-1]}"
- end
-
end
end
end