Make echeck? method public
This commit is contained in:
parent
e8b33a7f3c
commit
db9c160527
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue