Last active
March 13, 2017 17:25
-
-
Save jean-lourenco/c9a80d024917796971119ca604e81ae8 to your computer and use it in GitHub Desktop.
Gerar boleto pelo pagueveloz-php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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