Skip to content

Commit

Permalink
qr code classe que gera
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardokum committed Jan 17, 2024
1 parent dc4060e commit 279320f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/Boleto/AbstractBoleto.php
Original file line number Diff line number Diff line change
Expand Up @@ -1887,8 +1887,15 @@ public function getPixQrCodeBase64()
}

$options = new QROptions;
$options->outputType = QROutputInterface::GDIMAGE_PNG;
$options->addQuietzone = true;

if (version_compare(PHP_VERSION, '7.4.0') >= 0) {
$options->outputType = QROutputInterface::GDIMAGE_PNG;
$options->addQuietzone = true;
} else {
$options->outputType = QRCode::OUTPUT_IMAGE_PNG;
$options->eccLevel = QRCode::ECC_L;
}

$options->scale = 20;
$options->quietzoneSize = 1;
$options->drawLightModules = false;
Expand Down

0 comments on commit 279320f

Please sign in to comment.