Method: MerbMerchant::Billing::SecurePayTechGateway#purchase

Defined in:
lib/merb_merchant/billing/gateways/secure_pay_tech.rb

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



34
35
36
37
38
39
40
41
# File 'lib/merb_merchant/billing/gateways/secure_pay_tech.rb', line 34

def purchase(money, creditcard, options = {})
  post = SecurePayTechPostData.new

  add_invoice(post, money, options)
  add_creditcard(post, creditcard)        
       
  commit(:purchase, post)
end