Class: ActiveMerchant::Billing::RealexGateway
- Defined in:
- lib/active_merchant/billing/gateways/realex.rb
Overview
Realex us the leading CC gateway in Ireland see www.realexpayments.com Contributed by John Ward ([email protected]) 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
Constant Summary collapse
- URL =
'https://epage.payandshop.com/epage-remote.cgi'
- CARD_MAPPING =
{ 'master' => 'MC', 'visa' => 'VISA', 'american_express' => 'AMEX', 'diners_club' => 'DINERS', 'switch' => 'SWITCH', 'solo' => 'SWITCH', 'laser' => 'LASER' }
- BANK_ERROR =
REALEX_ERROR = "Gateway is in maintenance. Please try again later."
- ERROR =
CLIENT_DEACTIVATED = "Gateway Error"
Constants inherited from Gateway
Constants included from PostsData
PostsData::MAX_RETRIES, PostsData::OPEN_TIMEOUT, PostsData::READ_TIMEOUT
Instance Attribute Summary
Attributes inherited from Gateway
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ RealexGateway
constructor
A new instance of RealexGateway.
- #purchase(money, credit_card, options = {}) ⇒ Object
Methods inherited from Gateway
#card_brand, card_brand, inherited, supports?, #test?
Methods included from Utils
Methods included from CreditCardFormatting
Methods included from RequiresParameters
Methods included from PostsData
included, #retry_exceptions, #ssl_post
Constructor Details
#initialize(options = {}) ⇒ RealexGateway
Returns a new instance of RealexGateway.
45 46 47 48 49 |
# File 'lib/active_merchant/billing/gateways/realex.rb', line 45 def initialize( = {}) requires!(, :login, :password) @options = super end |
Instance Method Details
#purchase(money, credit_card, options = {}) ⇒ Object
51 52 53 54 55 56 |
# File 'lib/active_merchant/billing/gateways/realex.rb', line 51 def purchase(money, credit_card, = {}) requires!(, :order_id) request = (:purchase, money, credit_card, ) commit(request) end |