Class: Gateway::WalletoneBase

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

Instance Method Summary collapse

Instance Method Details

#method_typeObject


22
23
24
# File 'app/models/spree/gateway/walletone_base.rb', line 22

def method_type
  'walletone_base'
end

#providerObject


14
15
16
# File 'app/models/spree/gateway/walletone_base.rb', line 14

def provider
  Spree::WalletoneCheckout.new()
end

#provider_classObject


10
11
12
# File 'app/models/spree/gateway/walletone_base.rb', line 10

def provider_class
  Spree::WalletonePaymentProcessing
end

#ptenabledObject


18
19
20
# File 'app/models/spree/gateway/walletone_base.rb', line 18

def ptenabled
  preferences[:ptenabled] ? preferences[:ptenabled].split(",").map(&:strip) : []
end

#supports?(source) ⇒ Boolean


6
7
8
# File 'app/models/spree/gateway/walletone_base.rb', line 6

def supports?(source)
  true
end