Sending PagSeguro Sandbox notifications to the local address (C# ASP.NET MVC)

I'm integrating PagSeguro into an environment ASP.NET, and it was all going well until I got to the notification sending part of PagSeguro. As you can see in the image below, I have configured the following parameters for redirection and for notifications: Address setting for receiving transaction notification

The parameters involving the redirect worked correctly, with the transaction code being sent correctly and the buyer being redirected to mine page. However, when it comes to modifying the status of the transaction and the notification being sent to the configured address, nothing happens, with the method even being called. When I check the Log, the following message appears:

PagSeguro Log

To receive the notifications, I tried to use the methods as shown in the following images:

Method 1

Method 2

Method 3

However, none of them worked, with the Sandbox even calling the same.

Documentation related to receiving notification is at this link: https://dev.pagseguro.uol.com.br/documentacao/pagamento-online/notificacoes/api-de-notificacoes#notificacoes-de-transacoes

Would Anyone know the solution or could they point me where I am going wrong?

I appreciate it now.

Author: Guilherme Nascimento, 2018-01-05

1 answers

Hello.

I'm having this problem also to send notifications to my localhostwhen I click the " resend notification" button, but I think it's normal this type of notification doesn't work on localhost.

In my case, to work sending notifications, I send them via the button " resend local notification ".

Take a test and see if you can get the local notification.

If this appears message:

insert the description of the image here

See if in the right corner of the URL field it has this symbol:



if it is, click it and select " load unsafe scripts" and try sending the local notification again.

 0
Author: Rodrigo Pauletti, 2018-01-14 13:07:12