Class: CatarseMoip::PaymentEngine

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

Instance Method Summary collapse

Instance Method Details

#can_do_refund?Boolean

Returns:

  • (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

#localeObject



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

def locale
  'pt'
end

#nameObject



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