Class: Spree::Gateway::Paysera

Inherits:
Spree::Gateway
  • Object
show all
Defined in:
app/models/spree/gateway/paysera.rb

Instance Method Summary collapse

Instance Method Details

#auto_capture?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'app/models/spree/gateway/paysera.rb', line 20

def auto_capture?
  true
end

#method_typeObject



24
25
26
# File 'app/models/spree/gateway/paysera.rb', line 24

def method_type
  'paysera'
end

#provider_classObject



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, _options = {})
  ActiveMerchant::Billing::Response.new(true, 'Paysera success', {}, {})
end

#source_required?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'app/models/spree/gateway/paysera.rb', line 16

def source_required?
  false
end