Class: Gateway::Banwire

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

Instance Method Summary collapse

Instance Method Details

#provider_classObject



7
8
9
# File 'app/models/spree/gateway/banwire.rb', line 7

def provider_class
  ActiveMerchant::Billing::BanwireGateway
end

#purchase(money, creditcard, gateway_options) ⇒ Object



11
12
13
14
# File 'app/models/spree/gateway/banwire.rb', line 11

def purchase(money, creditcard, gateway_options)
  gateway_options[:description] = "Spree Order"
  provider.purchase(money, creditcard, gateway_options)
end