Skip to content

Instantly share code, notes, and snippets.

@jean-lourenco
Last active March 13, 2017 17:25
Show Gist options
  • Save jean-lourenco/c9a80d024917796971119ca604e81ae8 to your computer and use it in GitHub Desktop.
Save jean-lourenco/c9a80d024917796971119ca604e81ae8 to your computer and use it in GitHub Desktop.
Gerar boleto pelo pagueveloz-php
$boleto = PagueVeloz::Boleto();
$boleto->auth
->setEmail('suaassinaturacompagueveloz@dominio.com')
->setToken('seutokenacessoaopagueveloz');
$boleto->dto
->setValor(740)
->setVencimento('400000000000044')
->setSeuNumero('123')
->setSacado('John Doe')
->setCPFCNPJSacado('123456789')
->setParcela('1')
->setLinha1('Recusar após vencimento')
->setLinha2('Pagável em lotéricas')
->setCPFCNPJCedente('123456789')
->setCedente('John Hathorne')
->setDataPagamento('123')
->setPdf(true)
->setSacado('1016');
$response = $boleto->Post();
$boletoPagueVeloz = json_decode($response->body);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment