Class: Spree::ConektaPayment
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Spree::ConektaPayment
- Defined in:
- app/models/spree/conekta_payment.rb
Instance Method Summary collapse
Instance Method Details
#actions ⇒ Object
4 5 6 |
# File 'app/models/spree/conekta_payment.rb', line 4 def actions %w{capture} end |
#can_capture?(payment) ⇒ Boolean
8 9 10 |
# File 'app/models/spree/conekta_payment.rb', line 8 def can_capture?(payment) ['checkout', 'pending'].include?(payment.state) end |