static void Main(string[] args) { bool isSandbox = false; EnvironmentConfiguration.ChangeEnvironment(isSandbox); String nofiticationCode = "B071CC714E044E04389CC4606FBEFAA3A1BD"; try { ApplicationCredentials credentials = PagSeguroConfiguration.GetApplicationCredentials(isSandbox); // TODO: Substitute the code below with a notification code for your authorization. // You receive this notification code through a post on the URL that you specify AuthorizationSummary authorization = NotificationService.CheckAuthorization(credentials, nofiticationCode); Console.WriteLine(authorization); Console.ReadKey(); } catch (PagSeguroServiceException exception) { Console.WriteLine(exception.Message + "\n"); foreach (ServiceError element in exception.Errors) { Console.WriteLine(element + "\n"); } Console.ReadKey(); } }