|
|
@@ -26,7 +26,7 @@ class GiftCardQrCodeService
|
|
|
try {
|
|
|
// Generate regular QR code with cardPass as content
|
|
|
$qrContent = $cardPass;
|
|
|
-
|
|
|
+
|
|
|
// Generate local temp file path
|
|
|
$tempDir = runtime_path() . 'temp' . DIRECTORY_SEPARATOR;
|
|
|
if (!is_dir($tempDir)) {
|
|
|
@@ -37,9 +37,9 @@ class GiftCardQrCodeService
|
|
|
$tempFilePath = $tempDir . $tempFileName;
|
|
|
|
|
|
// Generate 430x430 square QR code
|
|
|
- QrCode::format('png')
|
|
|
- ->size(430)
|
|
|
+ QrCode::size(430)
|
|
|
->margin(2)
|
|
|
+ ->format('png')
|
|
|
->generate($qrContent, $tempFilePath);
|
|
|
|
|
|
Log::info('Regular QR code generated successfully', [
|