Sha256: 990e287fa924259265cc756a2cada00f7b9fb722a74889019c022e5c09a1e731

Contents?: true

Size: 475 Bytes

Versions: 34

Compression:

Stored size: 475 Bytes

Contents

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

  def provider_class
    ActiveMerchant::Billing::AuthorizeNetGateway
  end

  def options
    # add :test key in the options hash, as that is what the ActiveMerchant::Billing::AuthorizeNetGateway expects
    if self.prefers? :test_mode
      self.class.default_preferences[:test] = true
    else
      self.class.default_preferences.delete(:test)
    end

    super
  end
end

Version data entries

34 entries across 34 versions & 6 rubygems

Version Path
spree_core-0.70.7 app/models/gateway/authorize_net.rb
spree_core-0.70.6 app/models/gateway/authorize_net.rb
apispree_core-0.0.0 app/models/gateway/authorize_net.rb
My-Commerce_core-1.1.0 app/models/gateway/authorize_net.rb
My-Commerce_core-1.0.0 app/models/gateway/authorize_net.rb
MyCommerceapi-1.0.0 core/app/models/gateway/authorize_net.rb
MyCommerce-0.0.3 core/app/models/gateway/authorize_net.rb
rfcommerce_core-0.0.3 app/models/gateway/authorize_net.rb
spree_core-0.60.6 app/models/gateway/authorize_net.rb
spree_core-0.70.5 app/models/gateway/authorize_net.rb
spree_core-0.70.4 app/models/gateway/authorize_net.rb
spree_core-0.60.5 app/models/gateway/authorize_net.rb
spree_core-0.70.3 app/models/gateway/authorize_net.rb
spree_core-0.70.2 app/models/gateway/authorize_net.rb
spree_core-0.40.4 app/models/gateway/authorize_net.rb
spree_core-0.50.4 app/models/gateway/authorize_net.rb
spree_core-0.60.4 app/models/gateway/authorize_net.rb
spree_core-0.50.3 app/models/gateway/authorize_net.rb
spree_core-0.60.3 app/models/gateway/authorize_net.rb
spree_core-0.70.1 app/models/gateway/authorize_net.rb