Skip to content

Instantly share code, notes, and snippets.

@divineforest
Created February 4, 2015 13:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save divineforest/d151ae58c2ff49f618d0 to your computer and use it in GitHub Desktop.
Save divineforest/d151ae58c2ff49f618d0 to your computer and use it in GitHub Desktop.
Spree example gateway
module Spree
class Gateway::NewGateway < Gateway
preference :login, :string
preference :password, :string
preference :signature, :string
preference :currency_code, :string
def provider_class
ActiveMerchant::Billing::New
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment