PagSeguro::Notification
Fetch the authorization by its notificationCode.
# File lib/pagseguro/notification/authorization.rb, line 10 def authorization Authorization.find_by_notification_code(code) end
Detect if the notification is from an authorization.
# File lib/pagseguro/notification/authorization.rb, line 5 def authorization? type == "applicationAuthorization" end