Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::RealexGateway

Realex is the leading CC gateway in Ireland see www.realexpayments.com Contributed by John Ward (john@ward.name) see thinedgeofthewedge.blogspot.com

Realex works using the following login - The unique id of the merchant password - The secret is used to digitally sign the request account - This is an optional third part of the authentication process and is used if the merchant wishes do distuinguish cc traffic from the different sources by using a different account. This must be created in advance

the Realex team decided to make the orderid unique per request, so if validation fails you can not correct and resend using the same order id

Public Class Methods

new(options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/realex.rb, line 45
def initialize(options = {})
  requires!(options, :login, :password)
  options[:refund_hash] = Digest::SHA1.hexdigest(options[:rebate_secret]) if options.has_key?(:rebate_secret)
  @options = options
  super
end

Public Instance Methods

authorize(money, creditcard, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/realex.rb, line 59
def authorize(money, creditcard, options = {})
  requires!(options, :order_id)

  request = build_purchase_or_authorization_request(:authorization, money, creditcard, options)
  commit(request)
end
capture(money, authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/realex.rb, line 66
def capture(money, authorization, options = {})
  request = build_capture_request(authorization, options)
  commit(request)
end
credit(money, authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/realex.rb, line 76
def credit(money, authorization, options = {})
  deprecated CREDIT_DEPRECATION_MESSAGE
  refund(money, authorization, options)
end
purchase(money, credit_card, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/realex.rb, line 52
def purchase(money, credit_card, options = {})
  requires!(options, :order_id)

  request = build_purchase_or_authorization_request(:purchase, money, credit_card, options)
  commit(request)
end
refund(money, authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/realex.rb, line 71
def refund(money, authorization, options = {})
  request = build_refund_request(money, authorization, options)
  commit(request)
end
void(authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/realex.rb, line 81
def void(authorization, options = {})
  request = build_void_request(authorization, options)
  commit(request)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.