diff --git a/app/models/paypal_account.rb b/app/models/paypal_account.rb index 0bbdc8d..6a3530a 100644 --- a/app/models/paypal_account.rb +++ b/app/models/paypal_account.rb @@ -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)