Module: VSafe

Defined in:
lib/vsafe.rb,
lib/vsafe/client.rb,
lib/vsafe/config.rb,
lib/vsafe/version.rb,
lib/vsafe/response.rb,
lib/vsafe/card_type.rb,
lib/vsafe/avs_result.rb,
lib/vsafe/cvn_result.rb,
lib/vsafe/auth_result.rb,
lib/vsafe/client_error.rb,
lib/vsafe/charge_source.rb,
lib/vsafe/request_error.rb,
lib/vsafe/payment_status.rb,
lib/vsafe/response_error.rb,
lib/vsafe/responses/charge_sale.rb,
lib/vsafe/responses/charge_confirm.rb,
lib/vsafe/responses/reverse_payment.rb,
lib/vsafe/responses/charge_authorize.rb,
lib/vsafe/responses/get_session_tags.rb,
lib/vsafe/responses/get_payment_status.rb,
lib/vsafe/responses/validate_charge_account.rb,
lib/vsafe/responses/charge_account_to_temporary_token.rb

Defined Under Namespace

Modules: Responses Classes: AuthResult, AvsResult, CardType, ChargeSource, Client, ClientError, Config, CvnResult, PaymentStatus, RequestError, Response, ResponseError

Constant Summary collapse

VERSION =
"0.2.6"

Class Method Summary collapse

Class Method Details

.configObject



11
12
13
# File 'lib/vsafe.rb', line 11

def self.config
  @config ||= Config.new
end

.configure {|config| ... } ⇒ Object

Yields:



5
6
7
8
9
# File 'lib/vsafe.rb', line 5

def self.configure(&block)
  yield config

  nil
end