Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::InstapayGateway

Public Class Methods

new(options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/instapay.rb, line 22
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/instapay.rb, line 28
def authorize(money, creditcard, options = {})
  post = {}
  post[:authonly] = 1
  add_amount(post, money)
  add_invoice(post, options)
  add_creditcard(post, creditcard)
  add_address(post, options)
  add_customer_data(post, options)

  commit('ns_quicksale_cc', post)
end
capture(money, authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/instapay.rb, line 51
def capture(money, authorization, options = {})
  post = {}
  add_amount(post, money)
  add_reference(post, authorization)        
  commit('ns_quicksale_cc', post)
end
purchase(money, creditcard, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/instapay.rb, line 40
def purchase(money, creditcard, options = {})
  post = {}
  add_amount(post, money)
  add_invoice(post, options)
  add_creditcard(post, creditcard)
  add_address(post, options)
  add_customer_data(post, options)

  commit('ns_quicksale_cc', post)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.