Method: ActiveMerchant::Billing::SallieMaeGateway#authorize

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

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



28
29
30
31
32
33
34
35
36
# 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