Class: CatarsePaypalExpress::PaymentEngine
- Inherits:
-
Object
- Object
- CatarsePaypalExpress::PaymentEngine
- Defined in:
- lib/catarse_paypal_express/payment_engine.rb
Instance Method Summary collapse
- #can_do_refund? ⇒ Boolean
- #direct_refund(contribution) ⇒ Object
- #locale ⇒ Object
- #name ⇒ Object
- #review_path(contribution) ⇒ Object
Instance Method Details
#can_do_refund? ⇒ 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 |
#locale ⇒ Object
20 21 22 |
# File 'lib/catarse_paypal_express/payment_engine.rb', line 20 def locale 'en' end |
#name ⇒ Object
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 |