Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::EpayGateway

Public Class Methods

new(options = {}) click to toggle source

login: merchant number password: referrer url (for authorize authentication)

# File lib/active_merchant/billing/gateways/epay.rb, line 55
def initialize(options = {})
  requires!(options, :login, :password)
  @options = options
  super
end

Public Instance Methods

authorize(money, credit_card_or_reference, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/epay.rb, line 61
def authorize(money, credit_card_or_reference, options = {})
  post = {}

  add_amount(post, money, options)
  add_invoice(post, options)
  add_creditcard_or_reference(post, credit_card_or_reference)
  add_instant_capture(post, false)

  commit(:authorize, post)
end
capture(money, authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/epay.rb, line 83
def capture(money, authorization, options = {})
  post = {}

  add_reference(post, authorization)
  add_amount_without_currency(post, money)

  commit(:capture, post)
end
credit(money, identification, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/epay.rb, line 109
def credit(money, identification, options = {})
  deprecated CREDIT_DEPRECATION_MESSAGE
  refund(money, identification, options)
end
purchase(money, credit_card_or_reference, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/epay.rb, line 72
def purchase(money, credit_card_or_reference, options = {})
  post = {}

  add_amount(post, money, options)
  add_creditcard_or_reference(post, credit_card_or_reference)
  add_invoice(post, options)
  add_instant_capture(post, true)

  commit(:authorize, post)
end
refund(money, identification, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/epay.rb, line 100
def refund(money, identification, options = {})
  post = {}

  add_amount_without_currency(post, money)
  add_reference(post, identification)

  commit(:credit, post)
end
void(identification, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/epay.rb, line 92
def void(identification, options = {})
  post = {}

  add_reference(post, identification)

  commit(:void, post)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.