Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::JetpayGateway

Public Class Methods

new(options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/jetpay.rb, line 65
def initialize(options = {})
  requires!(options, :login)
  @options = options
  super
end

Public Instance Methods

authorize(money, credit_card, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/jetpay.rb, line 75
def authorize(money, credit_card, options = {})
  commit(money, build_authonly_request(money, credit_card, options))
end
capture(money, reference, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/jetpay.rb, line 79
def capture(money, reference, options = {})
  commit(money, build_capture_request('CAPT', reference.split(";").first))
end
credit(money, transaction_id_or_card, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/jetpay.rb, line 88
def credit(money, transaction_id_or_card, options = {})
  if transaction_id_or_card.is_a?(String)
    deprecated CREDIT_DEPRECATION_MESSAGE
    refund(money, transaction_id_or_card, options)
  else
    commit(money, build_credit_request('CREDIT', money, nil, transaction_id_or_card))
  end
end
purchase(money, credit_card, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/jetpay.rb, line 71
def purchase(money, credit_card, options = {})
  commit(money, build_sale_request(money, credit_card, options))
end
refund(money, reference, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/jetpay.rb, line 97
def refund(money, reference, options = {})
  transaction_id = reference.split(";").first
  credit_card = options[:credit_card]
  commit(money, build_credit_request('CREDIT', money, transaction_id, credit_card))
end
void(reference, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/jetpay.rb, line 83
def void(reference, options = {})
  transaction_id, approval, amount = reference.split(";")
  commit(amount.to_i, build_void_request(amount.to_i, transaction_id, approval))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.