Sha256: acd7b4ebcfef730abbe74b5719ff0a1c6213aed8033e3fb1b054132ec03f7ac4

Contents?: true

Size: 1.49 KB

Versions: 2

Compression:

Stored size: 1.49 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/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

2 entries across 2 versions & 1 rubygems

Version Path
pagseguro-transparente-0.1.0 lib/pagseguro.rb
pagseguro-transparente-0.0.9 lib/pagseguro.rb