Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::WirecardGateway

Constants

ENVELOPE_NAMESPACES

The Namespaces are not really needed, because it just tells the System, that there’s actually no namespace used. It’s just specified here for completeness.

LIVE_URL

Live server location

PERMITTED_TRANSACTIONS
RETURN_CODES
TEST_URL

Test server location

VALID_PHONE_FORMAT

Wirecard only allows phone numbers with a format like this: +xxx(yyy)zzz-zzzz-ppp, where:

xxx = Country code 
yyy = Area or city code 
zzz-zzzz = Local number 
ppp = PBX extension

For example, a typical U.S. or Canadian number would be “+1(202)555-1234-739” indicating PBX extension 739 at phone number 5551234 within area code 202 (country code 1).

Public Class Methods

new(options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/wirecard.rb, line 56
def initialize(options = {})
  # verify that username and password are supplied
  requires!(options, :login, :password)
  # unfortunately Wirecard also requires a BusinessCaseSignature in the XML request
  requires!(options, :signature)
  @options = options
  super
end

Public Instance Methods

authorize(money, creditcard, options = {}) click to toggle source

Authorization

# File lib/active_merchant/billing/gateways/wirecard.rb, line 71
def authorize(money, creditcard, options = {})
  prepare_options_hash(options)
  @options[:credit_card] = creditcard
  request = build_request(:authorization, money, @options)
  commit(request)
end
capture(money, authorization, options = {}) click to toggle source

Capture Authorization

# File lib/active_merchant/billing/gateways/wirecard.rb, line 80
def capture(money, authorization, options = {})
  prepare_options_hash(options)
  @options[:authorization] = authorization
  request = build_request(:capture_authorization, money, @options)
  commit(request)
end
purchase(money, creditcard, options = {}) click to toggle source

Purchase

# File lib/active_merchant/billing/gateways/wirecard.rb, line 89
def purchase(money, creditcard, options = {})
  prepare_options_hash(options)
  @options[:credit_card] = creditcard
  request = build_request(:purchase, money, @options)
  commit(request)
end
test?() click to toggle source

Should run against the test servers or not?

# File lib/active_merchant/billing/gateways/wirecard.rb, line 66
def test?
  @options[:test] || super
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.