Make echeck? method public

This commit is contained in:
Brian Quinn 2010-12-23 13:46:57 +00:00
parent e8b33a7f3c
commit db9c160527
1 changed files with 4 additions and 4 deletions

View File

@ -71,6 +71,10 @@ class PaypalAccount < ActiveRecord::Base
false
end
def echeck?(payment)
payment.txns.exists?(:payment_type => "echeck")
end
private
def find_authorization(payment)
#find the transaction associated with the original authorization/capture
@ -86,10 +90,6 @@ class PaypalAccount < ActiveRecord::Base
:order => 'created_at DESC')
end
def echeck?(payment)
payment.txns.exists?(:payment_type => "echeck")
end
def gateway_error(text)
msg = "#{I18n.t('gateway_error')} ... #{text}"
logger.error(msg)