I'm developing an ad site where the advertiser must pay for your ad before it's available online.
I already have an integration with Paypal, to use a credit card, but I would also like to integrate Pagseguro, since it allows other payment methods, such as ticket, online debit and deposit into account.
However, I'm having a hard time automating payment via Pagseguro, because when I checkout, the only identifier I get in the response is the checkout identifier. The transaction ID is only sent when the user is redirected from Pagseguro to my site. But if it closes the page before that, the transaction is still done but I can not receive it, and then there is an effected transaction that has not been registered by my system because it does not have an identifier. Even though I get the notification, I still do not know who it belongs to because I did not previously receive the transaction ID.
I'm eating some fly and I did not find the transaction identifier or the Pagseguro system anyway, so that all transactions are manually validated?
Note: I'm developing the Python integration (because my site runs in Django), but the libraries I've found are outdated and no longer working, so I'm using a solution of my own.