module CecabankCommon
Constants
- CECA_CURRENCIES_DICTIONARY
- CECA_ENCRIPTION
CECA’s MAGIC NUMBERS
Public Class Methods
included(base)
click to toggle source
# File lib/active_merchant/billing/gateways/cecabank/cecabank_common.rb, line 6 def self.included(base) base.supported_countries = ['ES'] base.supported_cardtypes = %i[visa master american_express] base.homepage_url = 'http://www.ceca.es/es/' base.display_name = 'Cecabank' base.default_currency = 'EUR' base.money_format = :cents end
new(options = {})
click to toggle source
Creates a new CecabankGateway
The gateway requires four values for connection to be passed in the options
hash.
Options¶ ↑
-
:merchant_id
– Cecabank’s merchant_id (REQUIRED) -
:acquirer_bin
– Cecabank’s acquirer_bin (REQUIRED) -
:terminal_id
– Cecabank’s terminal_id (REQUIRED) -
:cypher_key
– Cecabank’s cypher key (REQUIRED) -
:test
–true
orfalse
. If true, perform transactions against the test server. Otherwise, perform transactions against the production server.
Calls superclass method
# File lib/active_merchant/billing/gateways/cecabank/cecabank_common.rb, line 28 def initialize(options = {}) requires!(options, :merchant_id, :acquirer_bin, :terminal_id, :cypher_key) super end
Public Instance Methods
supports_scrubbing?()
click to toggle source
# File lib/active_merchant/billing/gateways/cecabank/cecabank_common.rb, line 33 def supports_scrubbing? true end