0
I wanted to know how to deal with Pagseguro notifications and save them in LOG.txt
I made this one in this print http://prntscr.com/k08zyo but it didn’t work..
0
I wanted to know how to deal with Pagseguro notifications and save them in LOG.txt
I made this one in this print http://prntscr.com/k08zyo but it didn’t work..
0
Jheyson good night. I worked a lot with the pagseguro, and always when I needed to pick up the answer and save in a log I used the file_put_contents
Browser other questions tagged php
You are not signed in. Login or sign up in order to post.
I don’t necessarily need to save in log I want to get the answer and get some information from her so I chose to save it as log
– Jheyson Henrique
Oh yes, I got it, you can do the following, enter the sandbox, take the notificationCode and put it right into your code, and of course don’t use the POST, so you’ll be able to see exactly how the return comes, if you can’t let me know that I give an example to you.
– Alexandre Cardoso
The real problem is that the post is not even coming to the same site I did the test and not enough, in my account Pagseguro this all configured the notification link
– Jheyson Henrique
That’s the problem, you’re hoping to get something on your site, and in case the ideal would be you simulate what’s coming, which is what I’m proposing. Instead of putting $_POST['notificationCode'], put the notificationCode that you picked up in the sandbox, and that’s it, you’ll have all the data that will arrive on your site. But why the POST is not coming, then I don’t know, I would have to see how you are doing the checkout.
– Alexandre Cardoso
The problem is that the pagseguro itself does not send, I did the test by placing for when the notification URL has any access it sends me an email, I made a purchase with another account and nothing arrived, I believe there may be something wrong I don’t know what it is or why the post does not arrive
– Jheyson Henrique