Method: ActiveMerchant::Billing::CommercegateGateway#purchase

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

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



38
39
40
41
42
43
# File 'lib/active_merchant/billing/gateways/commercegate.rb', line 38

def purchase(money, creditcard, options = {})
  post = {}
  add_creditcard(post, creditcard)
  add_auth_purchase_options(post, money, options)
  commit('SALE', post)
end