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