Skip to content
View in the app

A better way to browse. Learn more.

Loyverse Town

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

QR code on the receipt not sow

Featured Replies

According to jordanian goverment its manditory to print a QR code on each receipt that printer to show the TAX Number and TaX Value , 

we finished all the aspect regarding this entegration but the Qr code cant pass to Loyverse System can any one help 

We use this function to send teh QR code to the Loyverse API 

 public function updateReceiptWithQRCode($receiptId, $qrCode)

    {

        try {

            Log::channel('loyverse')->info('Updating receipt with QR code', [

                'receipt_id' => $receiptId

            ]);

 

            $response = Http::withHeaders([

                'Authorization' => 'Bearer ' . $this->apiKey

            ])->post($this->baseUrl . '/receipts/' . $receiptId . '/notes', [

                'note' => "JoFotara QR Code: " . $qrCode,

                'print_on_receipt' => true,

                'print_on_order_ticket' => false,

            ]);

 

            Log::channel('loyverse')->debug('Loyverse API response', [

                'status' => $response->status(),

                'body' => $response->json()

            ]);

 

            if (!$response->successful()) {

                $errorData = $response->json();

                Log::channel('loyverse')->error('Loyverse API Error', [

                    'status' => $response->status(),

                    'response' => $errorData,

                    'error_message' => $errorData['message'] ?? 'Unknown error'

                ]);

                throw new \Exception('Failed to update receipt with QR code');

            }

 

            Log::channel('loyverse')->info('Successfully updated receipt with QR code', [

                'receipt_id' => $receiptId

            ]);

 

            return true;

 

        } catch (\Exception $e) {

            Log::channel('loyverse')->error('Error updating Loyverse receipt with QR code', [

                'receipt_id' => $receiptId,

                'message' => $e->getMessage(),

                'trace' => $e->getTraceAsString()

            ]);

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.