Make echeck? method public
This commit is contained in:
parent
e8b33a7f3c
commit
db9c160527
|
@ -71,6 +71,10 @@ class PaypalAccount < ActiveRecord::Base
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def echeck?(payment)
|
||||||
|
payment.txns.exists?(:payment_type => "echeck")
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
def find_authorization(payment)
|
def find_authorization(payment)
|
||||||
#find the transaction associated with the original authorization/capture
|
#find the transaction associated with the original authorization/capture
|
||||||
|
@ -86,10 +90,6 @@ class PaypalAccount < ActiveRecord::Base
|
||||||
:order => 'created_at DESC')
|
:order => 'created_at DESC')
|
||||||
end
|
end
|
||||||
|
|
||||||
def echeck?(payment)
|
|
||||||
payment.txns.exists?(:payment_type => "echeck")
|
|
||||||
end
|
|
||||||
|
|
||||||
def gateway_error(text)
|
def gateway_error(text)
|
||||||
msg = "#{I18n.t('gateway_error')} ... #{text}"
|
msg = "#{I18n.t('gateway_error')} ... #{text}"
|
||||||
logger.error(msg)
|
logger.error(msg)
|
||||||
|
|
Loading…
Reference in New Issue