Jacek Kowalski
2026-02-16 3a28356193fdcbec0a29783efc7797dc7175ec82
public.php
@@ -2,7 +2,16 @@
require_once(__DIR__ . '/vendor/autoload.php');
try {
   require_once(__DIR__ . '/hook_enable.php');
   if (isset($_GET['barcode'])) {
      header('Content-Type: image/svg+xml');
      echo (new \chillerlan\QRCode\QRCode(new \chillerlan\QRCode\QROptions([
         'outputBase64' => false,
         'addQuietzone' => false,
         'drawLightModules' => false,
         'connectPaths' => true,
      ])))->render($_GET['barcode']);
      die();
   }
   $helper = new \SIPL\UCRM\wFirma\UcrmHelper();
   $event = $helper->getCurrentEvent();
@@ -19,7 +28,7 @@
   } elseif ($event['entity'] === 'payment') {
      $synchronizer = new \SIPL\UCRM\wFirma\PaymentSynchronizer($wFirmaApi, $helper);
   } elseif ($event['entity'] === 'webhook') {
      echo 'Webhook OK!';
      echo 'Webhook OK! UCRM version: ' . $helper->getVersion();
      die();
   } else {
      echo 'Nothing to do with entity ' . $event['entity'];