Class: CatarsePaypalExpress::PaymentEngine

Inherits:
Object
  • Object
show all
Defined in:
lib/catarse_paypal_express/payment_engine.rb

Instance Method Summary collapse

Instance Method Details

#can_do_refund?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/catarse_paypal_express/payment_engine.rb', line 12

def can_do_refund?
  true
end

#direct_refund(contribution) ⇒ Object



16
17
18
# File 'lib/catarse_paypal_express/payment_engine.rb', line 16

def direct_refund contribution
  CatarsePaypalExpress::ContributionActions.new(contribution).refund
end

#localeObject



20
21
22
# File 'lib/catarse_paypal_express/payment_engine.rb', line 20

def locale
  'en'
end

#nameObject



4
5
6
# File 'lib/catarse_paypal_express/payment_engine.rb', line 4

def name
  'PayPal'
end

#review_path(contribution) ⇒ Object



8
9
10
# File 'lib/catarse_paypal_express/payment_engine.rb', line 8

def review_path contribution
  CatarsePaypalExpress::Engine.routes.url_helpers.review_paypal_express_path(contribution)
end