Sha256: 26dcef7779377199a464b50e2788bcbce8a8d3bf985c6aaa6f07bfef867a50fb

Contents?: true

Size: 1.51 KB

Versions: 1

Compression:

Stored size: 1.51 KB

Contents

require "active_model"
require "pagseguro/version"
require "pagseguro/request"
require "pagseguro/session"
require "pagseguro/session/response"
require "pagseguro/item"
require "pagseguro/items"
require "pagseguro/payment"
require "pagseguro/payment/serializer"
require "pagseguro/transaction"
require "pagseguro/transaction/address"
require "pagseguro/transaction/item"
require "pagseguro/transaction/items"
require "pagseguro/transaction/payment_method"
require "pagseguro/transaction/phone"
require "pagseguro/transaction/sender"
require "pagseguro/transaction/shipping"
require "pagseguro/notification"
require "pagseguro/query"
require "pagseguro/sender"
require "pagseguro/phone"
require "pagseguro/document"
require "pagseguro/bank"
require "pagseguro/credit_card"
require "pagseguro/holder"
require "pagseguro/address"
require "pagseguro/shipping"
require "pagseguro/installment"

I18n.enforce_available_locales = false
I18n.load_path += Dir[File.expand_path('../../config/locales/*.yml',  __FILE__)]

module PagSeguro
  class << self
    # Primary e-mail associated with this account.
    attr_accessor :email

    # The API token associated with this account.
    attr_accessor :token

    # The PagSeguro environment.
    # Only +production+ for now.
    attr_accessor :environment
  end

  self.environment = :production

  # Set the global configuration.
  #
  #   PagSeguro.configure do |config|
  #     config.email = "john@example.com"
  #     config.token = "abc"
  #   end
  #
  def self.configure(&block)
    yield self
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pagseguro-transparente-0.1.1 lib/pagseguro.rb