module Spree class Gateway::Banwire < Gateway preference :login, :string def provider_class ActiveMerchant::Billing::BanwireGateway end def purchase(money, creditcard, gateway_options) gateway_options[:description] = "Spree Order" provider.purchase(money, creditcard, gateway_options) end end end