Class: CatarseMoip::PaymentEngine
- Inherits:
-
Object
- Object
- CatarseMoip::PaymentEngine
- Defined in:
- lib/catarse_moip/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
16 17 18 |
# File 'lib/catarse_moip/payment_engine.rb', line 16 def can_do_refund? true end |
#direct_refund(contribution) ⇒ Object
20 21 22 |
# File 'lib/catarse_moip/payment_engine.rb', line 20 def direct_refund contribution ::CatarseMoip::V2::Refund.start(contribution) end |
#locale ⇒ Object
12 13 14 |
# File 'lib/catarse_moip/payment_engine.rb', line 12 def locale 'pt' end |
#name ⇒ Object
4 5 6 |
# File 'lib/catarse_moip/payment_engine.rb', line 4 def name 'MoIP' end |
#review_path(contribution) ⇒ Object
8 9 10 |
# File 'lib/catarse_moip/payment_engine.rb', line 8 def review_path contribution CatarseMoip::Engine.routes.url_helpers.review_moip_path(contribution) end |