Sha256: ed0114ca8955b34c1b5a027427571a7a56ba33d0eb5fc7925ca7bea5be191411

Contents?: true

Size: 944 Bytes

Versions: 15

Compression:

Stored size: 944 Bytes

Contents

class CreateAuthorizenetGateway < ActiveRecord::Migration
  def self.up
    login = GatewayOption.create(:name => "login",
                                 :description => "Your Authorize.Net API Login ID")
    password = GatewayOption.create(:name => "password",
                                    :description => "Your Authorize.Net Transaction Key.")
    test = GatewayOption.create(:name => "test",
                                :description => "If true, perform transactions against the test server. Otherwise, perform transactions against the production server.")
                                
    gateway = Gateway.create(:name => "Authorize.net",
                             :clazz => "ActiveMerchant::Billing::AuthorizeNetGateway",
                             :description => "Active Merchant's Authorize.Net Gateway.",
                             :gateway_options => [login, password, test])
  end
 
  def self.down
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
spree-enriquez-0.9.4 vendor/extensions/payment_gateway/db/migrate/20081119210419_create_authorizenet_gateway.rb
spree-0.9.4 vendor/extensions/payment_gateway/db/migrate/20081119210419_create_authorizenet_gateway.rb
spree-0.9.3 vendor/extensions/payment_gateway/db/migrate/20081119210419_create_authorizenet_gateway.rb
spree-0.9.2 vendor/extensions/payment_gateway/db/migrate/20081119210419_create_authorizenet_gateway.rb
spree-0.9.1 vendor/extensions/payment_gateway/db/migrate/20081119210419_create_authorizenet_gateway.rb
spree-0.9.0 vendor/extensions/payment_gateway/db/migrate/20081119210419_create_authorizenet_gateway.rb
spree-0.8.4 vendor/extensions/payment_gateway/db/migrate/20081119210419_create_authorizenet_gateway.rb
spree-0.8.5 vendor/extensions/payment_gateway/db/migrate/20081119210419_create_authorizenet_gateway.rb
spree-0.6.0 vendor/extensions/payment_gateway/db/migrate/20081119210419_create_authorizenet_gateway.rb
spree-0.7.1 vendor/extensions/payment_gateway/db/migrate/20081119210419_create_authorizenet_gateway.rb
spree-0.7.0 vendor/extensions/payment_gateway/db/migrate/20081119210419_create_authorizenet_gateway.rb
spree-0.8.0 vendor/extensions/payment_gateway/db/migrate/20081119210419_create_authorizenet_gateway.rb
spree-0.8.1 vendor/extensions/payment_gateway/db/migrate/20081119210419_create_authorizenet_gateway.rb
spree-0.8.2 vendor/extensions/payment_gateway/db/migrate/20081119210419_create_authorizenet_gateway.rb
spree-0.8.3 vendor/extensions/payment_gateway/db/migrate/20081119210419_create_authorizenet_gateway.rb