From b7736cfb71f73b036d34995a5540eeb202ce3e19 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Mon, 16 Feb 2026 21:31:48 +0000
Subject: [PATCH] Put full URL to public.php in "KSeF QR Code" field

---
 src/wFirmaApiFactory.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/wFirmaApiFactory.php b/src/wFirmaApiFactory.php
index 1ddcc70..70c1a9a 100644
--- a/src/wFirmaApiFactory.php
+++ b/src/wFirmaApiFactory.php
@@ -3,7 +3,7 @@
 namespace SIPL\UCRM\wFirma;
 
 class wFirmaApiFactory {
-	protected $ucrmHelper;
+	protected UcrmHelper $ucrmHelper;
 
 	function __construct(UcrmHelper $ucrmHelper) {
 		$this->ucrmHelper = $ucrmHelper;
@@ -11,7 +11,7 @@
 
 	function create(): \Webit\WFirmaSDK\Entity\ModuleApiFactory {
 		$config = $this->ucrmHelper->getConfig();
-		$wFirmaAuth = new \Webit\WFirmaSDK\Auth\BasicAuth($config['wfirma_username'], $config['wfirma_password']);
+		$wFirmaAuth = new \Webit\WFirmaSDK\Auth\ApiKeysAuth($config['wfirma_access_key'], $config['wfirma_secret_key'], $config['wfirma_app_key']);
 
 		$wFirmaEntityApiFactory = new \Webit\WFirmaSDK\Entity\EntityApiFactory();
 		$wFirmaEntityApi = $wFirmaEntityApiFactory->create($wFirmaAuth);

--
Gitblit v1.10.0