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
# 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
# File lib/active_merchant/billing/gateways/realex.rb, line 66 def capture(money, authorization, options = {}) request = build_capture_request(authorization, options) commit(request) end
# File lib/active_merchant/billing/gateways/realex.rb, line 76 def credit(money, authorization, options = {}) deprecated CREDIT_DEPRECATION_MESSAGE refund(money, authorization, options) end
# 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
Generated with the Darkfish Rdoc Generator 2.