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



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

def provider_class
  ActiveMerchant::Billing::BanwireGateway
end

#purchase(money, creditcard, gateway_options) ⇒ Object



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

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