Pagseguro does not redirect with transaction code

2

I am using the pagseguro API in php so that after payment the client is redirected to a specific page, I already configured it in Application > Redirect page url and the parameter I want to receive via GET. As I'm using the API it seems to ignore this setting in the panel and only redirect what I set in the code this way:

private $redirectURL = http://meusite.com.br/site/cadastro/";

$this->curl = new \PagSeguroPaymentRequest();
$this->curl->setRedirectUrl($this->redirectURL);

The page is redirected to " link " but I need to receive the transaction code along with the url like this: / p>

http://meusite.com.br/site/cadastro/transaction_id=E884542-81B3-4419-9A75-BCC6FB495EF1

Via API How can I set the receive of this parameter in the url?

    
asked by anonymous 28.04.2016 / 16:14

0 answers