Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
rlzdesenv authored Jun 24, 2021
1 parent 562bcf5 commit 7a70ea4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Bank/BrasilArrecadacaoService.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ public function createPix()
}

if ($this->getCpfDevedor()) {
$body->cpfDevedor = $this->getCpfDevedor();
$body->cpfDevedor = (float)$this->getCpfDevedor();
} elseif ($this->getCnpjDevedor()){
$body->cnpjDevedor = $this->getCnpjDevedor();
$body->cnpjDevedor = (float)$this->getCnpjDevedor();
} else {
throw new \Exception('CPF ou CNPJ não informado.');
}
Expand Down

0 comments on commit 7a70ea4

Please sign in to comment.