class PagSeguro::Notification::Transaction

Public Instance Methods

transaction() click to toggle source

Fetch the transaction by its notificationCode.

# File lib/pagseguro/notification/transaction.rb, line 10
def transaction
  Transaction.find_by_notification_code(code)
end
transaction?() click to toggle source

Detect if the notification is from a transaction.

# File lib/pagseguro/notification/transaction.rb, line 5
def transaction?
  type == "transaction"
end