Class: CatarsePagarme::PaymentEngine
- Inherits:
-
Object
- Object
- CatarsePagarme::PaymentEngine
- Defined in:
- lib/catarse_pagarme/payment_engine.rb
Instance Method Summary collapse
- #can_do_refund? ⇒ Boolean
- #can_generate_second_slip? ⇒ Boolean
- #direct_refund(contribution) ⇒ Object
- #locale ⇒ Object
- #name ⇒ Object
- #review_path(contribution) ⇒ Object
- #second_slip_path(contribution) ⇒ Object
Instance Method Details
#can_do_refund? ⇒ Boolean
15 16 17 |
# File 'lib/catarse_pagarme/payment_engine.rb', line 15 def can_do_refund? true end |
#can_generate_second_slip? ⇒ Boolean
23 24 25 |
# File 'lib/catarse_pagarme/payment_engine.rb', line 23 def can_generate_second_slip? true end |
#direct_refund(contribution) ⇒ Object
19 20 21 |
# File 'lib/catarse_pagarme/payment_engine.rb', line 19 def direct_refund contribution contribution.pagarme_delegator.refund end |
#locale ⇒ Object
11 12 13 |
# File 'lib/catarse_pagarme/payment_engine.rb', line 11 def locale 'pt' end |
#name ⇒ Object
3 4 5 |
# File 'lib/catarse_pagarme/payment_engine.rb', line 3 def name 'Pagarme' end |
#review_path(contribution) ⇒ Object
7 8 9 |
# File 'lib/catarse_pagarme/payment_engine.rb', line 7 def review_path contribution url_helpers.review_pagarme_path(contribution) end |
#second_slip_path(contribution) ⇒ Object
27 28 29 |
# File 'lib/catarse_pagarme/payment_engine.rb', line 27 def second_slip_path(contribution) url_helpers.second_slip_pagarme_path(contribution) end |