Active Merchant plugin

Plugin details

This library is supposed to aid in creating e-commerce software in Ruby. In the future we want to support all "good" payment gateways.

Websitehttp://activemerchant.org Repositoryhttp://tools.assembla.com/svn/breakout/breakout/vendor/plugins/active_merchant Tags payment, e-commerce LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://tools.assembla.com/svn/breakout/breakout/vendor/plugins/active_merchant

== Sample Usage

  # 10 dollars in cents
  ten_dollars = 1000

  credit_card = CreditCard.new(
    :number => '4242424242424242',
    :month => 8,
    :year => 2006,
    :name => 'Tobias Luetke',
    :type => 'visa'
  )

  if creditcard.valid?
    gateway = ActiveMerchant::Billing::AuthorizeNetGateway.new(
      :login    => 'LOGIN_ID',
      :password => 'TRANSACTION_KEY'
    )
    response = gateway.purchase(ten_dollars, credit_card)
    
    if response.success?
      ...
    else
      raise StandardError.new( response.message )
    end
  end

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: scott, 9 months ago