Class: ActiveMerchant::Billing::UsaEpayGateway
- Defined in:
- lib/active_merchant/billing/gateways/usa_epay.rb
Overview
Delegates to the appropriate gateway, either the Transaction or Advanced depending on options passed to new.
Constant Summary
Constants inherited from Gateway
Gateway::CREDIT_DEPRECATION_MESSAGE, Gateway::RECURRING_DEPRECATION_MESSAGE, Gateway::STANDARD_ERROR_CODE
Instance Attribute Summary
Attributes inherited from Gateway
Class Method Summary collapse
-
.new(options = {}) ⇒ Object
Creates an instance of UsaEpayTransactionGateway by default, but if :software id or :live_url are passed in the options hash it will create an instance of UsaEpayAdvancedGateway.
Methods inherited from Gateway
#add_field_to_post_if_present, #add_fields_to_post_if_present, #card_brand, card_brand, #generate_unique_id, inherited, #initialize, #scrub, #supported_countries, supported_countries, supported_countries=, supports?, #supports_network_tokenization?, #supports_scrubbing?, #test?
Methods included from CreditCardFormatting
Methods included from PostsData
included, #raw_ssl_request, #ssl_get, #ssl_post, #ssl_request
Constructor Details
This class inherits a constructor from ActiveMerchant::Billing::Gateway
Class Method Details
.new(options = {}) ⇒ Object
Creates an instance of UsaEpayTransactionGateway by default, but if :software id or :live_url are passed in the options hash it will create an instance of UsaEpayAdvancedGateway.
16 17 18 19 20 21 22 |
# File 'lib/active_merchant/billing/gateways/usa_epay.rb', line 16 def self.new(={}) if .has_key?(:software_id) || .has_key?(:live_url) UsaEpayAdvancedGateway.new() else UsaEpayTransactionGateway.new() end end |