Class: Spree::Gateway::Paysera
- Inherits:
-
Spree::Gateway
- Object
- Spree::Gateway
- Spree::Gateway::Paysera
- Defined in:
- app/models/spree/gateway/paysera.rb
Instance Method Summary collapse
- #auto_capture? ⇒ Boolean
- #method_type ⇒ Object
- #provider_class ⇒ Object
- #purchase(_amount, _transaction_details, _options = {}) ⇒ Object
- #source_required? ⇒ Boolean
Instance Method Details
#auto_capture? ⇒ Boolean
20 21 22 |
# File 'app/models/spree/gateway/paysera.rb', line 20 def auto_capture? true end |
#method_type ⇒ Object
24 25 26 |
# File 'app/models/spree/gateway/paysera.rb', line 24 def method_type 'paysera' end |
#provider_class ⇒ Object
12 13 14 |
# File 'app/models/spree/gateway/paysera.rb', line 12 def provider_class Paysera end |
#purchase(_amount, _transaction_details, _options = {}) ⇒ Object
28 29 30 |
# File 'app/models/spree/gateway/paysera.rb', line 28 def purchase(_amount, _transaction_details, = {}) ActiveMerchant::Billing::Response.new(true, 'Paysera success', {}, {}) end |
#source_required? ⇒ Boolean
16 17 18 |
# File 'app/models/spree/gateway/paysera.rb', line 16 def source_required? false end |