Module: PagseguroCatcher

Defined in:
lib/pagseguro_catcher/transaction/base.rb,
lib/pagseguro_catcher.rb,
lib/pagseguro_catcher/checker.rb,
lib/pagseguro_catcher/constants.rb,
lib/pagseguro_catcher/transaction.rb,
lib/pagseguro_catcher/transaction/item.rb,
lib/pagseguro_catcher/transaction/amount.rb,
lib/pagseguro_catcher/transaction/sender.rb,
lib/pagseguro_catcher/transaction/shipping.rb

Overview

p = PagseguroCatcher::Transaction::Base.new(File.open(‘spec/support/return.xml’).read)

Defined Under Namespace

Modules: Transaction Classes: Checker

Constant Summary collapse

XML_CHARSET =
"ISO-8859-1"
TRANSACTION_TYPES =
{ 
  1 => "Pagamento", 
  2 => "Transferência", 
  3 => "Adição de fundos", 
  4 => "Cobrança", 
  5 => "Bônus" 
}
TRANSACTION_STATUS =
{ 
  1 => "Aguardando pagamento", 
  2 => "Em análise", 
  3 => "Paga", 
  4 => "Disponível", 
  5 => "Em disputa", 
  6 => "Devolvida", 
  7 => "Cancelada" 
}
PAYMENT_TYPES =
{ 
  1 => "Cartão de crédito", 
  2 => "Boleto", 
  3 => "Débito online (TEF)", 
  4 => "Saldo PagSeguro", 
  5 => "Oi Paggo" 
}
PAYMENT_CODES =
{ 
  101	=> "Cartão de crédito Visa", 
  102	=> "Cartão de crédito MasterCard",
  103	=> "Cartão de crédito American Express",
  104	=> "Cartão de crédito Diners",
  105	=> "Cartão de crédito Hipercard",
  106	=> "Cartão de crédito Aura",
  107	=> "Cartão de crédito Elo",
  201	=> "Boleto Bradesco", 
  202	=> "Boleto Santander", 
  301	=> "Débito online Bradesco",
  302	=> "Débito online Itaú",
  303	=> "Débito online Unibanco",
  304	=> "Débito online Banco do Brasil",
  305	=> "Débito online Banco Real",
  306	=> "Débito online Banrisul",
  401	=> "Saldo PagSeguro",
  501	=> "Oi Paggo"
}
SHIPPING_TYPES =
{
  1 => "Encomenda normal (PAC)",
  2 => "SEDEX",
  3	=> "Tipo de frete não especificado"
}

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.emailObject

Returns the value of attribute email.



17
18
19
# File 'lib/pagseguro_catcher.rb', line 17

def email
  @email
end

.tokenObject

Returns the value of attribute token.



17
18
19
# File 'lib/pagseguro_catcher.rb', line 17

def token
  @token
end

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



19
20
21
# File 'lib/pagseguro_catcher.rb', line 19

def configure
  yield self
end