Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::QuickpayGateway

Public Class Methods

new(options = {}) click to toggle source

The login is the QuickpayId The password is the md5checkword from the Quickpay manager To use the API-key from the Quickpay manager, specify :api-key Using the API-key, requires that you use version 4. Specify :version => 4 in options.

# File lib/active_merchant/billing/gateways/quickpay.rb, line 93
def initialize(options = {})
  requires!(options, :login, :password)
  @protocol = options.delete(:version) || 3 # default to protocol version 3
  @options = options
  super
end

Public Instance Methods

authorize(money, credit_card_or_reference, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/quickpay.rb, line 100
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, options)
  add_autocapture(post, false)
  add_fraud_parameters(post, options)
  add_testmode(post)

  commit(recurring_or_authorize(credit_card_or_reference), post)
end
capture(money, authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/quickpay.rb, line 125
def capture(money, authorization, options = {})
  post = {}

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

  commit(:capture, post)
end
credit(money, identification, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/quickpay.rb, line 154
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/quickpay.rb, line 113
def purchase(money, credit_card_or_reference, options = {})
  post = {}

  add_amount(post, money, options)
  add_creditcard_or_reference(post, credit_card_or_reference, options)
  add_invoice(post, options)
  add_fraud_parameters(post, options)
  add_autocapture(post, true)

  commit(recurring_or_authorize(credit_card_or_reference), post)
end
refund(money, identification, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/quickpay.rb, line 144
def refund(money, identification, options = {})
  post = {}

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

  commit(:refund, post)
end
store(creditcard, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/quickpay.rb, line 159
def store(creditcard, options = {})
  post = {}

  add_creditcard(post, creditcard, options)
  add_invoice(post, options)
  add_description(post, options)
  add_fraud_parameters(post, options)
  add_testmode(post)

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

  add_reference(post, identification)
  add_fraud_parameters(post, options)

  commit(:cancel, post)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.