Sha256: f97fc0ef31ebbbd5f2e913ebe05d308cf6c7b08a73efd06c77c1371969b8a378

Contents?: true

Size: 387 Bytes

Versions: 1

Compression:

Stored size: 387 Bytes

Contents

module Spree
  class Gateway::AuthorizeNet < Gateway
    preference :login, :string
    preference :password, :string

    def provider_class
      ActiveMerchant::Billing::AuthorizeNetGateway
    end

    def options_with_test_preference
      options_without_test_preference.merge(:test => self.preferred_test_mode)
    end

    alias_method_chain :options, :test_preference
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_gateway-2.2.1 app/models/spree/gateway/authorize_net.rb