Method: ActiveMerchant::Billing::SallieMaeGateway#purchase

Defined in:
lib/active_merchant/billing/gateways/sallie_mae.rb

#purchase(money, creditcard, options = {}) ⇒ Object



38
39
40
41
42
43
44
45
46
# 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