Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::SallieMaeGateway

Constants

URL

Public Class Methods

new(options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/sallie_mae.rb, line 18
def initialize(options = {})
  requires!(options, :login)
  @options = options
  super
end

Public Instance Methods

authorize(money, creditcard, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/sallie_mae.rb, line 28
def authorize(money, creditcard, options = {})
  post = PostData.new
  add_invoice(post, options)
  add_creditcard(post, creditcard)
  add_address(post, creditcard, options)
  add_customer_data(post, options)

  commit(:authonly, money, post)
end
capture(money, authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/sallie_mae.rb, line 48
def capture(money, authorization, options = {})
  post = PostData.new
  post[:postonly] = authorization
  commit(:capture, money, post)
end
purchase(money, creditcard, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/sallie_mae.rb, line 38
def purchase(money, creditcard, options = {})
  post = PostData.new
  add_invoice(post, options)
  add_creditcard(post, creditcard)
  add_address(post, creditcard, options)
  add_customer_data(post, options)

  commit(:sale, money, post)
end
test?() click to toggle source
# File lib/active_merchant/billing/gateways/sallie_mae.rb, line 24
def test?
  @options[:login] == "TEST0"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.