Fix ticket PDF generation by passing data directly to print_qr_code
This commit is contained in:
@@ -91,8 +91,8 @@ class TicketPdfGenerator
|
||||
raise "QR code data is empty or invalid"
|
||||
end
|
||||
|
||||
qrcode = RQRCode::QRCode.new(qr_code_data)
|
||||
pdf.print_qr_code(qrcode, extent: 120, align: :center)
|
||||
# Generate QR code - prawn-qrcode expects the data string directly
|
||||
pdf.print_qr_code(qr_code_data, extent: 120, align: :center)
|
||||
|
||||
pdf.move_down 15
|
||||
|
||||
|
||||
Reference in New Issue
Block a user