Skip to content

Conversation

@mentec
Copy link

@mentec mentec commented Mar 24, 2014

É necessário alterar o código nos métodos: setNotificationURL() e setReturnURL(), para que possam receber & na url:

DE:
$this->xml->InstrucaoUnica->addChild('URLNotificacao', $url);
$this->xml->InstrucaoUnica->addChild('URLRetorno', $url);

PARA:
$this->xml->InstrucaoUnica->URLNotificacao = $url;
$this->xml->InstrucaoUnica->URLRetorno = $url;

Como informado aqui: http://www.php.net/manual/pt_BR/simplexmlelement.addchild.php#112204

É necessário alterar o código nos métodos: setNotificationURL() e setReturnURL(), para que possam receber & na url:

DE:
$this->xml->InstrucaoUnica->addChild('URLNotificacao', $url);
$this->xml->InstrucaoUnica->addChild('URLRetorno', $url);

PARA:
$this->xml->InstrucaoUnica->URLNotificacao = $url;
$this->xml->InstrucaoUnica->URLRetorno = $url;

Como informado aqui: http://www.php.net/manual/pt_BR/simplexmlelement.addchild.php#112204
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant